portage.update.update_config_files(): Add handling of /etc/portage/sets.
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Sun, 17 Mar 2013 04:32:22 +0000 (05:32 +0100)
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Sun, 17 Mar 2013 04:32:22 +0000 (05:32 +0100)
pym/portage/update.py

index 6317d11b640763226a78bfb2ac788650323615ca..be52164b574d9db6e118be8a18467a92295489f4 100644 (file)
@@ -282,7 +282,8 @@ def parse_updates(mycontent):
        return myupd, errors
 
 def update_config_files(config_root, protect, protect_mask, update_iter, match_callback = None):
-       """Perform global updates on /etc/portage/package.*, /etc/portage/profile/packages and /etc/portage/profile/package.*.
+       """Perform global updates on /etc/portage/package.*, /etc/portage/profile/package.*,
+       /etc/portage/profile/packages and /etc/portage/sets.
        config_root - location of files to update
        protect - list of paths from CONFIG_PROTECT
        protect_mask - list of paths from CONFIG_PROTECT_MASK
@@ -305,7 +306,7 @@ def update_config_files(config_root, protect, protect_mask, update_iter, match_c
                "package.accept_keywords", "package.env",
                "package.keywords", "package.license",
                "package.mask", "package.properties",
-               "package.unmask", "package.use"
+               "package.unmask", "package.use", "sets"
        ]
        myxfiles += [os.path.join("profile", x) for x in (
                "packages", "package.accept_keywords",