~racb/git-ubuntu:create-dsc-on-first-use

Last commit made on 2018-01-23
Get this branch:
git clone -b create-dsc-on-first-use https://git.launchpad.net/~racb/git-ubuntu
Only Robie Basak can upload to this branch. If you are Robie Basak please log in for upload directions.

Branch merges

Branch information

Name:
create-dsc-on-first-use
Repository:
lp:~racb/git-ubuntu

Recent commits

8b07667... by Robie Basak

Clean up catch-all exception

The only thing we want to catch here is the command returning a non-zero
exit status, which is subprocess.CalledProcessError. We shouldn't
swallow any other exceptions.

1d65886... by Robie Basak

Create dsc branch on first use

Instead of creating empty commit orphan branches when the importer
starts, create them with a complete commit when first needed.

This changes the algorithm of adding a DSC commit from "add a new commit
assuming a dsc branch exists" to "add a new commit using the dsc branch
if it exists, or start one if it doesn't".

This is less error-prone because it eliminates the state dependency of
the add-new-dsc-commit algorithm. It also makes testing easier, because
there is no need to initialise anything.

Ideally I'd like to see
GitUbuntuRepository.ensure_importer_branches_exist disappear entirely.
For now, the do-not-push and pristine-tar orphan creation initalisation
remains, as this seems to be related to the way gbp works and will be a
separate effort to remove.

LP: #1733895

1e67e4c... by Nish Aravamudan

Merge remote-tracking branch 'racb/drop-unused-parameter'

1135010... by Nish Aravamudan

build: use apt-get over apt

apt does not have a stable CLI API, so use the older, but very fine,
apt-get.

LP: #1734366

960831a... by Robie Basak

Drop unused parameter ubuntu_sinfo

This is used neither by import_applied_spi nor by import_unapplied_spi.

699b018... by Robie Basak

Merge remote-tracking branch 'nacc/lp1741949-unset-snap-in-lxc-env' into HEAD

467d0f5... by Nish Aravamudan

build: unset SNAP in lxc's env

Ever since lxc gained snap support, it assumed that if SNAP is set in
it's environment that lxc itself was running as a SNAP. This is not
necessarily the case when git-ubuntu itself is a classic snap (and thus
has SNAP set in its environment) but is calling lxc in the host. Unset
SNAP manually on lxc run() calls.

LP: #1741949

cd297f0... by Nish Aravamudan

run: add wrapper around invoking lxc

This should have no functional changes.

31675fe... by Nish Aravamudan

build: move get_cmd_in_origpath to run

02d08fc... by Christian Ehrhardt 

add chrony to whitelist

Signed-off-by: Christian Ehrhardt <email address hidden>