diff options
| author | 2015-04-08 15:31:52 -0700 | |
|---|---|---|
| committer | 2015-04-11 08:55:17 -0700 | |
| commit | ec0954d7a8e66cf07679ac94502b5dfa37a27882 (patch) | |
| tree | e893b2b8fe1893e631c72ffee41f62f844301792 | |
| parent | repoman: fix dependency.unknown to ignore USE deps (bug 525376) (diff) | |
| download | portage-ec0954d7a8e66cf07679ac94502b5dfa37a27882.tar.gz portage-ec0954d7a8e66cf07679ac94502b5dfa37a27882.tar.bz2 portage-ec0954d7a8e66cf07679ac94502b5dfa37a27882.zip | |
repoman: handle removed packages in vcs_files_to_cps (bug 546010)
X-Gentoo-Bug: 546010
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=546010
Acked-by: Alexander Berntsen <bernalex@gentoo.org>
| -rwxr-xr-x | bin/repoman | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman index 4a21e37f3..5ff68578f 100755 --- a/bin/repoman +++ b/bin/repoman @@ -1047,7 +1047,10 @@ def vcs_files_to_cps(vcs_file_iter): if len(f_split) > 3 and f_split[1] in categories: modified_cps.append("/".join(f_split[1:3])) - return frozenset(modified_cps) + # Exclude packages that have been removed, since calling + # code assumes that the packages exist. + return frozenset(x for x in frozenset(modified_cps) + if os.path.exists(os.path.join(repodir, x))) def git_supports_gpg_sign(): status, cmd_output = \ |
