__uniqlist__.append(pkgline)
return True
+world_file = os.path.join("/", portage.WORLD_FILE)
+
# show a little description if we have arguments
if len(sys.argv) >= 2 and sys.argv[1] in ["-h", "--help"]:
print "This script regenerates the portage world file by checking the portage"
print "logfile for all actions that you've done in the past. It ignores any"
print "arguments except --help. It is recommended that you make a backup of"
- print "your existing world file (%s) before using this tool." % portage.WORLD_FILE
+ print "your existing world file (%s) before using this tool." % world_file
sys.exit(0)
worldlist = portage.grabfile(os.path.join("/", portage.WORLD_FILE))