summaryrefslogtreecommitdiffstats
path: root/bin/regenworld
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-03-28 12:30:55 +0000
committerZac Medico <zmedico@gentoo.org>2008-03-28 12:30:55 +0000
commitc36994c205d91ee819180ff9339b33a855e61061 (patch)
tree98ab212dd5caa5738ee511ede431472035568ffe /bin/regenworld
parentafb2b118c825f8a72c67c8b34c685b867b4135a1 (diff)
downloadportage-c36994c205d91ee819180ff9339b33a855e61061.tar.gz
portage-c36994c205d91ee819180ff9339b33a855e61061.tar.bz2
portage-c36994c205d91ee819180ff9339b33a855e61061.zip
Bug #210690 - Fix --help output to show the leading slash on the path to
the world file. (trunk r9486) svn path=/main/branches/2.1.2/; revision=9564
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 601653406..52dbbe19c 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))