Bug 411339

Summary: zypper se -s output is incorrect or misleading if "-t package" is not specified
Product: [openSUSE] openSUSE 11.0 Reporter: Sanford Armstrong <saarmstrong>
Component: libzyppAssignee: Jan Kupec <jkupec>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P3 - Medium CC: aschnell, grfgguvf, kontakt, sontek
Version: Final   
Target Milestone: ---   
Hardware: i586   
OS: openSUSE 11.0   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Sanford Armstrong 2008-07-22 17:41:58 UTC
The only package with "json" in its name that I have installed is python-simplejson, but the output of `zypper se -s json` seems to indicate otherwise.

I am not very clear on the difference between a package and a srcpackage, so it could be that I am just misunderstanding this.


linux:~ # zypper se -si json
Reading installed packages...

S | Name              | Type    | Version   | Arch | Repository            
--+-------------------+---------+-----------+------+-----------------------
i | python-simplejson | package | 1.7.5-1.5 | i586 | devel:languages:python


linux:~ # zypper se -s -t package json
Reading installed packages...

S | Name               | Type    | Version    | Arch | Repository            
--+--------------------+---------+------------+------+-----------------------
  | json-glib-devel    | package | 0.6.2-2.1  | i586 | home:hfiguiere        
  | json-glib-doc      | package | 0.6.2-2.1  | i586 | home:hfiguiere        
  | libjson-glib-1_0-0 | package | 0.6.2-2.1  | i586 | home:hfiguiere        
  | php5-json          | package | 5.2.6-0.1  | i586 | Main Update Repository
  | php5-json          | package | 5.2.5-66.1 | i586 | Main Repository (OSS) 
  | python-cjson       | package | 1.0.5-1.5  | i586 | devel:languages:python
  | python-json        | package | 3.4-3.2    | i586 | devel:languages:python
i | python-simplejson  | package | 1.7.5-1.5  | i586 | devel:languages:python
  | python-turbojson   | package | 1.1.2-1.5  | i586 | devel:languages:python


linux:~ # zypper se -s json
Reading installed packages...

S | Name               | Type       | Version    | Arch   | Repository            
--+--------------------+------------+------------+--------+-----------------------
i | json-glib          | srcpackage | 0.6.2-2.1  | noarch | home:hfiguiere        
  | json-glib-devel    | package    | 0.6.2-2.1  | i586   | home:hfiguiere        
  | json-glib-doc      | package    | 0.6.2-2.1  | i586   | home:hfiguiere        
  | libjson-glib-1_0-0 | package    | 0.6.2-2.1  | i586   | home:hfiguiere        
  | php5-json          | package    | 5.2.6-0.1  | i586   | Main Update Repository
  | php5-json          | package    | 5.2.5-66.1 | i586   | Main Repository (OSS) 
i | python-cjson       | srcpackage | 1.0.5-1.6  | noarch | devel:languages:python
i | python-cjson       | srcpackage | 1.0.5-1.5  | noarch | devel:languages:python
i | python-json        | srcpackage | 3.4-3.2    | noarch | devel:languages:python
  | python-simplejson  | srcpackage | 1.7.5-1.5  | noarch | devel:languages:python
  | python-turbojson   | srcpackage | 1.1.2-1.5  | noarch | devel:languages:python
Comment 1 John Anderson 2008-07-22 17:54:31 UTC
Search should default to the type "package" since install does. The results are misleading since the search will display one thing but then when you install it, you'll get something different, or if its already installed, it wont show it as installed.

Also, It should be able to display packages of the same name if they have different types, it seems to do this for package and patch, but not for srcpackage.

An example of this is the application firebird in the repository "openSUSE BuildService - Database". If you do zypper -se firebird its going to return:

firebird | srcpackage | 2.0.4.13130.1-1.4 | noarch

and not show the package, but you can see the package if you do

zypper se -s -t package firebird

firebird | package | 2.0.4.13130.1-1.4 | noarch
Comment 2 Jan Kupec 2008-07-22 18:10:56 UTC
Yes, the srcpacakge handling is broken.
Comment 3 Jan Kupec 2008-07-28 16:56:07 UTC
*** Bug 391306 has been marked as a duplicate of this bug. ***
Comment 4 Jan Kupec 2008-07-28 16:59:02 UTC
fixed in libzypp and zypper svn, to be in libzypp > 5.3.0 and zypper 0.12.1
Comment 5 Jan Kupec 2008-07-28 17:08:51 UTC
*** Bug 404733 has been marked as a duplicate of this bug. ***
Comment 6 Jan Kupec 2008-09-02 08:30:35 UTC
submitted
Comment 7 Jan Kupec 2008-10-03 08:44:48 UTC
*** Bug 431072 has been marked as a duplicate of this bug. ***