Merge ~ogayot/curtin:apt-pinning into curtin:master
Status: | Merged |
---|---|
Approved by: | Dan Bungert |
Approved revision: | 4a5bede1b0d8b09817c42c52b0027a2c4dbd4fa2 |
Merge reported by: | Server Team CI bot |
Merged at revision: | not available |
Proposed branch: | ~ogayot/curtin:apt-pinning |
Merge into: | curtin:master |
Diff against target: |
159 lines (+101/-0) 4 files modified
curtin/commands/apt_config.py (+38/-0) doc/topics/apt_source.rst (+2/-0) examples/apt-source.yaml (+12/-0) tests/unittests/test_apt_source.py (+49/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Server Team CI bot | continuous-integration | Approve | |
Dan Bungert | Approve | ||
Review via email: mp+413788@code.launchpad.net |
Commit message
Implement support for APT preferences in apt-config
Description of the change
Implement support for APT preferences in apt-config
apt-config now supports a set of APT preferences (i.e. pinning rules) as in the following example:
apt:
preferences:
- {package: "python3-*", pin: "origin *ubuntu.com*", pin-priority: 200}
- {package: "python-*", pin: "origin *ubuntu.com*", pin-priority: -1}
These preferences are deployed under <target>
Package: python3-*
Pin: origin *ubuntu.com*
Pin-Priority: 200
Package: python-*
Pin: origin *ubuntu.com*
Pin-Priority: -1
If no preferences are configured, we drop the file 90-curtin.pref if it exists.
FAILED: Continuous integration, rev:fd826f643ae a700409e517a185 77131d4800bc72
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want jenkins to rebuild you need to trigger it yourself): /code.launchpad .net/~ogayot/ curtin/ +git/curtin/ +merge/ 413788/ +edit-commit- message
https:/
https:/ /jenkins. ubuntu. com/server/ job/curtin- ci/220/ /jenkins. ubuntu. com/server/ job/curtin- ci/nodes= metal-amd64/ 220/ /jenkins. ubuntu. com/server/ job/curtin- ci/nodes= metal-arm64/ 220/ /jenkins. ubuntu. com/server/ job/curtin- ci/nodes= metal-ppc64el/ 220/ /jenkins. ubuntu. com/server/ job/curtin- ci/nodes= metal-s390x/ 220/
Executed test runs:
SUCCESS: https:/
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/curtin- ci/220/ /rebuild
https:/