summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/thandy/packagesys/ThpPackages.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/thandy/packagesys/ThpPackages.py b/lib/thandy/packagesys/ThpPackages.py
index e4e12f6..da76c6b 100644
--- a/lib/thandy/packagesys/ThpPackages.py
+++ b/lib/thandy/packagesys/ThpPackages.py
@@ -27,8 +27,10 @@ class ThpDB(object):
if self._thp_db_root is None:
raise Exception("There is no THP_DB_ROOT variable set")
dbpath = os.path.join(self._thp_db_root, "pkg-status")
- if not os.path.exists(dbpath):
+ try:
os.mkdir(dbpath)
+ except OSError, e:
+ pass
def getPath(self):
""" Returns the path to the database root """