aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2021-03-28 11:06:17 -0700
committerZac Medico <zmedico@gentoo.org>2021-03-28 11:06:30 -0700
commitc42f932378d911e0df1e75457931d8ae9670ea95 (patch)
treea9ea7a37db7063889d300616aed157bb092919b5
parentBuildIdProfileFormatTestCase: add package.unmask (diff)
downloadportage-c42f932378d911e0df1e75457931d8ae9670ea95.tar.gz
portage-c42f932378d911e0df1e75457931d8ae9670ea95.tar.bz2
portage-c42f932378d911e0df1e75457931d8ae9670ea95.zip
repoman: fix argv inconsistency
Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rwxr-xr-xrepoman/bin/repoman4
-rwxr-xr-xrepoman/lib/repoman/main.py2
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)