index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-07-16 10:07:25 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-07-18 10:34:05 -0500 |
commit | 1c39e4fbade29d570858ca6eca4958ab72cfbdd0 (patch) | |
tree | 94778d2fed75db5d8bad3122779fdc1b95c18423 /test/pacman/pmrule.py | |
parent | 3a04267cdd0b1324c8153c813e9bc5726b005670 (diff) |
-rw-r--r-- | test/pacman/pmrule.py | 8 |
diff --git a/test/pacman/pmrule.py b/test/pacman/pmrule.py index 0f6ae602..cb7ae88d 100644 --- a/test/pacman/pmrule.py +++ b/test/pacman/pmrule.py @@ -146,6 +146,14 @@ class pmrule(object): else: print "FILE rule '%s' not found" % case success = -1 + elif kind == "DIR": + filename = os.path.join(test.root, key) + if case == "EXIST": + if not os.path.isdir(filename): + success = 0 + else: + print "DIR rule '%s' not found" % case + success = -1 elif kind == "LINK": filename = os.path.join(test.root, key) if case == "EXIST": |