From 29e804f4869ed2c61cc737124b507c6c9297432e Mon Sep 17 00:00:00 2001 From: Alec Warner Date: Sat, 4 Feb 2006 07:34:36 +0000 Subject: Adding a comment about normpath, and why we use our own copy. svn path=/main/trunk/; revision=2659 --- bin/emerge | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'bin') 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") -- cgit v1.2.3-1-g7c22