from portage.manifest import Manifest
from portage.exception import ParseError
-from portage.process import spawn
+from portage.process import find_binary, spawn
from portage.output import bold, darkgreen, darkred, green, nocolor, red, turquoise, yellow
fails[x]=[]
xmllint_capable = False
metadata_dtd = os.path.join(repoman_settings["DISTDIR"], 'metadata.dtd')
-if getstatusoutput('which xmllint')[0] != 0:
+if mymode == "manifest":
+ pass
+elif not find_binary('xmllint'):
print red("!!! xmllint not found. Can't check metadata.xml.\n")
if "--xmlparse" in myoptions or repolevel==3:
print red("!!!")+" sorry, xmllint is needed. failing\n"