[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to retrieve the pacakge URI and architecture from python-apt



On Sun, Mar 29, 2009 at 10:39 PM, A Mennucc <debdev@tonelli.sns.it> wrote:
> hi,
>
> in my program 'debdelta-upgrade', I need to see which debian packages
> need to be upgrade, and for each on, know the complete URI , somthing as
>  http://ftp.it.debian.org/debian/pool/main/m/memstat/memstat_0.5_i386.deb
>
> I was helped by M.Vogt with a snippet that s in this email; but
> with the new python-apt in unstable, the following snippet stopped working.
>
> How do I change it? (I tried to read the docs, but I do not know enaough
> of APT )
>
>  thanks a lot in advance
I have already thought about this case and would like to introduce a
new property
uris [or urls] in apt.package.Version, so you can use
package.candidate.uris[0] to get an
URI.

I will reply again with some code you can use until this is
implemented, but in the long run,
this has to be in python-apt itself.


-- 
Julian Andres Klode  - Free Software Developer
   Debian Developer  - Contributing Member of SPI
   Ubuntu Member     - Fellow of FSFE

Website: http://jak-linux.org/   XMPP: juliank@jabber.org
Debian:  http://www.debian.org/  SPI:  http://www.spi-inc.org/
Ubuntu:  http://www.ubuntu.com/  FSFE: http://www.fsfe.org/


Reply to: