From 06b3f220b8846e287c400f300bbae28d12239d5d Mon Sep 17 00:00:00 2001 From: Nicolas Bock Date: Fri, 29 Oct 2021 12:49:34 -0600 Subject: [PATCH] Add option to refresh manifest before build Signed-off-by: Nicolas Bock --- ebuildtester/docker.py | 4 ++-- ebuildtester/parse.py | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ebuildtester/docker.py b/ebuildtester/docker.py index 6e4985c..a2e6acb 100644 --- a/ebuildtester/docker.py +++ b/ebuildtester/docker.py @@ -203,8 +203,8 @@ def _tweak_settings(self): # Disable the usersandbox feature, it's not working well inside a # docker container. - self.execute("echo FEATURES=\\\"{}\\\" " - ">> /etc/portage/make.conf".format(features)) + self.execute(f"echo FEATURES=\\\"{features}\\\" " + ">> /etc/portage/make.conf") self.execute(("echo MAKEOPTS=\\\"-j%d\\\" " % (options.options.threads)) + diff --git a/ebuildtester/parse.py b/ebuildtester/parse.py index 7378a25..4d42c20 100644 --- a/ebuildtester/parse.py +++ b/ebuildtester/parse.py @@ -19,6 +19,11 @@ def parse_commandline(args): help="The package atom(s) to install", nargs="+", action="append") + parser.add_argument( + "--refresh-manifest", + help="Refresh the package manifest before installing", + action="store_true" + ) parser.add_argument( "--binhost", help="Binhost URI")