1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 14:16:00 +00:00

candidateOrigin has been removed. Replace with candidate.origins

This commit is contained in:
Oliver Chick 2014-05-23 17:34:17 +01:00
parent b90db64a0a
commit bcae83c510

View file

@ -96,9 +96,9 @@ def config():
def check_origin(pkg): def check_origin(pkg):
#print 'Checking: %s (%s)' % (pkg.name, map(str, pkg.candidateOrigin)) #print 'Checking: %s (%s)' % (pkg.name, map(str, pkg.candidateOrigin))
if pkg.candidateOrigin: if pkg.candidate.origins:
for archive in archives: for archive in archives:
for origin in pkg.candidateOrigin: for origin in pkg.candidate.origins:
#a = origin.archive.rpartition('-')[2] #a = origin.archive.rpartition('-')[2]
a = origin.archive.split('-')[origin.archive.count('-')] a = origin.archive.split('-')[origin.archive.count('-')]
if a == archive and origin.origin in origins: if a == archive and origin.origin in origins: