From c70f90b3cf0d55f569783d07202b3819d11dc018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 8 Jul 2010 12:58:01 +0200 Subject: 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. --- bin/emaint | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bin/emaint') diff --git a/bin/emaint b/bin/emaint index fb712db8b..2bd17d9fd 100755 --- a/bin/emaint +++ b/bin/emaint @@ -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: -- cgit v1.2.3-1-g7c22