~nacc/git-ubuntu:refactor-before-build-2v2

Last commit made on 2017-08-25
Get this branch:
git clone -b refactor-before-build-2v2 https://git.launchpad.net/~nacc/git-ubuntu
Only Nish Aravamudan can upload to this branch. If you are Nish Aravamudan please log in for upload directions.

Branch merges

Branch information

Name:
refactor-before-build-2v2
Repository:
lp:~nacc/git-ubuntu

Recent commits

b96d39f... by Nish Aravamudan

build: add derive_orig_search_list

This will take our args namespace and convert into an appropriate list
of OrigSearchEntrys for use by fetch_orig.

333d56e... by Nish Aravamudan

build: add core fetch_orig algorithm

Effectively, given a list of OrigSearchEntrys, iterate them, trying each
in order. If the build must succeed with one of them, fail out when it
doesn't. Convert 'changelog' source entries to the appropriate value
('debian' or 'ubuntu') based upon the actual changelog file.

642f64a... by Nish Aravamudan

build: reformat logging

ee468a0... by Nish Aravamudan

build: add fetch_orig_from_launchpad

This is effectively a reimplementation of what was the base algorithm
before in build.py, but in a testable function.

cdf386e... by Nish Aravamudan

build: add _populate_cache

98b918d... by Nish Aravamudan

build, buildsource: drop un-reused member variable CACHE_DIR

Fix some strings and formatting at the same time.

6392f59... by Nish Aravamudan

build: add fetch_orig_from_cache

This also adds APIs for symlinking in the parent directory (for when a
tarball is found in the cache, and we want to link to it).

Note, this also corrects how the cache is populated, by using the source
parameter to be part of the path so that debian and ubuntu caches are
different.

2c735b4... by Nish Aravamudan

build: add fetch_orig_from_parent_dir

This will simply try to use tarballs from the parent directory, if they
match a simple regex. In future commits, this behavior will be extended
to leverage pristine-tar for verification.

5dbedb3... by Nish Aravamudan

build: add fetch_orig_noop

This will be the most basic implementation of a fetch algorithm, which
does nothing and just ends up calling dpkg-buildpackage. In the most
general case, if there are already potentially suitable tarballs present
in the parent directory, this is the only way to know if they are
actually suitable for building (as far as we have been able to
determine).

No functional change.

1e9c0a5... by Nish Aravamudan

build: add derive_source_from_changelog

This leverages distro-info, which is added as a depdendency in the snap
and README, to query if a codename is from debian or ubuntu.

No functional change, as the function is not yet used.