Re: how to retrieve the pacakge URI and architecture from python-apt
On Fri, Jun 09, 2006 at 09:11:10PM +0200, A Mennucc wrote:
> On Fri, Jun 09, 2006 at 05:29:45PM +0200, Michael Vogt wrote:
> > On Tue, May 30, 2006 at 12:24:17PM +0200, A Mennucc wrote:
[..]
> 'debdelta' has currently entered into Debian/unstable.
>
> I just finished version 0.12, that corrects a stupid bug (I
> forgot to quote URLs, so the download was failing on many deltas... :-> )
>
> You may get it at my repo http://tonelli.sns.it/pub/mennucc1/debdelta/etch
>
> otherwise I will upload it into Debian/unstable in some 24 hours
> (I want to test it a bit, I also rewrote a lot of code).
>
> If you like it, would you help me in creating a method for APT, so
> that 'debdelta' becomes a component of APT, and then is much easier
> to use?
Yes, I can do this. We should probably need to think a bit how to map
this into apt. I guess a extension to the
apt-pkg/acquire-item.cc:pkgAcqArchive() code similar to what was done
for pdiff. Then we can use the normal http downloader to get the patch
and a new "debpatch" method to apply it. We would also need the
infrastructure to have the deltas on the server.
I think overwritting methods/http (as some code in debdelta indicates)
is not quite the right approach :)
>From what I see in the code you test if a delta is available by simply
trying a "HEAD" on it (no indexfile or anything involved), is this
correct?
Cheers,
Michael
--
Linux is not The Answer. Yes is the answer. Linux is The Question. - Neo
Reply to: