1 |
commit: d78f89c5d2f0c86812bbf60cdd77d9bece5ec830 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 25 10:31:21 2018 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 25 10:32:17 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=d78f89c5 |
7 |
|
8 |
scripts/gen_archlist: Hack it to work with python3 |
9 |
|
10 |
As this is just a workaround, not a properly handled port, keep the |
11 |
shebang to python2 for now, but can at least run it via |
12 |
python3 ./gen_archlist.py now when not having python2 portage. |
13 |
|
14 |
scripts/gen_archlist.py | 2 +- |
15 |
1 file changed, 1 insertion(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/scripts/gen_archlist.py b/scripts/gen_archlist.py |
18 |
index 2d713180..746255f9 100755 |
19 |
--- a/scripts/gen_archlist.py |
20 |
+++ b/scripts/gen_archlist.py |
21 |
@@ -437,7 +437,7 @@ def main(): |
22 |
' to be stabilized') |
23 |
args = parser.parse_args() |
24 |
|
25 |
- args.verbose = min(max(args.verbose, 0), 2) |
26 |
+ args.verbose = min(max(args.verbose if args.verbose else 0, 0), 2) |
27 |
logging.config.dictConfig({ |
28 |
'version': 1, |
29 |
'disable_existing_loggers': True, |