From e9dc56625152991ba535f5be3ab88fc7ec8dbcfc Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 22 Nov 2012 12:42:42 -0500 Subject: strip trailing whitespace No functional changes here. Signed-off-by: Mike Frysinger --- bin/glsa-check | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bin/glsa-check') diff --git a/bin/glsa-check b/bin/glsa-check index bfae0f997..b3eb14689 100755 --- a/bin/glsa-check +++ b/bin/glsa-check @@ -114,7 +114,7 @@ glsalist = [] if "new" in params: glsalist = todolist params.remove("new") - + if "all" in params: glsalist = completelist params.remove("all") @@ -183,7 +183,7 @@ def summarylist(myglsalist, fd1=sys.stdout, fd2=sys.stderr): fd1.write(")") if list_cve: fd1.write(" "+(",".join([r[:13] for r in myglsa.references if r[:4] in ["CAN-", "CVE-"]]))) - fd1.write("\n") + fd1.write("\n") return 0 if mode == "list": @@ -267,7 +267,7 @@ if mode == "mail": import portage.mail, socket from io import StringIO from email.mime.text import MIMEText - + # color doesn't make any sense for mail nocolor() @@ -275,7 +275,7 @@ if mode == "mail": myrecipient = portage.settings["PORTAGE_ELOG_MAILURI"].split()[0] else: myrecipient = "root@localhost" - + if "PORTAGE_ELOG_MAILFROM" in portage.settings: myfrom = portage.settings["PORTAGE_ELOG_MAILFROM"] else: @@ -303,12 +303,12 @@ if mode == "mail": myglsa.dump(outstream=myfd) myattachments.append(MIMEText(str(myfd.getvalue()), _charset="utf8")) myfd.close() - + mymessage = portage.mail.create_message(myfrom, myrecipient, mysubject, summary, myattachments) portage.mail.send_mail(portage.settings, mymessage) - + sys.exit(0) - + # something wrong here, all valid paths are covered with sys.exit() sys.stderr.write("nothing more to do\n") sys.exit(2) -- cgit v1.2.3-65-gdbad