Merged from trunk 6522:6530
authorFabian Groffen <grobian@gentoo.org>
Sun, 13 May 2007 20:52:10 +0000 (20:52 -0000)
committerFabian Groffen <grobian@gentoo.org>
Sun, 13 May 2007 20:52:10 +0000 (20:52 -0000)
   +------------------------------------------------------------------------+
   | 6523      | s:${PORTDIR}:/usr/portage: so that it's not implied that   |
   | zmedico   | those variables are automatically relative to ${PORTDIR}   |
   |           | when the value of ${PORTDIR} has changed to something      |
   |           | other than /usr/portage. Thanks to kerframil for           |
   |           | reporting.                                                 |
   |-----------+------------------------------------------------------------|
   | 6524      | Add TODO note about support for blocks within slots.       |
   | zmedico   | Thanks to Brian Harring for reporting.                     |
   |-----------+------------------------------------------------------------|
   | 6525      | Fix the varexpand quotes tests since quotes are no longer  |
   | zmedico   | removed by this function.                                  |
   |-----------+------------------------------------------------------------|
   | 6527      | tabs -> spaces                                             |
   | zmedico   |                                                            |
   |-----------+------------------------------------------------------------|
   | 6528      | import dispatch_conf from the new namespace                |
   | zmedico   |                                                            |
   |-----------+------------------------------------------------------------|
   | 6529      | remove old import                                          |
   | zmedico   |                                                            |
   |-----------+------------------------------------------------------------|
   | 6530      | the profile check is spammy and should be squelched when   |
   | WarnerBro | --quiet is given                                           |
   +------------------------------------------------------------------------+

svn path=/main/branches/prefix/; revision=6532

bin/dispatch-conf
bin/ebuild
cnf/make.conf
man/make.conf.5
pym/emerge/__init__.py
pym/portage/tests/util/test_varExpand.py

index 24aa3804e255a9a0564605f20f20663781afb6ea..1279cf985aa4fbccc637e5936c5d163ed84a08e6 100755 (executable)
@@ -13,7 +13,7 @@
 #
 
 if not hasattr(__builtins__, "set"):
-       from sets import Set as set
+    from sets import Set as set
 
 from stat import *
 from random import *
@@ -21,11 +21,11 @@ import atexit, commands, os, re, shutil, stat, sys
 try:
        import portage
 except ImportError:
-       from os import path as osp
-       sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym"))
+    from os import path as osp
+    sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym"))
        import portage
 
-import portage.dispatch_conf, portage.const
+from portage import dispatch_conf, const
 from portage.process import find_binary
 
 FIND_EXTANT_CONFIGS  = "find '%s' %s -iname '._cfg????_%s' ! -iname '.*~' ! -iname '.*.bak'"
index 2d951a55f92bb9b4c8cf99366a8301cdc39eba3f..48420d78e237917d8d080bb3c65fbd0dee55c187 100755 (executable)
@@ -38,7 +38,6 @@ if debug and "python-trace" in portage.features:
        portage.debug.set_trace(True)
 
 if portage.settings["NOCOLOR"] in ("yes","true") or not sys.stdout.isatty():
-       import output
        portage.output.nocolor()
 
 ebuild = pargs.pop(0)
index eb365b6c11aa9fa43a3c8e0d5a99c159c0add523..4ed71dd63f43c958622e110224c13b6080de48ad 100644 (file)
 #     it. The entire repository of tarballs for Gentoo is 9G. This is
 #     considerably more than any user will ever download. 2-3G is
 #     a large DISTDIR.
-#DISTDIR=${PORTDIR}/distfiles
+#DISTDIR=/usr/portage/distfiles
 #
 # PKGDIR is the location of binary packages that you can have created
 #     with '--buildpkg' or '-b' while emerging a package. This can get
 #     up to several hundred megs, or even a few gigs.
-#PKGDIR=${PORTDIR}/packages
+#PKGDIR=/usr/portage/packages
 #
 # PORT_LOGDIR is the location where portage will store all the logs it
 #     creates from each individual merge. They are stored as NNNN-$PF.log
index b0f755c256fff3c283c3f3fa9fb37236cb68c838..fef0c6c9c9f096363859794d11405c7238faee8f 100644 (file)
@@ -98,7 +98,7 @@ as \fI\-\-target=${CTARGET}\fR only if it is defined.
 \fBDISTDIR\fR = \fI[path]\fR
 Defines the location of your local source file repository.
 .br
-Defaults to ${PORTDIR}/distfiles.
+Defaults to /usr/portage/distfiles.
 .TP
 .B DOC_SYMLINKS_DIR
 If this variable contains a directory then symlinks to html documentation will
@@ -316,7 +316,7 @@ Defaults to false.
 \fBPKGDIR\fR = \fI[path]\fR
 Defines the location where created .tbz2 binary packages will be stored.
 .br
-Defaults to ${PORTDIR}/packages.
+Defaults to /usr/portage/packages.
 .TP
 .B PORT_LOGDIR
 This variable defines the directory in which per\-ebuild logs are kept.
index e70ff7c325c9e90e55b1a98b7ae1ce0075a10447..7e4d6870a18b2e77493ba0deb0304c5ba1c48222 100644 (file)
@@ -1916,10 +1916,10 @@ class depgraph:
                                for cpv in blocked_initial:
                                        slot_atom = blocked_slots_initial[cpv]
                                        if slot_atom == pslot_atom:
-                                               # The parent blocks an initial package in the same
-                                               # slot as itself.  The merge/nomerge status of neither
-                                               # node matters.  In any case, this particular block is
-                                               # automatically resolved.
+                                               # TODO: Support blocks within slots in cases where it
+                                               # might make sense.  For example, a new version might
+                                               # require that the old version be uninstalled at build
+                                               # time.
                                                continue
                                        if parent_static and \
                                                slot_atom not in modified_slots[myroot]:
@@ -1943,8 +1943,7 @@ class depgraph:
                                for cpv in blocked_final:
                                        slot_atom = blocked_slots_final[cpv]
                                        if slot_atom == pslot_atom:
-                                               # The parent blocks itself, so the merge order does not
-                                               # need to be enforced.
+                                               # TODO: Support blocks within slots.
                                                continue
                                        if parent_static and \
                                                slot_atom not in modified_slots[myroot]:
@@ -5418,7 +5417,8 @@ def emerge_main():
        if "candy" in settings.features:
                spinner.update = spinner.update_scroll
 
-       portage.deprecated_profile_check()
+       if not myopts["--quiet"]:
+               portage.deprecated_profile_check()
 
        #Freeze the portdbapi for enhanced performance:
        for myroot in trees:
index 0a8bf5b118e7db8c5d755162c71d71e67e289880..ee0f573c97b1e656d80b0edd77b4c7feebf446c0 100644 (file)
@@ -25,7 +25,7 @@ class VarExpandTestCase(TestCase):
        def testVarExpandDoubleQuotes(self):
                
                varDict = { "a":"5" }
-               tests = [ ("\"${a}\"", "5") ]
+               tests = [ ("\"${a}\"", "\"5\"") ]
                for test in tests:
                        result = varexpand( test[0], varDict )
                        self.failIf( result != test[1],
@@ -35,7 +35,7 @@ class VarExpandTestCase(TestCase):
        def testVarExpandSingleQuotes(self):
                
                varDict = { "a":"5" }
-               tests = [ ("\'${a}\'", "${a}") ]
+               tests = [ ("\'${a}\'", "\'${a}\'") ]
                for test in tests:
                        result = varexpand( test[0], varDict )
                        self.failIf( result != test[1],