- don't produce false error strings...

This commit is contained in:
Barış Metin
2005-09-18 11:51:56 +00:00
parent f6696b76a1
commit ec48344969
+4 -4
View File
@@ -40,10 +40,10 @@ class PackageDB(object):
self.lockfile = file(self.fname + '.lock', 'w')
try:
fcntl.flock(self.lockfile, fcntl.LOCK_EX | fcntl.LOCK_NB)
except IOError:
import sys
ctx.ui.error("Another instance of PISI is running. Try later!\n")
sys.exit(1)
except IOError, e:
import sys
ctx.ui.error("PackageDB: %s\n" % e)
sys.exit(1)
self.d = shelve.open(self.fname)
self.dr = shelve.open(self.fname2)