summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-03-19 10:31:43 +0000
committerZac Medico <zmedico@gentoo.org>2008-03-19 10:31:43 +0000
commitdb70c869f583c8943941cb0c514e37c99f91a07b (patch)
tree45505ca888acbba87e371ad69041b587bd5f6786 /bin/regenworld
parentBug #210575 - Optimize doins -r so that it doesn't call itself recursively, (diff)
downloadportage-multirepo-db70c869f583c8943941cb0c514e37c99f91a07b.tar.gz
portage-multirepo-db70c869f583c8943941cb0c514e37c99f91a07b.tar.bz2
portage-multirepo-db70c869f583c8943941cb0c514e37c99f91a07b.zip
Bug #210690 - Fix --help output to show the leading slash on the path to
the world file. svn path=/main/trunk/; revision=9486
Diffstat (limited to 'bin/regenworld')
-rwxr-xr-xbin/regenworld4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/regenworld b/bin/regenworld
index 60165340..52dbbe19 100755
--- a/bin/regenworld
+++ b/bin/regenworld
@@ -40,12 +40,14 @@ def isunwanted(pkgline):
__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))