Bug 741758

Summary: zypper info doesn't accept wildcards
Product: [openSUSE] openSUSE 12.1 Reporter: Jon Nelson <jnelson-suse>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: gs
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jon Nelson 2012-01-16 20:19:42 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1

zypper info doesn't accept wildcards.

zypper info 'mono*'

fails with:

package 'mono*' not found.

Many of the other zypper commands take wildcards.
They should be consistent.




Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 1 Jon Nelson 2013-01-24 02:28:36 UTC
Consistent wildcard handling would be nice. Any feedback on this?
Comment 2 Michael Andres 2013-01-24 10:40:35 UTC
@Gabi: Would you like to have a look at it?

IMO the 'name' arguments to 'info' could be treated as globbing expressions per default; enclosed in '/' as regex.

  'foo'     - glob
  'foo*'    - glob
  '/foo*/'  - regex
Comment 3 Gabriele Mohr 2013-01-24 12:51:12 UTC
Current implementation of 'info' explicitly sets the query to an exact match (help for info is talking about info for specified packages).
Maybe the intention was that a 'search' should be done first to get a list of packages in question and after that call 'info' to get detailed information for specified ones.
Detailed info for many packages at once would produce a lot of lines output per package and it might be hard to find the package you are interested in.
I am not sure about the best approach here.
Comment 4 Michael Andres 2013-01-24 14:32:46 UTC
The best approach IMO is to fulfill the users request. If he asks for info about N packages, he will get back the info about N packages. If that's too much, he will ask for less :)

zyppers job is solely to offer convenient ways to specify N package names on the info command line. Typing or doing copy-and-paste from a search result is one way. Offering globbing and regex is another way. The size of N is user specific and zypper should not assume or enforce any upper limit.
Comment 5 Michael Andres 2013-03-19 13:06:57 UTC
fixed for zypper-1.8.13
Comment 6 Swamp Workflow Management 2013-07-26 13:04:32 UTC
openSUSE-RU-2013:1259-1: An update that has 14 recommended fixes can now be installed.

Category: recommended (low)
Bug References: 640403,741758,779740,793809,798290,803316,811997,812608,819354,820444,824110,825490,827609,828389
CVE References: 
Sources used:
openSUSE 12.3 (src):    libqdialogsolver1-1.3.1-2.10.2, libsolv-0.3.2-2.10.1, libzypp-12.13.3-1.11.1, libzypp-bindings-0.5.14-1.10.1, libzypp-testsuite-tools-4.3.1-2.10.2, zypp-plugin-0.3-8.11.1, zypper-1.8.16-1.10.1