From 70cb0e846c7788e85a4577845fc0f78ae5d82d27 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Jul 26 2008 01:49:52 +0000 Subject: Use the new aliases set up to contact the package watchers. This should speed things up and be more accurate than just the koji owner. --- diff --git a/utils/spam-o-matic b/utils/spam-o-matic index 2a34453..7ea4253 100755 --- a/utils/spam-o-matic +++ b/utils/spam-o-matic @@ -63,19 +63,6 @@ def libmunge(match): else: return "%s%s" % (match.groups()[0],match.groups()[1]) -def getOwner(pkg): - if pkg == None: - return None - session = koji.ClientSession(kojihost, {}) - try: - p = session.listPackages(tagID = "dist-rawhide", pkgID = pkg, inherited = True) - except: - return None - if p: - return "%s@fedoraproject.org" % (p[0]['owner_name'],) - else: - return None - def addOwner(list, pkg): if list.get(pkg): return True @@ -83,7 +70,7 @@ def addOwner(list, pkg): if list.has_key(pkg): return False - f = getOwner(pkg) + f = "%s-owner@fedoraproject.org" % pkg list[pkg] = f if f: return True