Bug 375407

Summary: zypp-query-pool binary missing
Product: [openSUSE] openSUSE 11.0 Reporter: Uwe Gansert <ug>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED FIXED QA Contact: Duncan Mac-Vicar <dmacvicar>
Severity: Major    
Priority: P5 - None CC: dmacvicar, ma, mc
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Uwe Gansert 2008-03-31 13:01:17 UTC
/usr/lib/zypp/zypp-query-pool is missing in the libzypp package in factory.
suseregister needs that binary
Comment 1 Jan Kupec 2008-03-31 13:10:33 UTC
What did it do? Can zypper be used as a replacement?
Comment 2 Michael Calmer 2008-03-31 13:15:09 UTC
suse_register read the installed products and installed patterns.

#> /usr/lib/zypp/zypp-query-pool products @system
i|product|openSUSE|10.3|i686|openSUSE-10.3-retail|10.3-0
i|product|openSUSE-FTP|10.3|i686|openSUSE-10.3-FTP|10.3-0
i|product|openSUSE-FTP-NonOSS|10.3|i686|openSUSE-10.3-FTP-NonOSS|10.3-0

#> /usr/lib/zypp/zypp-query-pool patterns @system
i|pattern|multimedia|10.3-159|i586
i|pattern|office_opt|10.3-159|i586
i|pattern|office|10.3-159|i586
i|pattern|yast2_install_wf|10.3-159|i586
i|pattern|fonts_opt|10.3-159|i586
i|pattern|enhanced_base|10.3-159|i586
...

I know that the bootloader is also using this binary. 
I do not know if zypper provide this functionality.
Comment 3 Jan Kupec 2008-03-31 13:20:08 UTC
It does, the only thing needed is a little change to the output. I guess rug --terse prints something like this, i can make zypper --terse to do it as well.
Comment 4 Michael Calmer 2008-03-31 13:35:03 UTC
What is the command? zypper products does not exist.

Additionaly I need all the columns:

- Installed
- type
- name
- version-release
- arch
- distproduct
- distversion (including release)

SLES10 SP1 give more output, we need this in 11.0 too, because these are used by the bootloader:

- product type (base or add-on)
- shortname
- source
Comment 5 Michael Calmer 2008-03-31 13:38:45 UTC
Sorry: it is _not_ source, it is "summary"

I would vote for enabling zypp-query-pool again and switch to use zypper for 11.1 (SLES11). For this version I want to cleanup suse_register anyway. 
Comment 6 Jan Kupec 2008-03-31 13:48:58 UTC
(In reply to comment #4 from Michael Calmer)
> What is the command? zypper products does not exist.

zypper search -t product
zypper search -t pattern

zypper products and patterns will be provided within two weeks (fate #302148).
--terse is coming soon as well.

> Additionaly I need all the columns:
> 
> - Installed
> - type
> - name
> - version-release
> - arch
> - distproduct
> - distversion (including release)
> 
> SLES10 SP1 give more output, we need this in 11.0 too, because these are used
> by the bootloader:
> 
> - product type (base or add-on)
> - shortname
> - source
> 

no problem
Comment 7 Jan Kupec 2008-03-31 13:51:37 UTC
(In reply to comment #4 from Michael Calmer)
> Additionaly I need all the columns:
> 
> - distproduct
> - distversion (including release)

I just don't know what these two are from memory.
Comment 8 Michael Calmer 2008-03-31 13:55:02 UTC
These are the most important once for the registration. 
In XML they have other names (were renamed somewhen)

- distribution-name
- distribution-edition

Does this help?
Comment 9 Duncan Mac-Vicar 2008-05-23 23:58:51 UTC
this was already fixed