index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | test/pacman/pmrule.py | 10 |
diff --git a/test/pacman/pmrule.py b/test/pacman/pmrule.py index 0eec8ea9..c2336c5d 100644 --- a/test/pacman/pmrule.py +++ b/test/pacman/pmrule.py @@ -103,13 +103,11 @@ class pmrule(object): if not value in newpkg.files: success = 0 elif case == "BACKUP": - found = 0 + success = 0 for f in newpkg.backup: - name, md5sum = f.split("\t") - if value == name: - found = 1 - if not found: - success = 0 + if f.startswith(value + "\t"): + success = 1 + break; else: tap.diag("PKG rule '%s' not found" % case) success = -1 |