Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21861
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <adminlewis@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.113 |
| X-Spam-Level | * |
| X-Spam-Evidence | '*H*': 0.78; '*S*': 0.00; 'output': 0.10; 'server,': 0.12; 'documented.': 0.16; 'url:archive': 0.16; 'url:debian': 0.16; 'cc:addr:python-list': 0.16; 'linux': 0.17; 'cc:no real name:2**0': 0.21; 'maybe': 0.21; "doesn't": 0.22; 'header:In- Reply-To:1': 0.22; 'cache': 0.24; 'received:209.85.220': 0.25; 'windows': 0.26; 'cc:2**0': 0.26; 'import': 0.27; 'script': 0.28; 'message-id:@mail.gmail.com': 0.29; 'print': 0.29; 'cc:addr:python.org': 0.29; 'correct': 0.29; 'url:library': 0.31; 'thanks': 0.32; 'file': 0.34; 'doc': 0.34; 'something': 0.35; 'partial': 0.37; 'but': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'url:org': 0.39; 'ok,': 0.39; 'received:209': 0.39; 'url:blogspot': 0.61; 'your': 0.61; 'connect': 0.62; 'link': 0.62; 'p.s.': 0.68; 'url:x': 0.68; 'url:it': 0.71; 'url:10': 0.72; '(your': 0.84; 'url:l': 0.87; 'indirizzo': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=P9Yj509Ib7f5Sz6Rt4CgzPyyXNXyBMR8OfH2QwGWNDc=; b=RRWumRnW81rdxMjF/ENI+xhM8UNz5+Oau6O0yIC6afGE3hbJB+o8P2iD7mZJ4xqv3A LfS0Vk5SlsIxypLP/Jw6ZWJG9KXdbHP9Rj9U+1UrGyY8j8PS1bvlzOKgR2GoMVoyyK9m Fe8Tyw9YMGiTtFAQ8usrtnvM3GN9atCZO+GxfhUtYc31l7Mc4xIGuJC7rYRCz19y946A 4YEa3l3i/+GKeV2AAoI5Omy4rta5pzKv/0pcRpNcmIONG5rKHid87JsI0AgWlaYh7Ti2 S8Lc8oUe6sleGGmIxO6XH8N/1pXIRJC2X4mvIkOcvWHc8pe+8a38vHUXukc7ZZV3Lr3V VoDw== |
| MIME-Version | 1.0 |
| In-Reply-To | <4F65FCA5.8090504@swing.be> |
| References | <CAKD_BxHpxDDUz1KXr2zBaBygDuaYegTAy5QWwSH_5QdnN6wBFA@mail.gmail.com> <4F65EA66.8000509@swing.be> <CAKD_BxHbU3fTRecEP6MDVG3T5O9UC1BmKN6Je-Aq22ddMmUYXA@mail.gmail.com> <4F65FCA5.8090504@swing.be> |
| Date | Sun, 18 Mar 2012 17:43:51 +0100 |
| Subject | Re: dpkg status |
| From | admin lewis <adminlewis@gmail.com> |
| To | Vincent Vande Vyvre <vincent.vandevyvre@swing.be> |
| Content-Type | text/plain; charset=UTF-8 |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.785.1332089034.3037.python-list@python.org> (permalink) |
| Lines | 41 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1332089034 news.xs4all.nl 6842 [2001:888:2000:d::a6]:55749 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:21861 |
Show key headers only | View raw
2012/3/18 Vincent Vande Vyvre <vincent.vandevyvre@swing.be>:
>
>
> OK, you know apt, I see (your blog).
>
> But packages have no url, just repositery.
>
> I see your link python-apt, this doc is very minimalistic, maybe you can
> find repositeries infos of packages with aptsources.distinfo, but methods
> are not documented.
>
> http://apt.alioth.debian.org/python-apt-doc/library/aptsources.distinfo.html#module-aptsources.distinfo
>
Well no, I need something like the following:
import apt_pkg
tagf = apt_pkg.TagFile(open('/home/lightbox/status'))
for section in tagf:
indirizzo="http://it.archive.ubuntu.com/ubuntu/pool/main/"+section['Package'][0]+'/'+section['Package']+'/'+section['Package']+'_'+section['Version']+'_'+section['Architecture']+'.deb'+'\n'
print indirizzo
with the following output:
http://it.archive.ubuntu.com/ubuntu/pool/main/t/texlive-lang-all/texlive-lang-all_2009-3_all.deb
http://it.archive.ubuntu.com/ubuntu/pool/main/x/xserver-xorg-input-vmmouse/xserver-xorg-input-vmmouse_1:12.7.0-2_i386.deb
http://it.archive.ubuntu.com/ubuntu/pool/main/l/libmono-system-data4.0-cil/libmono-system-data4.0-cil_2.10.5-1_all.deb
but the best sould be that the script make the download of deb automatically..
infact if u see the output u will see that is not correct.. because the section
texlive-lang-all doesn't exist and the correct one is texlive-lang
I dont know if i have to connect to the cache of apt or simply i need
of source.list..
thanks for any help
luigi
P.S. the /home/lightbox/status is a partial file of /var/lib/dpkg/status
--
Linux Server, Microsoft Windows 2003/2008 Server, Exchange 2007
http://predellino.blogspot.com/
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: dpkg status admin lewis <adminlewis@gmail.com> - 2012-03-18 17:43 +0100
csiph-web