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

Change of APT interface



Hello.
I've looked at the usage of apt in bootstrap-vz,
and at python-apt
http://apt.alioth.debian.org/python-apt-doc/library/index.html

Changing bootstrap-vz to use python-apt instead of calling
apt-{get,cache} should be possible without much problems
but would mean:
1. removal of base.pkg.sourcelist and base.pkg.packagelist
2. keeping objects from python-apt in info.source_list
and info.package_list
3. need to change manifest schema not to store lines
from /etc/apt/sources.list but to store tuples
(or dicts) according to arguments accepted
by apt.sourceslist
4. changing AddManifetsSources, AddDefaultSources, WriteSources
to use python-apt.

I do not know how to replace apt-key, but this is only used when
building GCE images.
I also do not know what is the best way to ensure --no-recommends
and -y.
OTOH by using python-apt we could avoid the need for cleaning
package cache - apt.cache allows for operations in memory, without
writing cache to disk.

Does anyone have some remarks? I would not like to start
such a change without some discussion, or at least some OK
from the group.

Best regards.

-- 
Tomasz Rybak  GPG/PGP key ID: 2AD5 9860
Fingerprint A481 824E 7DD3 9C0E C40A  488E C654 FB33 2AD5 9860
http://member.acm.org/~tomaszrybak

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: