summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-04-25 04:04:54 +0000
committerZac Medico <zmedico@gentoo.org>2006-04-25 04:04:54 +0000
commit6f34180e053d44d4842b9a31eea2fa42d1d60c60 (patch)
tree1e0d184841b959e1d50399f25e214551c8d9a2a2
parentd37897fe05e1deb835ca21ce3f0f3c044ae403c6 (diff)
downloadportage-6f34180e053d44d4842b9a31eea2fa42d1d60c60.tar.gz
portage-6f34180e053d44d4842b9a31eea2fa42d1d60c60.tar.bz2
portage-6f34180e053d44d4842b9a31eea2fa42d1d60c60.zip
Move the make.profile symlink warning from global scope to the config class.
svn path=/main/trunk/; revision=3223
-rw-r--r--pym/portage.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/pym/portage.py b/pym/portage.py
index b957b2071..8ab65b1f0 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1272,6 +1272,12 @@ class config:
if group not in archlist and group[0] != '-':
writemsg("!!! INVALID ACCEPT_KEYWORDS: %s\n" % str(group))
+ if not os.path.islink(PROFILE_PATH) and \
+ os.path.exists(os.path.join(self["PORTDIR"], "profiles")):
+ writemsg("\a\n\n!!! %s is not a symlink and will probably prevent most merges.\n" % PROFILE_PATH)
+ writemsg("!!! It should point into a profile within %s/profiles/\n" % self["PORTDIR"])
+ writemsg("!!! (You can safely ignore this message when syncing. It's harmless.)\n\n\n")
+
if mycpv:
self.setcpv(mycpv)
@@ -6868,12 +6874,6 @@ archlist = settings.archlist()
# Clear the cache
dircache={}
-if not os.path.islink(PROFILE_PATH) and os.path.exists(settings["PORTDIR"]+"/profiles"):
- writemsg(red("\a\n\n!!! "+PROFILE_PATH+" is not a symlink and will probably prevent most merges.\n"))
- writemsg(red("!!! It should point into a profile within %s/profiles/\n" % settings["PORTDIR"]))
- writemsg(red("!!! (You can safely ignore this message when syncing. It's harmless.)\n\n\n"))
- time.sleep(3)
-
# ============================================================================
# ============================================================================