print red(" * ")+"To update portage, run 'emerge portage'."
print
-if myaction in ["sync","metadata"] and "--help" not in myopts:
- if "--pretend" in myopts:
- print "emerge: \"sync\" actions do not support \"--pretend.\""
- sys.exit(1)
- action_sync()
-elif myaction=="regen":
+def action_regen():
emergelog(" === regen")
#regenerate cache entries
print "Regenerating cache entries... "
except Exception, e:
print "\n error processing %(cpv)s, continuing... (%(e)s)" % {"cpv":y,"e":str(e)}
print "done!"
+
+if myaction in ["sync","metadata"] and "--help" not in myopts:
+ if "--pretend" in myopts:
+ print "emerge: \"sync\" actions do not support \"--pretend.\""
+ sys.exit(1)
+ action_sync()
+elif myaction=="regen":
+ action_regen()
# HELP action
elif "config"==myaction:
if len(myfiles) != 1 or "system" in myfiles or "world" in myfiles: