Fix emerge by tbz2 path so that it works properly. (trunk r7171)
authorZac Medico <zmedico@gentoo.org>
Fri, 6 Jul 2007 00:42:36 +0000 (00:42 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 6 Jul 2007 00:42:36 +0000 (00:42 -0000)
svn path=/main/branches/2.1.2/; revision=7173

bin/emerge

index 837833799d8043f754e2a4acaa7293638d5c45e9..0b061b735bf51a3d3ca2fc5709d728ef04f18f04 100755 (executable)
@@ -1487,15 +1487,16 @@ class depgraph:
                                        else:
                                                print "\n\n!!! Binary package '"+str(x)+"' does not exist."
                                                print "!!! Please ensure the tbz2 exists as specified.\n"
-                                               sys.exit(1)
+                                               return 0, myfavorites
                                mytbz2=xpak.tbz2(x)
                                mykey=mytbz2.getelements("CATEGORY")[0]+"/"+os.path.splitext(os.path.basename(x))[0]
                                if os.path.realpath(x) != \
                                        os.path.realpath(self.trees[myroot]["bintree"].getname(mykey)):
                                        print colorize("BAD", "\n*** You need to adjust PKGDIR to emerge this package.\n")
-                                       sys.exit(1)
+                                       return 0, myfavorites
                                if not self.create(["binary", myroot, mykey],
-                                       None, "--onlydeps" not in self.myopts):
+                                       None, "--onlydeps" not in self.myopts,
+                                       myuse=mytbz2.getelements("USE"), arg=x):
                                        return (0,myfavorites)
                                arg_atoms.append((x, "="+mykey))
                        elif ext==".ebuild":
@@ -5786,7 +5787,6 @@ def emerge_main():
        for x in myfiles:
                ext = os.path.splitext(x)[1]
                if (ext == ".ebuild" or ext == ".tbz2") and os.path.exists(os.path.abspath(x)):
-                       print "emerging by path implies --oneshot... adding --oneshot to options."
                        print colorize("BAD", "\n*** emerging by path is broken and may not always work!!!\n")
                        break