diff options
Diffstat (limited to 'test/pacman/pmdb.py')
-rw-r--r-- | test/pacman/pmdb.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/pacman/pmdb.py b/test/pacman/pmdb.py index 3e9d305e..b7b3522a 100644 --- a/test/pacman/pmdb.py +++ b/test/pacman/pmdb.py @@ -23,6 +23,7 @@ from StringIO import StringIO import tarfile import pmpkg +import tap import util def _getsection(fd): @@ -105,7 +106,7 @@ class pmdb(object): # desc filename = os.path.join(path, "desc") if not os.path.isfile(filename): - print "invalid db entry found (desc missing) for pkg", pkgname + tap.bail("invalid db entry found (desc missing) for pkg " + pkgname) return None fd = open(filename, "r") while 1: @@ -160,7 +161,7 @@ class pmdb(object): # files filename = os.path.join(path, "files") if not os.path.isfile(filename): - print "invalid db entry found (files missing) for pkg", pkgname + tap.bail("invalid db entry found (files missing) for pkg " + pkgname) return None fd = open(filename, "r") while 1: |