diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-06-05 18:35:35 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-06-05 18:35:35 -0700 |
commit | 9dbf4d7d7fb7c6d0284cc25d8322dd84292d6dd9 (patch) | |
tree | 36a8f9b76f1b8e216f261389e02d7c42eb7cf52c | |
parent | 9e11086e9ec14b138f291eb501a81965e87be781 (diff) | |
download | portage-9dbf4d7d7fb7c6d0284cc25d8322dd84292d6dd9.tar.gz portage-9dbf4d7d7fb7c6d0284cc25d8322dd84292d6dd9.tar.bz2 portage-9dbf4d7d7fb7c6d0284cc25d8322dd84292d6dd9.zip |
repoman: try to sign Manifest only if it exists
This case occurs with "thin-manifests = true" in metadata/layout.conf
when there are no distfiles (like for live ebuilds), as reported in
bug #419717.
-rwxr-xr-x | bin/repoman | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman index e43fa1cd5..65ba4595d 100755 --- a/bin/repoman +++ b/bin/repoman @@ -2751,7 +2751,10 @@ else: for x in sorted(vcs_files_to_cps( chain(myupdates, myremoved, mymanifests))): repoman_settings["O"] = os.path.join(repodir, x) - gpgsign(os.path.join(repoman_settings["O"], "Manifest")) + manifest_path = os.path.join(repoman_settings["O"], "Manifest") + if not os.path.exists(manifest_path): + continue + gpgsign(manifest_path) except portage.exception.PortageException as e: portage.writemsg("!!! %s\n" % str(e)) portage.writemsg("!!! Disabled FEATURES='sign'\n") |