diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org> | 2010-08-30 15:02:12 +0200 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org> | 2010-08-30 15:02:12 +0200 |
commit | db301c0d2c935cae83e39ec37de1171f6eb7f913 (patch) | |
tree | 1c7028c0cfbabddaed4cff825f3c4bc7f8c7f706 | |
parent | 768b5ed697a7accff7fe86fce31bfefed7d4e8cb (diff) | |
download | portage-db301c0d2c935cae83e39ec37de1171f6eb7f913.tar.gz portage-db301c0d2c935cae83e39ec37de1171f6eb7f913.tar.bz2 portage-db301c0d2c935cae83e39ec37de1171f6eb7f913.zip |
Fix "UnboundLocalError: local variable 'real_vardb' referenced before assignment".
-rw-r--r-- | pym/_emerge/actions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index 707bb7b41..5be9a9dc5 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -881,6 +881,7 @@ def calc_depclean(settings, trees, ldpath_mtimes, cleanlist = create_cleanlist() clean_set = set(cleanlist) + real_vardb = trees[myroot]["vartree"].dbapi if cleanlist and \ real_vardb._linkmap is not None and \ myopts.get('--depclean-lib-check') != 'n': @@ -888,7 +889,6 @@ def calc_depclean(settings, trees, ldpath_mtimes, # Check if any of these packages are the sole providers of libraries # with consumers that have not been selected for removal. If so, these # packages and any dependencies need to be added to the graph. - real_vardb = trees[myroot]["vartree"].dbapi linkmap = real_vardb._linkmap consumer_cache = {} provider_cache = {} |