Don't forget to rename the temporary binpkg after it's created.
authorZac Medico <zmedico@gentoo.org>
Sat, 9 Jun 2007 04:41:07 +0000 (04:41 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 9 Jun 2007 04:41:07 +0000 (04:41 -0000)
svn path=/main/branches/2.1.2/; revision=6774

bin/quickpkg

index dcdf9ea684783f7f37371999567e0d0ebf1e92ba..1cce8c34045a9f475d8d8ed2a6ead5ca063ae36e 100755 (executable)
@@ -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: