[bug-notifications] [pkgutil 0003894]: pkgutil 1.7: -L option only works with the package name, not the software name
Mantis Bug Tracker
noreply at opencsw.org
Mon Oct 5 18:46:00 CEST 2009
A NOTE has been added to this issue.
======================================================================
http://www.opencsw.org/mantis/view.php?id=3894
======================================================================
Reported By: skayser
Assigned To: bonivart
======================================================================
Project: pkgutil
Issue ID: 3894
Category: regular use
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
======================================================================
Date Submitted: 2009-09-14 11:16 CEST
Last Modified: 2009-10-05 18:45 CEST
======================================================================
Summary: pkgutil 1.7: -L option only works with the package
name, not the software name
Description:
Most other command options work with both (pgk and sw name), the new -L
option only seems to work with the sw name. Can we get it to recognize the
sw name too?
Example:
# pkgutil -L dhcp
# pkgutil -L CSWdhcp | head
/etc/init.d/cswdhcp
/etc/opt/csw/dhcpd.conf.CSW
/etc/rc1.d/K73cswdhcp
/etc/rc2.d/S73cswdhcp
/opt/csw/bin/omshell
/opt/csw/include/dhcpctl.h
/opt/csw/include/isc-dhcp
/opt/csw/include/isc-dhcp/boolean.h
/opt/csw/include/isc-dhcp/dst.h
======================================================================
----------------------------------------------------------------------
(0006800) bonivart (manager) - 2009-10-05 18:45
http://www.opencsw.org/mantis/view.php?id=3894#c6800
----------------------------------------------------------------------
The blank line is now gone. I have also omitted the catalog lookup if you
use an argument that begins with uppercase which all package names should.
That means if you use a package name from testing it will work but if you
use the common/catalog name it will fail because the lookup will not find
it (unless you use -t as well). So it's better but not good perhaps. For
now I don't know how to fix this properly, if you use the common name it
needs to parse the catalog to find the package name which is what's used in
the contents file, as I said using pkginfo/pkgparam would be horribly
slow.
Keep in mind that you can also use this for other packages than CSW:
# pkgutil -L SUNWzlib
/usr/include/zconf.h
/usr/include/zlib.h
/usr/lib/amd64/libz.so
/usr/lib/amd64/libz.so.1
/usr/lib/amd64/llib-lz.ln
/usr/lib/libz.so
/usr/lib/libz.so.1
/usr/lib/llib-lz
/usr/lib/llib-lz.ln
#
http://pkgutil.svn.sourceforge.net/viewvc/pkgutil/trunk/pkgutil?view=markup&pathrev=121
More information about the bug-notifications
mailing list