summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMart Raudsepp <leio@gentoo.org>2018-04-25 13:31:21 +0300
committerMart Raudsepp <leio@gentoo.org>2018-04-25 13:32:17 +0300
commitd78f89c5d2f0c86812bbf60cdd77d9bece5ec830 (patch)
treeb016b9f0b833a0b11f130d7e2be2e6e1c126590e /scripts
parentgnome-extra/gnome-logs: bump (diff)
downloadgnome-d78f89c5d2f0c86812bbf60cdd77d9bece5ec830.tar.gz
gnome-d78f89c5d2f0c86812bbf60cdd77d9bece5ec830.tar.bz2
gnome-d78f89c5d2f0c86812bbf60cdd77d9bece5ec830.zip
scripts/gen_archlist: Hack it to work with python3
As this is just a workaround, not a properly handled port, keep the shebang to python2 for now, but can at least run it via python3 ./gen_archlist.py now when not having python2 portage.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen_archlist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen_archlist.py b/scripts/gen_archlist.py
index 2d713180..746255f9 100755
--- a/scripts/gen_archlist.py
+++ b/scripts/gen_archlist.py
@@ -437,7 +437,7 @@ def main():
' to be stabilized')
args = parser.parse_args()
- args.verbose = min(max(args.verbose, 0), 2)
+ args.verbose = min(max(args.verbose if args.verbose else 0, 0), 2)
logging.config.dictConfig({
'version': 1,
'disable_existing_loggers': True,