Home :: Documentation :: Download :: Development :: Community :: Wiki :: Ports :: Bugs :: Links :: About
Welcome to CRUX bug tracking.
Tasklist

FS#106 - patternmatching for pkginfo -o is inconsistant

Attached to Project: CRUX
Opened by Han (han) - Thursday, 31 August 2006, 14:07 GMT+2
Last edited by Anonymous Submitter - Wednesday, 21 February 2007, 15:41 GMT+2
Task Type Bug Report
Category tools → pkgutils
Status Assigned
Assigned To Tilman Sauerbeck (tilman)
Operating System Linux
Severity Low
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

pkginfo -o \'/usr/lib/libstdc\\+\\+.so.6\' works ok
pkginfo -o /usr/lib/libstdc++.so.6 does not work at all
pkginfo -o /usr/lib/libstdc++. does work

I think it would be better if pkginfo did not try to match regular expressions.
This task depends upon

Comment by Mark Rosenstand (mark) - Thursday, 14 September 2006, 17:06 GMT+2
+1

pkginfo could be dumbed down in other areas too, e.g. \"pkginfo -i\" would only list the names of the installed ports (no versions, like prt-get listinst) and then some other switch could be used to get the version of a package. Also the \"Package File\" header is slightly annoying if you want to use \"pkginfo -o\" in scripts, and I\'m sure few people are wondering whether \"python\" or \"usr/lib/python2.4/__phello__.foo.py\" is the package name.

Alternately the current \"-o\" behaviour could be kept in an -s switch since it is occassionally useful to use a regex, but I think an option to _just_ get the owner of a file (if any) would be very nice to have, e.g.:

$ pkginfo -o /bin/bash
bash
$

Loading...