Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 546010

Summary: sys-apps/portage: repoman --if-modified crashes with UnboundLocalError when a package has been removed
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: RepomanAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: Normal    
Version: 2.2   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

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.