diff options
author | Jauhien Piatlicki (jauhien) <piatlicki@gmail.com> | 2013-09-04 15:37:28 +0200 |
---|---|---|
committer | Jauhien Piatlicki (jauhien) <piatlicki@gmail.com> | 2013-09-04 15:37:28 +0200 |
commit | 1d01ed35ce23c80357a00acea911939749d54de7 (patch) | |
tree | d51782811274205ec77f4771470caab0c203df30 | |
parent | g_sorcery/package_db: more verbosity (diff) | |
download | g-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.py | 4 |
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: |