aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJauhien Piatlicki (jauhien) <piatlicki@gmail.com>2013-09-04 15:37:28 +0200
committerJauhien Piatlicki (jauhien) <piatlicki@gmail.com>2013-09-04 15:37:28 +0200
commit1d01ed35ce23c80357a00acea911939749d54de7 (patch)
treed51782811274205ec77f4771470caab0c203df30
parentg_sorcery/package_db: more verbosity (diff)
downloadg-sorcery-1d01ed35ce23c80357a00acea911939749d54de7.tar.gz
g-sorcery-1d01ed35ce23c80357a00acea911939749d54de7.tar.bz2
g-sorcery-1d01ed35ce23c80357a00acea911939749d54de7.zip
g_sorcery/package_db: fix a stupid bug in sync function
-rw-r--r--g_sorcery/package_db.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/g_sorcery/package_db.py b/g_sorcery/package_db.py
index 404e55a..bd21857 100644
--- a/g_sorcery/package_db.py
+++ b/g_sorcery/package_db.py
@@ -145,7 +145,7 @@ class PackageDB(object):
self.logger.info("unpacking " + f_name)
os.system("tar -xvzf " + f_name + " -C " + temp_dir.name)
- tempdb_dir = os.listdir(temp_dir.name)[0]
+ tempdb_dir = os.path.join(temp_dir.name, os.listdir(temp_dir.name)[0])
tempdb = PackageDB(tempdb_dir)
if not tempdb.check_manifest():
@@ -207,7 +207,7 @@ class PackageDB(object):
result = True
errors = []
-
+
names = [self.CATEGORIES_NAME]
for name in names:
if not name in manifest: