summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2006-02-04 07:34:36 +0000
committerAlec Warner <antarus@gentoo.org>2006-02-04 07:34:36 +0000
commit29e804f4869ed2c61cc737124b507c6c9297432e (patch)
treeb731fbc41ddbcff0eb6e2db37d2c9eb907f02db9
parent6c4d401c9551ae2c4d4eb01c44a44763b0149eb5 (diff)
downloadportage-29e804f4869ed2c61cc737124b507c6c9297432e.tar.gz
portage-29e804f4869ed2c61cc737124b507c6c9297432e.tar.bz2
portage-29e804f4869ed2c61cc737124b507c6c9297432e.zip
Adding a comment about normpath, and why we use our own copy.
svn path=/main/trunk/; revision=2659
-rwxr-xr-xbin/emerge10
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/emerge b/bin/emerge
index d4c875729..5ee4bc23f 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -76,7 +76,14 @@ if "candy" in portage.settings.features:
if (not sys.stdout.isatty()) or (portage.settings["NOCOLOR"] in ["yes","true"]):
nocolor()
+
+
def normpath(mystr):
+ """
+ os.path.normpath("//foo") returns "//foo" instead of "/foo"
+ We dislike this behavior so we create our own normpath func
+ to fix it.
+ """
if mystr and (mystr[0]=='/'):
return os.path.normpath("///"+mystr)
else:
@@ -2899,7 +2906,8 @@ if myaction in ["sync","rsync","metadata"] and (not "--help" in myopts):
print
print red(" * ")+bold("An update to portage is available.")+" It is _highly_ recommended"
print red(" * ")+"that you update portage now, before any other packages are updated."
- print red(" * ")+"Please do so and then update "+bold("ALL")+" of your configuration files."
+ print red(" * ")+"Please run 'emerge portage' and then update "+bold("ALL")+" of your"
+ print red(" * ")+"configuration files."
print
elif myaction=="regen":
emergelog(" === regen")