From 2caadb33bf60167401f7dd316e704bc42e32a1a9 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 5 Mar 2007 18:06:12 +0000 Subject: * Fixed an issue with globbing the --test argument * Added a custom 'mkdir' function which makes parents and doesn't fail on existence * Added output for 'SKIP' messages (it did not indicate WHY it was skipped) * Added the ability to generate DB packages in the sync dir (not the cache dir) for testing downloading. (self.cachepkgs = False) * Added pmtest.path for the full path to the package file --- pactest/pmdb.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pactest/pmdb.py') diff --git a/pactest/pmdb.py b/pactest/pmdb.py index 3720bcea..fb0e10bb 100755 --- a/pactest/pmdb.py +++ b/pactest/pmdb.py @@ -219,8 +219,7 @@ def db_write(self, pkg): """ path = os.path.join(self.dbdir, self.treename, pkg.fullname()) - if not os.path.isdir(path): - os.makedirs(path); + mkdir(path) # desc # for local db entries: name, version, desc, groups, url, license, @@ -332,7 +331,7 @@ def gensync(self, path): mkdescfile(pkg.fullname(), pkg) # Generate database archive - os.makedirs(path, 0755) + mkdir(path) archive = os.path.join(path, "%s%s" % (self.treename, PM_EXT_DB)) os.system("tar zcf %s *" % archive) -- cgit v1.2.3-54-g00ecf