Deprecate @installed for bug #387059.
authorZac Medico <zmedico@gentoo.org>
Tue, 4 Sep 2012 03:28:25 +0000 (20:28 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 4 Sep 2012 03:28:25 +0000 (20:28 -0700)
pym/_emerge/main.py

index 049c3ec88d2e60206a481e60da455dd5b7858667..aff1d3733d59d2bc567293a7748a8158f1998ed5 100644 (file)
@@ -1481,6 +1481,12 @@ def expand_set_arguments(myfiles, myaction, root_config):
                                if s not in sets:
                                        display_missing_pkg_set(root_config, s)
                                        return (None, 1)
+                               if s == "installed":
+                                       msg = ("The @installed set is deprecated and will soon be "
+                                       "removed. Please refer to bug #387059 for details.")
+                                       out = portage.output.EOutput()
+                                       for line in textwrap.wrap(msg, 50):
+                                               out.ewarn(line)
                                setconfig.active.append(s)
                                try:
                                        set_atoms = setconfig.getSetAtoms(s)