Just rely on the PATH. This should be fine, and avoids ugly EPREFIX
authorFabian Groffen <grobian@gentoo.org>
Mon, 5 Mar 2007 21:41:29 +0000 (21:41 -0000)
committerFabian Groffen <grobian@gentoo.org>
Mon, 5 Mar 2007 21:41:29 +0000 (21:41 -0000)
stuff all the time.  Solves bug when the tools are just not exactly in
the location they were hardcoded to be.

svn path=/main/branches/prefix/; revision=6179

bin/repoman

index b97b8da5383c905f159e3f8635a891a338c33f56..d91fbb0350c707c028b949ec4a675b861939bd12 100755 (executable)
@@ -1356,7 +1356,7 @@ for x in scanlist:
                                                        fails[mykey].append(x+"/"+y+".ebuild: "+keyword+"("+prof[0]+") "+repr(mydep[1]))
 
                # this check needs work, it won't catch (\ndie)
-               if not os.system(portage.const.EPREFIX+"/usr/bin/grep -E '^[^#]*\([^)]*\<die\>' "+checkdir+"/"+y+".ebuild >/dev/null 2>&1"):
+               if not os.system("grep -E '^[^#]*\([^)]*\<die\>' "+checkdir+"/"+y+".ebuild >/dev/null 2>&1"):
                        stats["ebuild.nesteddie"]=stats["ebuild.nesteddie"]+1
                        fails["ebuild.nesteddie"].append(x+"/"+y+".ebuild")
                # uselist checks - global
@@ -1651,10 +1651,10 @@ elif "--pretend" not in myoptions:
        retval=["",""]
        if isCvs:
                print "Performing a "+green("cvs -n up")+" with a little magic grep to check for updates."
-               retval=getstatusoutput(portage.const.EPREFIX+"/usr/bin/cvs -n up 2>&1 | "+portage.const.EPREFIX+"/bin/egrep '^[^\?] .*' | "+portage.const.EPREFIX+"/bin/egrep -v '^. .*/digest-[^/]+|^cvs server: .* -- ignored$'")
+               retval=getstatusoutput("cvs -n up 2>&1 | egrep '^[^\?] .*' | egrep -v '^. .*/digest-[^/]+|^cvs server: .* -- ignored$'")
        if isSvn:
                print "Performing a "+green("svn status -u")+" with a little magic grep to check for updates."
-               retval=getstatusoutput(portage.const.EPREFIX+"/usr/bin/svn status -u 2>&1 | "+portage.const.EPREFIX+"/bin/egrep -v '^.  +.*/digest-[^/]+' | "+portage.const.EPREFIX+"/usr/bin/head -n-1")
+               retval=getstatusoutput("svn status -u 2>&1 | egrep -v '^.  +.*/digest-[^/]+' | head -n-1")
 
        mylines=retval[1].split("\n")
        myupdates=[]