Make `emerge --metadata` work even when metadata-transfer is not in FEATURES.
authorZac Medico <zmedico@gentoo.org>
Sun, 26 Feb 2006 10:27:24 +0000 (10:27 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 26 Feb 2006 10:27:24 +0000 (10:27 -0000)
svn path=/main/trunk/; revision=2789

bin/emerge

index 6dcf1ea61ab7fdc44f8afe6f3c144c9185df78ba..5a1ce5c69e5aa606bba2a86c865293c5be6ac025 100755 (executable)
@@ -2713,7 +2713,9 @@ if myaction in ["sync","metadata"] and (not "--help" in myopts):
        except:
                pass
 
-       if updatecache_flg and "metadata-transfer" not in portage.settings.features:
+       if updatecache_flg and  \
+               myaction != "metadata" and \
+               "metadata-transfer" not in portage.settings.features:
                updatecache_flg = False
 
        if os.path.exists(myportdir+"/metadata/cache") and updatecache_flg: