commit: c42f932378d911e0df1e75457931d8ae9670ea95
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 28 18:06:17 2021 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sun Mar 28 18:06:30 2021 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=c42f9323
repoman: fix argv inconsistency
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
repoman/bin/repoman | 4 ++--
repoman/lib/repoman/main.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/repoman/bin/repoman b/repoman/bin/repoman
index 29c630772..c52ab15b7 100755
--- a/repoman/bin/repoman
+++ b/repoman/bin/repoman
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
"""Ebuild and tree health checks and maintenance utilities.
@@ -41,7 +41,7 @@ from portage.util._eventloop.global_event_loop import
global_event_loop
from repoman.main import repoman_main
try:
- sys.exit(repoman_main(sys.argv[1:]))
+ sys.exit(repoman_main(sys.argv))
except IOError as e:
if e.errno == errno.EACCES:
print("\nRepoman: Need user access")
diff --git a/repoman/lib/repoman/main.py b/repoman/lib/repoman/main.py
index 50b99c21f..dc791ad71 100755
--- a/repoman/lib/repoman/main.py
+++ b/repoman/lib/repoman/main.py
@@ -58,7 +58,7 @@ def repoman_main(argv):
nocolor()
options, arguments = parse_args(
- sys.argv, repoman_settings.get("REPOMAN_DEFAULT_OPTS", ""))
+ argv, repoman_settings.get("REPOMAN_DEFAULT_OPTS", ""))
if options.version:
print("Repoman", VERSION, "(portage-%s)" % portage.VERSION)