Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 119806
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Portage Utilities Team <tools-portage@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Toralf Förster <toralf.foerster@gmx.de>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
equery_catch_list_filenames.diff equery_catch_list_filenames.diff patch Michael A. Smith 2008-02-18 23:11 0000 669 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 119806 depends on: Show dependency tree
Bug 119806 blocks: 170220
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: 2006-01-21 05:18 0000
yes, it's the wrong syntax, but it shouldn't produce an internal error, isn't
it ? Here's what I mean:

n22 ~ # equery --nocolor --quiet list -i
/var/www/localhost/htdocs/apache_pb2.gif
!!! Internal portage error, terminating
!!! too many values to unpack

------- Comment #1 From Erik 2006-04-06 23:47:01 0000 -------
Try gentoolkit-0.2.2_pre4. It does not give that error for me.

------- Comment #2 From Vlastimil Babka (Caster) 2006-06-21 02:36:11 0000 -------
Happens here with gentoolkit 0.2.2 (final)
I think it's about number of slashes in the atom

gehinom ~ # equery list a/b
[ Searching for package 'b' in 'a' among: ]
 * installed packages
gehinom ~ # equery list a/b/
!!! Internal portage error, terminating
!!! too many values to unpack
gehinom ~ # equery list a/b/c
!!! Internal portage error, terminating
!!! too many values to unpack

------- Comment #3 From Austen Dicken 2007-05-27 17:18:25 0000 -------
I've been looking through the equery script and it seems that the error is
thrown during package name parsing.

The exact location is line 1282:
(cat, name, ver, rev) = gentoolkit.split_package_name(query)

The problem seems to be that the gentoolkit function split_package_name does
not support queries not of the form "(cat(/name(-ver(-rev)?)?)?)?"

Any ideas?

------- Comment #4 From Toralf Förster 2007-08-20 18:29:11 0000 -------
app-portage/gentoolkit-0.2.3-r1 seems to have the same behaviour

------- Comment #5 From Roderick B. Greening 2007-09-04 19:05:00 0000 -------
Same thing with app-portage/gentoolkit-0.2.4_pre6.

equery --nocolor --quiet list -i /var/www/localhost/htdocs/apache_pb2.gif
!!! Internal portage error, terminating
!!! too many values to unpack

------- Comment #6 From Paul Varner 2007-10-08 18:46:38 0000 -------
This bug is not fixed.

------- Comment #7 From Michael A. Smith 2008-02-18 23:11:37 0000 -------
Created an attachment (id=143923) [details]
equery_catch_list_filenames.diff

This patch puts some error handling around 

(cat, name, ver, rev) = gentoolkit.split_package_name(query)

that specifically checks for str(ValueError) == 'too many values to unpack'
because if gentoolkit.split_package_name(query) returns more than four values
it's indicative of a pattern with more than one slash in it, which cannot
possibly match any package.

------- Comment #8 From Paul Varner 2008-02-18 23:48:22 0000 -------
$ svn commit -m "Fix equery list to not generate an internal portage error when
fed input with too many slashes. (Bug 119806)"
Sending        equery/equery
Transmitting file data .
Committed revision 470.

------- Comment #9 From Paul Varner 2008-02-21 01:51:37 0000 -------
Released in gentoolkit-0.2.4_rc2

------- Comment #10 From Jakub Moc (RETIRED) 2008-03-04 21:23:27 0000 -------
*** Bug 212314 has been marked as a duplicate of this bug. ***

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