Discussion:
Patch: weak dependencies for createrepo
Michael Schroeder
2014-02-25 13:36:54 UTC
Permalink
Hi repomd folks,

attached is what I currently use to have createrepo emit weak dependencies.
Things are a bit complicated because I still need to support the old
tags, feel free to remove that part if you don't like it.

yum-metadata-parser-1.1.2-weakdeps.patch:
'createrepo --update' needs to parse the old metadata, and since
some time it uses the yum-metadata-parser (aka sqlitecache) package
to do the job. Thus we need to support weak dependencies here as well.

yum-3.4.3-suse-missing-tags.patch:
adds support for the new tags. The old tags are not exported, so
I had to use the numeric values here.

Feel free to beatify my code ;)

Cheers,
Michael.
--
Michael Schroeder ***@suse.de
SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
Michael Schroeder
2014-03-13 11:31:51 UTC
Permalink
Post by Michael Schroeder
attached is what I currently use to have createrepo emit weak dependencies.
Things are a bit complicated because I still need to support the old
tags, feel free to remove that part if you don't like it.
'createrepo --update' needs to parse the old metadata, and since
some time it uses the yum-metadata-parser (aka sqlitecache) package
to do the job. Thus we need to support weak dependencies here as well.
adds support for the new tags. The old tags are not exported, so
I had to use the numeric values here.
Feel free to beatify my code ;)
Attached is a simpler version of yum-3.4.3-suse-missing-tags.patch.
(yum-metadata-parser-1.1.2-weakdeps.patch is still needed.)

Cheers,
Michael.
--
Michael Schroeder ***@suse.de
SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
Loading...