diff options
author | Mart Raudsepp <leio@gentoo.org> | 2018-04-25 13:31:21 +0300 |
---|---|---|
committer | Mart Raudsepp <leio@gentoo.org> | 2018-04-25 13:32:17 +0300 |
commit | d78f89c5d2f0c86812bbf60cdd77d9bece5ec830 (patch) | |
tree | b016b9f0b833a0b11f130d7e2be2e6e1c126590e /scripts | |
parent | gnome-extra/gnome-logs: bump (diff) | |
download | gnome-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-x | scripts/gen_archlist.py | 2 |
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, |