diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-11-22 12:42:42 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-11-22 12:42:42 -0500 |
commit | e9dc56625152991ba535f5be3ab88fc7ec8dbcfc (patch) | |
tree | 0e2beb346f0f25475a0e95cfe8cbcb5dc89695d9 /bin/glsa-check | |
parent | da268c268e7fb91318a4676025ec841a4444b362 (diff) | |
download | portage-e9dc56625152991ba535f5be3ab88fc7ec8dbcfc.tar.gz portage-e9dc56625152991ba535f5be3ab88fc7ec8dbcfc.tar.bz2 portage-e9dc56625152991ba535f5be3ab88fc7ec8dbcfc.zip |
strip trailing whitespace
No functional changes here.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'bin/glsa-check')
-rwxr-xr-x | bin/glsa-check | 14 |
1 files changed, 7 insertions, 7 deletions
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) |