← Back to team overview

curtin-dev team mailing list archive

[Merge] ~dbungert/curtin:command-apt-libapt-v3 into curtin:master

 

The proposal to merge ~dbungert/curtin:command-apt-libapt-v3 into curtin:master has been updated.

Commit message changed to:

commands/apt_config: python3-apt, disable_components, no py2 in tox

Add usage of python3-apt to replace the homegrown parser.  This is mostly ok, but python3-apt currently has only partial support for the options listed in a sources.list line, so there are some workarounds in place to minimize the effect of that.

Use the above to add support for disable_components, with the goal of
supporting with subiquity a 'free software' option that disables
multiverse and restricted.

Remove py2 environments from tox.ini.

To get python3-apt from the host system, it causes some further cascading changes to tox.ini.  noproxy was removed as a side effect of this - with sitepackages=True, in some cases we need to run the program with 
'python3 -m module', which noproxy didn't play nicely with.  That said, I verified that the proxy variables were not being passed thru by way of the following (and tox documentation seems to agree):

[testenv:proxy]
allow_externals = /usr/bin/test
commands = /usr/bin/test -z "{env:http_proxy}"                                

With noproxy not in use with tox, that script was redundant, so remove it.

For more details, see:
https://code.launchpad.net/~dbungert/curtin/+git/curtin/+merge/407565
-- 
Your team curtin developers is subscribed to branch curtin:master.



References