Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r9564 - main/branches/2.1.2/bin
Date: Fri, 28 Mar 2008 12:30:59
Message-Id: E1JfDjU-0007D0-Ec@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-03-28 12:30:55 +0000 (Fri, 28 Mar 2008)
3 New Revision: 9564
4
5 Modified:
6 main/branches/2.1.2/bin/regenworld
7 Log:
8 Bug #210690 - Fix --help output to show the leading slash on the path to
9 the world file. (trunk r9486)
10
11
12 Modified: main/branches/2.1.2/bin/regenworld
13 ===================================================================
14 --- main/branches/2.1.2/bin/regenworld 2008-03-28 12:29:46 UTC (rev 9563)
15 +++ main/branches/2.1.2/bin/regenworld 2008-03-28 12:30:55 UTC (rev 9564)
16 @@ -40,12 +40,14 @@
17 __uniqlist__.append(pkgline)
18 return True
19
20 +world_file = os.path.join("/", portage.WORLD_FILE)
21 +
22 # show a little description if we have arguments
23 if len(sys.argv) >= 2 and sys.argv[1] in ["-h", "--help"]:
24 print "This script regenerates the portage world file by checking the portage"
25 print "logfile for all actions that you've done in the past. It ignores any"
26 print "arguments except --help. It is recommended that you make a backup of"
27 - print "your existing world file (%s) before using this tool." % portage.WORLD_FILE
28 + print "your existing world file (%s) before using this tool." % world_file
29 sys.exit(0)
30
31 worldlist = portage.grabfile(os.path.join("/", portage.WORLD_FILE))
32
33 --
34 gentoo-commits@l.g.o mailing list