use sys.argv[0] for the path to emerge rather then hard coding
authorBrian Harring <ferringb@gentoo.org>
Mon, 6 Feb 2006 07:34:30 +0000 (07:34 -0000)
committerBrian Harring <ferringb@gentoo.org>
Mon, 6 Feb 2006 07:34:30 +0000 (07:34 -0000)
svn path=/main/trunk/; revision=2673

bin/emerge

index 1a47d70ce1567f0680bea231b5b914f365155570..e9aa65dd515e40c3c2a8d10ec2af8297fe7fc03e 100755 (executable)
@@ -2120,7 +2120,7 @@ class depgraph:
                                                                emergelog(" *** RESTARTING emerge via exec() after change of portage version.")
                                                                del portage.mtimedb["resume"]["mergelist"][0]
                                                                portage.portageexit()
-                                                               mynewargv=["/usr/lib/portage/bin/emerge","--resume"]
+                                                               mynewargv=[sys.argv[0],"--resume"]
                                                                badlongopts = ("--ask","--tree","--changelog","--skipfirst","--resume")
                                                                for arg in myopts:
                                                                        if arg in badlongopts: