Commit bdde38ff authored by Seblu's avatar Seblu
Browse files

Fix invalid maintainer sends mail every check time

parent 80e9e38c
Pipeline #256 passed with stages
in 5 minutes and 15 seconds
......@@ -343,13 +343,13 @@ class Aurbot(object):
debug("Updating %s" %
# for security, if the maintainer is incorrect we fail
maintainer = pkgconfig.get("maintainer")
debug("Configured maintainer: %s" % maintainer)
debug("Configured maintainer: %s" % pkgconfig.get("maintainer"))
debug("AUR maintainer: %s" % aurpkg.maintainer)
debug("Last maintainer: %s" % localpkg.lastmaintainer)
if maintainer != aurpkg.maintainer:
# str is required to handle no maintainer as None string
if pkgconfig.get("maintainer") != str(aurpkg.maintainer):
# we notify by mail only once the maintainer is invalid
if localpkg.lastmaintainer != aurpkg.maintainer:
if localpkg.lastmaintainer != str(aurpkg.maintainer):
self.send_maintainer_report(pkgconfig, localpkg, aurpkg)
localpkg.lastmaintainer = aurpkg.maintainer
error("Invalid maintainer for package %s" %
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment