From 434952b487e98247a13ff6a769f84191f3f41109 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 3 Oct 2006 18:33:04 +0000 Subject: [PATCH] Print a message about make.globals if PORTDIR is undefined. svn path=/main/trunk/; revision=4580 --- bin/emerge | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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): -- 2.26.2