diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-06-09 04:41:07 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-06-09 04:41:07 +0000 |
commit | d2ad95844bed61db67b610c9461742d56c903ae5 (patch) | |
tree | a4268af559020b632359b534e4097ed99cbeaacd /bin | |
parent | 1c8002bcfb7d60398b491b1e49327de334402761 (diff) | |
download | portage-d2ad95844bed61db67b610c9461742d56c903ae5.tar.gz portage-d2ad95844bed61db67b610c9461742d56c903ae5.tar.bz2 portage-d2ad95844bed61db67b610c9461742d56c903ae5.zip |
Don't forget to rename the temporary binpkg after it's created.
svn path=/main/branches/2.1.2/; revision=6774
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/quickpkg | 4 |
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: |