Bug 859211

Summary: new zypper's se -f feature seems broken
Product: [openSUSE] openSUSE 13.1 Reporter: Daniel Pecka <nettezzaumanaa>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Daniel Pecka 2014-01-17 14:35:05 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0

Hello,

thanks for all new and great zypper's features but not everything goes always ideally .. i'd like to report a minor broken feature:

# zypper se --help | grep \\\-f
-f, --file-list            Search for a match in the file list of packages.


this feature - seems like - doesn't work as supposed (perhaps i misunderstand it)

example:
zypper -vv se -f bin/openvpn ## finds nothing even when used asterisks in pattern and so

zypper -vv se -f openvpn ## returns obviously list of packages which bring in some file conatining in path string "openvpn"

regards, daniel

Reproducible: Always

Steps to Reproduce:
1. try searching with `zypper -vv se -f foo'
2.
3.
Comment 1 Daniel Pecka 2014-01-17 15:06:07 UTC
just to make it clear, i'd suppose that it should work like in examples with yum below:

# yum provides \*lib/libpca\*
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: ftp.cvut.cz
 * extras: ftp.cvut.cz
 * updates: ftp.cvut.cz
14:libpcap-devel-1.4.0-1.20130826git2dbcaa1.el6.i686 : Libraries and header files for the libpcap library
Repo        : base
Matched from:
Filename    : /usr/lib/libpcap.so



14:libpcap-1.4.0-1.20130826git2dbcaa1.el6.i686 : A system-independent interface for user-level packet capture
Repo        : base
Matched from:
Filename    : /usr/lib/libpcap.so.1.4.0
Filename    : /usr/lib/libpcap.so.1

# yum provides \*bin/nmap
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: ftp.cvut.cz
 * extras: ftp.cvut.cz
 * updates: ftp.cvut.cz
2:nmap-5.51-3.el6.x86_64 : Network exploration tool and security scanner
Repo        : base
Matched from:
Filename    : /usr/bin/nmap

regards, daniel
Comment 2 Michael Andres 2014-01-20 08:56:33 UTC
Fixed for zypper-1.10.1 and
  Code-13_1   zypper 1.9.9
  Code-12_3   zypper 1.8.23

Due to the way file list data are organized in libzypp, the cheap search in basenames is the default. Zypper now requests to search the full path.

But keep in mind that not all repositories actually provide filelist data (or we do not download the complete filelists). Full filelist are available for installed packages. Other kind of repos mostly contain just an abstact (files below bin/ etc/ lib/).
Comment 3 Swamp Workflow Management 2014-01-28 14:07:07 UTC
openSUSE-RU-2014:0148-1: An update that has 5 recommended fixes can now be installed.

Category: recommended (important)
Bug References: 683914,853065,855845,859160,859211
CVE References: 
Sources used:
openSUSE 13.1 (src):    libzypp-13.9.0-10.1, libzypp-bindings-0.5.17.1-8.1, zypper-1.9.10-12.1
Comment 4 Swamp Workflow Management 2014-03-17 12:05:03 UTC
openSUSE-RU-2014:0386-1: An update that has 5 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 683914,828764,855845,859160,859211
CVE References: 
Sources used:
openSUSE 12.3 (src):    libsolv-0.3.3-2.18.1, libzypp-12.16.4-1.33.1, zypper-1.8.24-1.26.1