From: Iain Arnell
On Fri, May 14, 2010 at 03:27:18PM +0200, Adrian Schröter wrote:
it seems to be yet another incompatibility of new createrepo with old yum.
I think we need to extend createrepo/yum-common with an option to skip source rpms, because old yum can not handle them.
To be specific, older versions of createrepo used an empty rpm:sourcerpm element where newer versions just don't add it.
It should be pretty easy to patch createrepo.
It's also pretty easy to skip source rpms without patching createrepo itself. --- src/backend/bs_publish | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/backend/bs_publish b/src/backend/bs_publish index 87990d8..dbf983f 100755 --- a/src/backend/bs_publish +++ b/src/backend/bs_publish @@ -304,7 +304,10 @@ sub createrepo_rpmmd { push @createrepoargs, '--changelog-limit', '20'; push @createrepoargs, '--repo', $repotag; my @legacyargs; - push @legacyargs, '--simple-md-filenames', '--checksum=sha' if $legacy; + if ( $legacy ) { + push @legacyargs, '--simple-md-filenames', '--checksum=sha'; + push @legacyargs, '--excludes', '*.src.rpm'; + } my @updateargs; if (-f "$extrep/repodata/repomd.xml") { push @updateargs, '--update'; -- 1.7.0.1 -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org