~akashraoind-deactivatedaccount/ubuntu-dev-tools/+git/ubuntu-dev-tools-2:private_ppa

Last commit made on 2021-01-25
Get this branch:
git clone -b private_ppa https://git.launchpad.net/~akashraoind-deactivatedaccount/ubuntu-dev-tools/+git/ubuntu-dev-tools-2
Only akash rao can upload to this branch. If you are akash rao please log in for upload directions.

Branch merges

Branch information

Recent commits

cb8b442... by Dan Streetman

ubuntutools/pullpkg: add --login parameter

Just in case we want to pull from a private ppa...

Signed-off-by: Dan Streetman <email address hidden>

b4bb523... by Dan Streetman

ubuntutools/archive: deprecate passing 'lp' object to SourcePackage()

There is no point to doing this, as the Launchpad object is a singleton;
the caller should just call Launchpad.login_with() directly and leave
the SourcePackage class out of it.

Signed-off-by: Dan Streetman <email address hidden>

fc3b1ea... by Dan Streetman

ubuntutools/lp: change default login to anonymous

If not specified, default to logging in anonymously.

Signed-off-by: Dan Streetman <email address hidden>

ce8cf36... by Dan Streetman

archive: use verify_file_checksums()

This reduces duplicate verification steps, and results in logging
error from the verification function if there is a size mismatch,
instead of the silent verification failure that was present in case
neither sha checksum was provided.

Signed-off-by: Dan Streetman <email address hidden>

12b8f86... by Dan Streetman

misc: add verify_file_checksums() function

Signed-off-by: Dan Streetman <email address hidden>

9397a59... by Dan Streetman

lpapicache: replace httplib2 use with call to download_text()

Signed-off-by: Dan Streetman <email address hidden>

6c52540... by Dan Streetman

misc: add download_text() method

Signed-off-by: Dan Streetman <email address hidden>

a66f45e... by Dan Streetman

pullpkg: provide dst to download()

Signed-off-by: Dan Streetman <email address hidden>

48f3b94... by Dan Streetman

misc: move logic into download() to handle plain file paths, and src == dst

Update download() function to handle src of plain path, by prepending
'file://' to it. Also handle the case of src and dst pointing to the same
file.

Signed-off-by: Dan Streetman <email address hidden>

395572f... by Dan Streetman

archive: simplify handling of dsc file

There are only 2 options for getting the dsc file:
1) it's provided as 'dscfile' param
2) we look it up via lp_spph

For case #1, update the constructor to immediately read the provided file
to create the self._dsc object, and set package and version from that.

For case #2, simplify various functions to simply use the normal
_download_file_from_urls() function to get the dsc file from the
normal locations (mirrors, masters, directly from lp), using the same
process as any other file, including checking checksum(s).

Signed-off-by: Dan Streetman <email address hidden>