Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 546010 - sys-apps/portage: repoman --if-modified crashes with UnboundLocalError when a package has been removed
Summary: sys-apps/portage: repoman --if-modified crashes with UnboundLocalError when a...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2015-04-08 22:14 UTC by Zac Medico
Modified: 2020-03-03 21:47 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zac Medico gentoo-dev 2015-04-08 22:14:52 UTC
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/repoman", line 1380, in <module>
    mysettings=repoman_settings, myportdb=portdb)
  File "/usr/lib64/python3.4/site-packages/portage/package/ebuild/digestgen.py", line 169, in digestgen
    "assume-digests" in mysettings.features))
  File "/usr/lib64/python3.4/site-packages/portage/manifest.py", line 400, in create
    cpvlist = self._update_thick_pkgdir(cat, pn, pkgdir)
  File "/usr/lib64/python3.4/site-packages/portage/manifest.py", line 475, in _update_thick_pkgdir
    for f in pkgdir_files:                                                                                                                                                                                                                                                                                                                                                 
UnboundLocalError: local variable 'pkgdir_files' referenced before assignment
Comment 1 Zac Medico gentoo-dev 2015-04-08 22:37:03 UTC
There's a patch in the following branch:

https://github.com/zmedico/portage/tree/bug_546010

I've posted it for review here:

https://archives.gentoo.org/gentoo-portage-dev/message/a752d39b8ea45893f12040ab3c459165
Comment 3 Brian Dolbec (RETIRED) gentoo-dev 2015-05-19 19:39:43 UTC
Released in portage-2.2.19
Comment 4 Zac Medico gentoo-dev 2016-05-01 03:24:24 UTC
This fix got lost in the stage1 repoman refactoring.