summaryrefslogtreecommitdiff
path: root/cron-jobs/check_archlinux/check_packages.py
diff options
context:
space:
mode:
Diffstat (limited to 'cron-jobs/check_archlinux/check_packages.py')
-rwxr-xr-xcron-jobs/check_archlinux/check_packages.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/cron-jobs/check_archlinux/check_packages.py b/cron-jobs/check_archlinux/check_packages.py
index 9bdd9c1..d42feab 100755
--- a/cron-jobs/check_archlinux/check_packages.py
+++ b/cron-jobs/check_archlinux/check_packages.py
@@ -38,6 +38,7 @@ checked_deps = []
class PacmanPackage:
def __init__(self):
self.name,self.version = "",""
+ self.base = ""
self.path,self.repo = "",""
self.deps,self.makedeps = [],[]
self.provides,self.conflicts = [],[]
@@ -77,6 +78,8 @@ def parse_data(repo,data):
if packages.has_key(pkg.name):
dup = packages[pkg.name]
packages[pkg.name] = pkg
+ elif attrname == "base":
+ pkg.base = line
elif attrname == "version":
pkg.version = line
elif attrname == "path":
@@ -356,7 +359,7 @@ for name,pkg in packages.iteritems():
print "==> checking mismatches"
for name,pkg in repopkgs.iteritems():
pkgdirname = pkg.path.split("/")[-1]
- if name != pkgdirname:
+ if name != pkgdirname and pkg.base != pkgdirname:
mismatches.append(name + " vs. " + pkg.path)
print "==> checking archs"