commit:     482177991dd27f2e776176233c097dfa6ea84439
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 29 00:27:26 2021 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Mar 29 00:29:53 2021 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=48217799

glsa-check: suppress line 293 newline for --quiet (bug 719260)

Bug: https://bugs.gentoo.org/719260#c2
Reported-by: Ramon Fischer <Ramon_Fischer <AT> hotmail.de>
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 bin/glsa-check | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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

Reply via email to