Merge ~chad.smith/ubuntu/+source/sbuild-launchpad-chroot:focal/fix-multiline-apt-sources into ~motu/ubuntu/+source/sbuild-launchpad-chroot:master
Proposed by
Chad Smith
Status: | Needs review |
---|---|
Proposed branch: | ~chad.smith/ubuntu/+source/sbuild-launchpad-chroot:focal/fix-multiline-apt-sources |
Merge into: | ~motu/ubuntu/+source/sbuild-launchpad-chroot:master |
Diff against target: |
65 lines (+28/-0) 3 files modified
bin/sbuild-launchpad-chroot (+6/-0) debian/changelog (+7/-0) etc/schroot/setup.d/90apt-sources (+15/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Scott Moser | Needs Fixing | ||
Review via email: mp+382529@code.launchpad.net |
Description of the change
Add support for schroot config option apt.mirror.ubuntu and additional command line parameter --apt-mirror to allow overrides of schroot apt mirror.
LP: #1872163
To post a comment you must log in.
I don't think this produces output or behavior consisent with the old "oneline" behavior.
I put a little test program together to excercise it and see.
After line 91, its basically copy-paste from your branch.
My feeling is that launchpad- chroot' , it probably actually makes sense to just declare the content of /etc/apt/ sources. list (as my change suggested). Possibly you'd want to allow the mirror to be configured.
a.) its an unintended change that the launchpad chroot has this expanded sources.list
b.) For the purpose of 'sbuild-
here is some example output: archive. ubuntu. com/ubuntu/ focal main archive. ubuntu. com/ubuntu/ focal-security main archive. ubuntu. com/ubuntu/ focal-updates main
$ /tmp/testme.sh updates main oneline | grep "^deb"
deb http://
deb http://
deb http://
$ /tmp/testme.sh updates main full | grep "^deb" archive. ubuntu. com/ubuntu/ focal main archive. ubuntu. com/ubuntu/ focal main archive. ubuntu. com/ubuntu/ focal main archive. ubuntu. com/ubuntu/ focal-security main archive. ubuntu. com/ubuntu/ focal-updates main archive. ubuntu. com/ubuntu/ focal-security main archive. ubuntu. com/ubuntu/ focal-updates main archive. ubuntu. com/ubuntu/ focal-security main archive. ubuntu. com/ubuntu/ focal-updates main
deb http://
deb http://
deb http://
deb http://
deb http://
deb http://
deb http://
deb http://
deb http://
and then for 'release', you get: archive. ubuntu. com/ubuntu/ focal main
$ /tmp/testme.sh release main oneline | grep "^deb"
deb http://
$ /tmp/testme.sh release main full | grep "^deb" archive. ubuntu. com/ubuntu/ focal main archive. ubuntu. com/ubuntu/ focal-updates main archive. ubuntu. com/ubuntu/ focal main archive. ubuntu. com/ubuntu/ focal-updates main archive. ubuntu. com/ubuntu/ focal main archive. ubuntu. com/ubuntu/ focal-updates main archive. ubuntu. com/ubuntu/ focal-backports main security. ubuntu. com/ubuntu/ focal-security main security. ubuntu. com/ubuntu/ focal-security main security. ubuntu. com/ubuntu/ focal-security main
deb http://
deb http://
deb http://
deb http://
deb http://
deb http://
deb http://
deb http://
deb http://
deb http://