diff options
author | 2010-07-08 12:58:01 +0200 | |
---|---|---|
committer | 2010-07-27 16:13:16 -0700 | |
commit | c70f90b3cf0d55f569783d07202b3819d11dc018 (patch) | |
tree | 6c5008b3661739b2643216af34839e64af101664 /bin | |
parent | Add repository-wide updates support to emaint. (diff) | |
download | portage-multirepo-c70f90b3cf0d55f569783d07202b3819d11dc018.tar.gz portage-multirepo-c70f90b3cf0d55f569783d07202b3819d11dc018.tar.bz2 portage-multirepo-c70f90b3cf0d55f569783d07202b3819d11dc018.zip |
Fallback to updates from PORTDIR if repository has no 'updates' dir.
As a backwards-compatibility measure, if a particular repository doesn't
come with an 'updates' directory, fallback to updates from
dbapi.porttree_root.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/emaint | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -239,6 +239,9 @@ class MoveHandler(object): for repo_name in self._portdb.getRepositories(): repo = self._portdb.getRepositoryPath(repo_name) updpath = os.path.join(repo, "profiles", "updates") + if not os.path.isdir(updpath): + # as a backwards-compatibility measure, fallback to PORTDIR + updpath = os.path.join(self._portdb.porttree_root, "profiles", "updates") try: rawupdates = grab_updates(updpath) except portage.exception.DirectoryNotFound: |