Print a message about make.globals if PORTDIR is undefined.
authorZac Medico <zmedico@gentoo.org>
Tue, 3 Oct 2006 18:33:04 +0000 (18:33 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 3 Oct 2006 18:33:04 +0000 (18:33 -0000)
svn path=/main/trunk/; revision=4580

bin/emerge

index d73283963c9eb50d45a6772756b856e184e37754..4b1a56e7ad2dd822ad35422f70acb9334b8722f6 100755 (executable)
@@ -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):