commit: e61bebefada3a9f61940824e348cb5f25e901911
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 14 19:26:36 2014 +0000
Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Fri Jun 19 19:47:08 2015 +0000
URL: https://gitweb.gentoo.org/proj/webapp-config.git/commit/?id=e61bebef
config.py: Adds more thorough checking for setting self.work
WebappConfig/config.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/WebappConfig/config.py b/WebappConfig/config.py
index acf7b7a..99ccedd 100644
--- a/WebappConfig/config.py
+++ b/WebappConfig/config.py
@@ -582,7 +582,7 @@ class Config:
info_opts.add_argument('-li',
'--list-installs',
- action='store_true',
+ nargs = 2,
help = 'List all current virtual installs for
<a'
'pplication>. Use * for the package name and/or
'
'version number to list more than one package /
'
@@ -966,7 +966,7 @@ class Config:
sys.exit()
for i in work:
- if options.get(i):
+ if options.get(i) != None and options.get(i) != False:
self.work = i
break