Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: repoman/lib/repoman/, repoman/bin/
Date: Sun, 28 Mar 2021 18:07:14
Message-Id: 1616954790.c42f932378d911e0df1e75457931d8ae9670ea95.zmedico@gentoo
1 commit: c42f932378d911e0df1e75457931d8ae9670ea95
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 28 18:06:17 2021 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 28 18:06:30 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=c42f9323
7
8 repoman: fix argv inconsistency
9
10 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
11
12 repoman/bin/repoman | 4 ++--
13 repoman/lib/repoman/main.py | 2 +-
14 2 files changed, 3 insertions(+), 3 deletions(-)
15
16 diff --git a/repoman/bin/repoman b/repoman/bin/repoman
17 index 29c630772..c52ab15b7 100755
18 --- a/repoman/bin/repoman
19 +++ b/repoman/bin/repoman
20 @@ -1,5 +1,5 @@
21 #!/usr/bin/env python
22 -# Copyright 1999-2020 Gentoo Authors
23 +# Copyright 1999-2021 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 """Ebuild and tree health checks and maintenance utilities.
27 @@ -41,7 +41,7 @@ from portage.util._eventloop.global_event_loop import global_event_loop
28 from repoman.main import repoman_main
29
30 try:
31 - sys.exit(repoman_main(sys.argv[1:]))
32 + sys.exit(repoman_main(sys.argv))
33 except IOError as e:
34 if e.errno == errno.EACCES:
35 print("\nRepoman: Need user access")
36
37 diff --git a/repoman/lib/repoman/main.py b/repoman/lib/repoman/main.py
38 index 50b99c21f..dc791ad71 100755
39 --- a/repoman/lib/repoman/main.py
40 +++ b/repoman/lib/repoman/main.py
41 @@ -58,7 +58,7 @@ def repoman_main(argv):
42 nocolor()
43
44 options, arguments = parse_args(
45 - sys.argv, repoman_settings.get("REPOMAN_DEFAULT_OPTS", ""))
46 + argv, repoman_settings.get("REPOMAN_DEFAULT_OPTS", ""))
47
48 if options.version:
49 print("Repoman", VERSION, "(portage-%s)" % portage.VERSION)