For bug #154921, prevent an IndexError when a + is in USE.
For bug #154919, when depclean is unable to resolve dependencies, notify
the user that it may be necessary to manually uninstalled packages that
no longer exist in the portage tree.
svn path=/main/branches/prefix/; revision=5025
for atom in unresolveable:
print atom, "required by", " ".join(unresolveable[atom])
print
- print "Have you forgotten to run " + good("`emerge --update --deep world`") + " prior to depclean?"
+ print "Have you forgotten to run " + good("`emerge --update --newuse --deep world`") + " prior to"
+ print "depclean? It may also be necessary to manually uninstalled packages that no"
+ print "longer exist in the portage tree since it may not be possible to satisfy their"
+ print "dependencies."
print
return
writemsg(red("USE flags should not start with a '+': %s\n" % x),
noiselevel=-1)
x=x[1:]
+ if not x:
+ continue
if (x[0]=="-"):
if (x[1:] in myflags):
writemsg(colorize("BAD", "USE flags should not start " + \
"with a '+': %s\n" % x), noiselevel=-1)
x = x[1:]
+ if not x:
+ continue
if x[0] == "-":
try: