Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 50157
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 47451
Assigned To: Portage Utilities Team <tools-portage@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Paul Thompson <thompson@pobox.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 50157 depends on: Show dependency tree
Bug 50157 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-05-05 18:16 0000
I tried 'qpkg -f /usr/bin/mt' and got back three packages, none of which
contain '/usr/bin/mt' (its an old file, not part of any installed package)
This small patch to qpkg 0.1.13 gave me the behaviour I expected. For
what its worth:

--- qpkg.orig   2004-05-05 21:00:03.035422157 -0400
+++ qpkg        2004-05-05 21:03:09.917351843 -0400
@@ -309,7 +309,7 @@
                [ "${arg:0:1}" != "/" ] && arg="${PWD}/${arg}"
 
                dirs=`ls /var/db/pkg/${group}/*/CONTENTS \
-               | xargs grep -Fl " ${arg}" \
+               | xargs grep -Flw "${arg}" \
                | xargs --no-run-if-empty -n 1 dirname`
        fi
        ipak=`(

As you can see, I add the 'w' option, and remove the odd leading
space in the argument string.

------- Comment #1 From Daniel Black 2004-05-06 22:27:47 0000 -------
Also with qpkg in version app-portage/gentoolkit-0.2.0_pre8:

$ qpkg -f /usr/bin/file returns:
app-arch/file-roller *
gnome-base/control-center *
net-fs/coda *
sys-apps/file *

This is incorrect as only sys-apps contains /usr/bin/file. The other respectively contain:
/usr/bin/file-roller
/usr/bin/file-types-capplet
/usr/bin/filerepair

The code fragement in comment 1 should also fix this.

------- Comment #2 From SpanKY 2004-05-07 17:15:22 0000 -------

*** This bug has been marked as a duplicate of 47451 ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug