summaryrefslogtreecommitdiffstats
path: root/bin/glsa-check
diff options
context:
space:
mode:
Diffstat (limited to 'bin/glsa-check')
-rw-r--r--bin/glsa-check4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/glsa-check b/bin/glsa-check
index 8d955526a..82fb5e49d 100644
--- a/bin/glsa-check
+++ b/bin/glsa-check
@@ -293,12 +293,12 @@ if mode == "mail":
# color doesn't make any sense for mail
nocolor()
- if portage.settings.has_key("PORTAGE_ELOG_MAILURI"):
+ if "PORTAGE_ELOG_MAILURI" in portage.settings:
myrecipient = portage.settings["PORTAGE_ELOG_MAILURI"].split()[0]
else:
myrecipient = "root@localhost"
- if portage.settings.has_key("PORTAGE_ELOG_MAILFROM"):
+ if "PORTAGE_ELOG_MAILFROM" in portage.settings:
myfrom = portage.settings["PORTAGE_ELOG_MAILFROM"]
else:
myfrom = "glsa-check"