summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-10-03 18:33:04 +0000
committerZac Medico <zmedico@gentoo.org>2006-10-03 18:33:04 +0000
commit434952b487e98247a13ff6a769f84191f3f41109 (patch)
tree0a28050f99f89131c718fdfb64f5c108fe3a07a5
parentc331d688682fb8a106b4677f7c5867ee91aeb8ad (diff)
downloadportage-434952b487e98247a13ff6a769f84191f3f41109.tar.gz
portage-434952b487e98247a13ff6a769f84191f3f41109.tar.bz2
portage-434952b487e98247a13ff6a769f84191f3f41109.zip
Print a message about make.globals if PORTDIR is undefined.
svn path=/main/trunk/; revision=4580
-rwxr-xr-xbin/emerge5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/emerge b/bin/emerge
index d73283963..4b1a56e7a 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -2618,7 +2618,10 @@ def show_blocker_docs_link():
def action_sync(settings, trees, mtimedb, myopts, myaction):
xterm_titles = "notitles" not in settings.features
emergelog(xterm_titles, " === sync")
- myportdir=settings["PORTDIR"]
+ myportdir = settings.get("PORTDIR", None)
+ if not myportdir:
+ sys.stderr.write("!!! PORTDIR is undefined. Is /etc/make.globals missing?\n")
+ sys.exit(1)
if myportdir[-1]=="/":
myportdir=myportdir[:-1]
if not os.path.exists(myportdir):