[opensuse-buildservice] OBS has become unusable with SLES10 yum?
hi, for a few weeks now, our SLES 10 systems are no longer able to update their software from OBS repos. all attempts to update repo information ("yum check-update") or install software using their SLES10 yum-2.4.2-13.4 fail with an error like: http://www.pastie.org/960193 (the repository used for this example was http://download.opensuse.org/repositories/Apache:/Modules/Apache_SLE_10/) we observe this behaviour on several hosts and for various OBS repos. it seems that the OBS repository format has suddenly become unusable with older yum versions. any information or help about this issue appreciated. thank you, christian -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Freitag, 14. Mai 2010, 15:02:39 schrieb Christian Peter:
hi,
for a few weeks now, our SLES 10 systems are no longer able to update their software from OBS repos.
all attempts to update repo information ("yum check-update") or install software using their SLES10 yum-2.4.2-13.4 fail with an error like: http://www.pastie.org/960193 (the repository used for this example was http://download.opensuse.org/repositories/Apache:/Modules/Apache_SLE_10/)
we observe this behaviour on several hosts and for various OBS repos.
it seems that the OBS repository format has suddenly become unusable with older yum versions.
any information or help about this issue appreciated.
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. Would be great, if someone could provid a patch :) bye adrian
thank you,
christian
-- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
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. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
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
On Mon, May 17, 2010 at 01:09:06PM +0200, Michael Schroeder wrote:
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.
Fixed on build.opensuse.org. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (4)
-
Adrian Schröter
-
Christian Peter
-
iarnell@gmail.com
-
Michael Schroeder