Mailinglist Archive: zypp-devel (39 mails)

< Previous Next >
[zypp-devel] [PATCH 0/2] Support for primary.xml.lzma (fate#309167)
  • From: Michal Marek <mmarek@xxxxxxx>
  • Date: Mon, 3 May 2010 14:24:13 +0200
  • Message-id: <1272889456-12384-1-git-send-email-mmarek@xxxxxxx>
Hi,

this series tries to implement fate#309167. In short: The 11.2+ kernel
provides a dependency for each exported symbol (fate#305945), which
results in thousands of provides. Zypp / sat-solver cope well with this,
but the problem is that the primary.xml.gz file grows beyond limits.
This is especially an issue in the update repository, which contains
also previous versions of released updates (bnc#582907). The idea is to
sort the entries in primary.xml and provide a lzma-compressed version
allongside with primary.xml.gz, e.g.:

<data type="primary">
<checksum
type="sha256">5af6293d33986c74084639d228cab0eb66dcd16e1b2782e79447520055a256ee</checksum>
<timestamp>1272657997</timestamp>
<size>1747219</size>
<open-size>12401312</open-size>
<open-checksum
type="sha256">c450888395ecc54345a0d0bc152b5bc774cea727e9d285bf6d88dda2d6bc0e0c</open-checksum>
<location href="repodata/primary.xml.gz"/>
</data>
<data type="primary_lzma">
<checksum
type="sha256">e15e7b0ae7756ca345580f5639f3512bcdfe23aa21c0355a7147af356a18bf22</checksum>
<timestamp>1272657997</timestamp>
<size>750408</size>
<open-size>12401312</open-size>
<open-checksum
type="sha256">c450888395ecc54345a0d0bc152b5bc774cea727e9d285bf6d88dda2d6bc0e0c</open-checksum>
<location href="repodata/primary.xml.lzma"/>
</data>

The createrepo changes are in
http://gitorious.org/mmarek-misc/createrepo/commits/lzma-support, a
package is in home:michal-m:branches:system:packagemanager/createrepo.
These two patches change zypp to skip downloading primary.xml.gz if
primary.xml.lzma is available. A third patch against sat-solver adds
support for primary.xml.lzma to repo2solv.sh. libzypp.spec will need a
versioned requires on satsolver-tools so that an up-to-date repo2solv.sh
script is available. This part is not included.

Please review, it would be great to have support for this in 11.3.

Michal


Michal Marek (2):
Add Fetcher::cancelJob()
Download primary.xml.lzma if available (fate#309167)

zypp/Fetcher.cc | 52 ++++++++++++++++++++++++++--------------
zypp/Fetcher.h | 17 ++++++++++---
zypp/repo/yum/Downloader.cc | 23 +++++++++++++++++-
zypp/repo/yum/Downloader.h | 1 +
zypp/repo/yum/ResourceType.cc | 3 ++
zypp/repo/yum/ResourceType.h | 2 +
6 files changed, 75 insertions(+), 23 deletions(-)

--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >