egencache: handle empty --portdir-overlay v2.2.0
authorZac Medico <zmedico@gentoo.org>
Mon, 12 Aug 2013 23:14:46 +0000 (16:14 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 12 Aug 2013 23:14:46 +0000 (16:14 -0700)
bin/egencache
pym/portage/_emirrordist/main.py

index 3859a06a09701f1786e10951496e35e4313b091b..54c517e1dcdc84586c4ea675126e6d485e12baba 100755 (executable)
@@ -860,7 +860,7 @@ def egencache_main(args):
 
        if options.repositories_configuration is not None:
                env['PORTAGE_REPOSITORIES'] = options.repositories_configuration
-       elif options.portdir_overlay:
+       elif options.portdir_overlay is not None:
                env['PORTDIR_OVERLAY'] = options.portdir_overlay
 
        if options.cache_dir is not None:
index 3c7b81a37b1f8bdc39affe797f3a69f7f27ccf5c..f28aad7d9043fb7d2664192d70c8effa2cfe1bc4 100644 (file)
@@ -253,7 +253,7 @@ def emirrordist_main(args):
 
        if options.repositories_configuration is not None:
                env['PORTAGE_REPOSITORIES'] = options.repositories_configuration
-       elif options.portdir_overlay:
+       elif options.portdir_overlay is not None:
                env['PORTDIR_OVERLAY'] = options.portdir_overlay
 
        if options.portdir is not None: