summaryrefslogtreecommitdiffstats
path: root/bin/quickpkg
diff options
context:
space:
mode:
Diffstat (limited to 'bin/quickpkg')
-rwxr-xr-xbin/quickpkg4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/quickpkg b/bin/quickpkg
index dcdf9ea68..1cce8c340 100755
--- a/bin/quickpkg
+++ b/bin/quickpkg
@@ -117,8 +117,10 @@ def quickpkg_main(options, args, eout):
xpak.tbz2(binpkg_tmpfile).recompose_mem(xpdata)
finally:
dblnk.unlockdb()
- bintree.inject(cpv)
binpkg_path = bintree.getname(cpv)
+ ensure_dirs(os.path.dirname(binpkg_path))
+ os.rename(binpkg_tmpfile, binpkg_path)
+ bintree.inject(cpv)
try:
s = os.stat(binpkg_path)
except OSError, e: