Mailinglist Archive: zypp-devel (115 mails)

< Previous Next >
Re: [zypp-devel] pkg-bindings status
  • From: Jan Kupec <jkupec@xxxxxxx>
  • Date: Tue, 10 Jul 2007 21:46:18 +0200
  • Message-id: <4693E20A.5010506@xxxxxxx>
Got some more fun for you:

pkg-bindings call:

>> SourceMoveDownloadArea()
> used in inst_rpmcopy for InitialSourceCaching

This is supposed to reattach repo medias into another directory. This is
needed by installation to switch from using ram disk to using newly
formatted disk for commit. To make it more fun, the reattach needs to
happen right before commit (after installation proposal, after
confirming to proceed with the installation).

With old libzypp this was done by calling release followed by attach on
each media handler of the media set which was associated with Source.
Since we don't associate media handler with source anymore, and we use a
completely separate MediaSetAccess in repo::PackageProvider, we must
find another solution.

Installation needs this *at least for commit* so that the packages are
not downloaded into ram disk.

I spoke to duncan already about not creating a new MediaSetAccess for
each provideFile in PackageProvider (RepoProvideFile) but passing it
instead from target commit. Then, if we can create this MediaSetAccess
object with /prefered_attach_point/ parameter set to the new dir, that
should be sufficient. Then we would have commit downloading packages
into that dir.

If we don't need to specify custom attach point elsewhere, then we're
done. If we do, we'll solve it after we'll be finished with this one.


Cheers,

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

< Previous Next >
Follow Ups