aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2021-03-28 17:27:26 -0700
committerZac Medico <zmedico@gentoo.org>2021-03-28 17:29:53 -0700
commit482177991dd27f2e776176233c097dfa6ea84439 (patch)
tree3c4f954eb2e4d733fd8bf1db7a274943e79bb035 /bin/glsa-check
parentSimpleRepomanTestCase: collect results from subprocesses (diff)
downloadportage-482177991dd27f2e776176233c097dfa6ea84439.tar.gz
portage-482177991dd27f2e776176233c097dfa6ea84439.tar.bz2
portage-482177991dd27f2e776176233c097dfa6ea84439.zip
glsa-check: suppress line 293 newline for --quiet (bug 719260)
Bug: https://bugs.gentoo.org/719260#c2 Reported-by: Ramon Fischer <Ramon_Fischer@hotmail.de> Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'bin/glsa-check')
-rwxr-xr-xbin/glsa-check3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/glsa-check b/bin/glsa-check
index a3e7aa043..c8610f7df 100755
--- a/bin/glsa-check
+++ b/bin/glsa-check
@@ -290,7 +290,8 @@ if mode in ["dump", "fix", "inject", "pretend"]:
elif mode == "inject":
sys.stdout.write("injecting " + myid + "\n")
myglsa.inject()
- sys.stdout.write("\n")
+ if not quiet:
+ sys.stdout.write("\n")
sys.exit(0)
# test is a bit different as Glsa.test() produces no output