Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 198160 - sys-apps/portage-2.1.3.17 - traceback on cache update after syncing
Summary: sys-apps/portage-2.1.3.17 - traceback on cache update after syncing
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks: 198097
  Show dependency tree
 
Reported: 2007-11-05 13:45 UTC by Carsten Lohrke (RETIRED)
Modified: 2007-11-05 17:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
validate ebuild names in pordbapi.cp_list() (cp_list.patch,584 bytes, patch)
2007-11-05 17:16 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Lohrke (RETIRED) gentoo-dev 2007-11-05 13:45:01 UTC
sent 12884 bytes  received 4795443 bytes  14637.22 bytes/sec
total size is 150756806  speedup is 31.35

>>> Updating Portage cache:   79%Traceback (most recent call last):
  File "/usr/bin/emerge", line 6506, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 6461, in emerge_main
    action_sync(settings, trees, mtimedb, myopts, myaction)
  File "/usr/bin/emerge", line 4998, in action_sync
    action_metadata(settings, portdb, myopts)
  File "/usr/bin/emerge", line 5092, in action_metadata
    eclass_cache=ec, verbose_instance=noise_maker)
  File "/usr/lib/portage/pym/cache/util.py", line 27, in mirror_cache
    for x in valid_nodes_iterable:
  File "/usr/bin/emerge", line 5066, in __iter__
    for y in self.dbapi.cp_list(x):
  File "/usr/lib/portage/pym/portage.py", line 6718, in cp_list
    self._cpv_sort_ascending(mylist)
  File "/usr/lib/portage/pym/portage.py", line 5313, in _cpv_sort_ascending
    cpv_list.sort(pkgcmp)
TypeError: comparison function must return int
Comment 1 Zac Medico gentoo-dev 2007-11-05 17:16:33 UTC
Created attachment 135261 [details, diff]
validate ebuild names in pordbapi.cp_list()

This is fixed in 2.1.3.18, but here's a patch in case anybody else hits this.