2717 Commits

Author SHA1 Message Date
Dan Streetman
3eefdec9b6 test: add support for running tox tests
Setup tox to run both flake8 and nosetests

Signed-off-by: Dan Streetman <ddstreet@canonical.com>
2021-02-02 06:25:12 -05:00
Stefano Rivera
e7f0447342 Close LP: #1913330 2021-02-01 17:33:10 -07:00
Stefano Rivera
90cb51becb archive.py: Evaluate the filter() fixing syncpackage. 2021-01-29 22:18:22 -07:00
Dimitri John Ledkov
e54a13743c
releasing package ubuntu-dev-tools version 0.178 0.178 2021-01-25 23:28:38 +00:00
Dan Streetman
07b81efd24 doc: update pull-pkg man page to clarify default pockets
Signed-off-by: Dan Streetman <ddstreet@canonical.com>
2021-01-22 17:14:28 -05:00
Dan Streetman
390be3f0b3 archive: remove DebianSourcePackage.pull_dsc()
No longer necessary to override this function as the superclass
now does everything the subclass function does.

Signed-off-by: Dan Streetman <ddstreet@canonical.com>
2021-01-22 16:19:49 -05:00
Mattia Rizzolo
9d7ce2745f
Merge branch 'pbuilder-dist_more_archs' of git+ssh://git.launchpad.net/~misterc/ubuntu-dev-tools
MR: https://code.launchpad.net/~misterc/ubuntu-dev-tools/+git/ubuntu-dev-tools/+merge/379692
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2021-01-19 23:36:25 +01:00
Mattia Rizzolo
f8c0d87b6f
Merge branch 'fix-pull-pkg' of git+ssh://git.launchpad.net/~xnox/ubuntu-dev-tools
MR: https://code.launchpad.net/~xnox/ubuntu-dev-tools/+git/ubuntu-dev-tools/+merge/396459
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2021-01-19 23:31:03 +01:00
Dimitri John Ledkov
02c531dfb5
archive.py: use Regular, Ports, and Internal mirrors by default. Thus enabling pull-lp-debs to work with ports architectures, and inside launchpad builds too. 2021-01-19 10:43:48 +00:00
Dimitri John Ledkov
5a428b462d
config.py: add UBUNTU_INTERNAL_MIRROR option, for launchpad internal mirror. 2021-01-19 10:43:47 +00:00
Dimitri John Ledkov
6cc8040510
pullpkg.py: fix --mirror option parsing. 2021-01-19 10:43:46 +00:00
Michael R. Crusoe
5856b6a41f
Use arch-test to determine local arch support
Will work with qemu-user-static, if installed
2021-01-19 10:50:40 +01:00
Mattia Rizzolo
d3a7eac62f
backportpackage: Add a -e/--message option to change the default "No-change" in "No-change backport to DIST".
Thanks to Unit 193 for the initial patch.

Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2021-01-14 15:03:28 +01:00
Mattia Rizzolo
a75fb35fc8
ubuntu-archive-assistant/mir: Fix a SyntaxWarning. 2020-12-27 11:43:47 +01:00
Mattia Rizzolo
c5b5d554bc
Merge branch 'lp-1193941' of git+ssh://git.launchpad.net/~logan/ubuntu-dev-tools
MR: https://code.launchpad.net/~logan/ubuntu-dev-tools/+git/ubuntu-dev-tools/+merge/395616
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2020-12-27 11:40:18 +01:00
Logan Rosen
2720ffa12a import-bug-from-debian: limit description to 50K chars
LP: #1193941
2020-12-26 01:49:43 -05:00
Mattia Rizzolo
bafe94c5c7
Merge branch 'for-upstream/depends-on-tzdata' of git+ssh://git.launchpad.net/~vicamo/ubuntu-dev-tools/+git/ubuntu-dev-tools
MR: https://code.launchpad.net/~vicamo/ubuntu-dev-tools/+git/ubuntu-dev-tools/+merge/395578
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2020-12-22 17:54:05 +01:00
Mattia Rizzolo
6a9bcc6e14
Bump Standards-Version to 4.5.1, no changes needed.
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2020-12-22 17:52:27 +01:00
Mattia Rizzolo
b00aea7aa5
init the next changelog
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2020-12-22 17:51:54 +01:00
You-Sheng Yang
322df409c2 d/control: explicitly depends on tzdata
mk-sbuild would copy /etc/timezone and /etc/localtime from the host
environment, and it fails without them.

Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
2020-12-23 00:21:25 +08:00
Dan Streetman
b30df2b227 pullpkg: also catch InvalidPullValueError
LP: #1908770
2020-12-21 11:28:08 -05:00
Mattia Rizzolo
6c097233a9
Release 0.177
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
0.177
2020-06-28 15:52:37 +02:00
Mattia Rizzolo
4b3e9b8479
syncpackge: Fix the new flake8 E741. Closes: #963310 2020-06-28 15:52:23 +02:00
Mattia Rizzolo
097eea7d5f
flak8-fy
Gbp-Dch: Ignore
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2020-06-26 20:47:05 +02:00
Mattia Rizzolo
622f550cc9
Merge branch 'update-maintainer-recursive' of git+ssh://git.launchpad.net/~bryce/ubuntu-dev-tools
MR: https://code.launchpad.net/~bryce/ubuntu-dev-tools/+git/ubuntu-dev-tools/+merge/386415
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2020-06-26 20:45:32 +02:00
Bryce Harrington
8d77c72c33 update-maintainer: Consider only valid-looking debian directories
When scanning for debian/ directories to use, only consider ones that
have control and changelog files present.  This should handle cases
where the user may have non-package directories named debian high in
their path.
2020-06-26 10:57:46 -07:00
Bryce Harrington
928da0ec02 update-maintainer: Find debian/control from inside debian/
In addition to looking for ./debian in the current directory, scan up
the path in the case of running update-maintain from inside the debian/
directory.  This scans up to a maximum of 6 levels.

The --help text is adjusted to identify the detected path if one was
found, defaulting to './debian' otherwise.

LP: #1885233
Signed-off-by: Bryce Harrington <bryce@bryceharrington.org>
2020-06-25 18:19:30 -07:00
Mattia Rizzolo
f5aa75a3a5
Merge branch 'lintian-fixes' of git+ssh://git.launchpad.net/~debian-janitor/ubuntu-dev-tools
MR: https://code.launchpad.net/~debian-janitor/ubuntu-dev-tools/+git/ubuntu-dev-tools/+merge/383535
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2020-05-09 17:34:56 +02:00
Debian Janitor
529c2870fc
Wrap long lines in changelog entries: 0.25, 0.11.
Fixes: lintian: debian-changelog-line-too-long
See-also: https://lintian.debian.org/tags/debian-changelog-line-too-long.html
2020-05-06 14:41:56 +00:00
Mattia Rizzolo
ce4d8fb85f
also update the docs
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2020-04-29 00:17:32 +02:00
Mattia Rizzolo
0aa7280f94
ubuntu-build: add support for riscv64.
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2020-04-29 00:12:24 +02:00
Dan Streetman
5a895e9685 update changelog
pullpkg: support pulling from Ubuntu upload queues
2020-03-13 10:03:33 -04:00
Dan Streetman
8aa2d602c5 pullpkg: add support for pulling from upload queue 2020-03-13 10:02:05 -04:00
Dan Streetman
8f42fb976f lpapicache: add PackageUpload class 2020-03-13 10:02:05 -04:00
Dan Streetman
ea30b9f5bc ubuntutools/misc: add download() function
Move the download functionality from the archive.py into the common
misc.py file.
2020-03-13 10:02:05 -04:00
Dan Streetman
c622c30297 update changelog
Verify checksums for downloaded binary files
2020-03-13 09:59:28 -04:00
Dan Streetman
fe4d2f08a5 test: remove test_dsc_missing test
This test class performs 'local source package' tests, but a missing
local dsc file won't perform any local test, it will query the LP server.
The test attempted to narrowly mock out specific network access to
emulate a 'missing' package by trying to return 404 when the url from
SourcePackage._lp_url() is opened, but now that _lp_url() is removed,
a missing local dsc file will result in full querying of the LP api,
which is not as easily mocked.
2020-03-06 13:01:37 +01:00
Dan Streetman
11429b213c archive: remove _lp_url() 2020-03-06 13:01:37 +01:00
Dan Streetman
eaa07014e0 archive: verify and use existing already-downloaded files 2020-03-06 13:01:37 +01:00
Dan Streetman
8682c44957 archive: update pull_dsc to use _source_urls() and verify_file_checksum() 2020-03-06 13:01:37 +01:00
Dan Streetman
20dd65b281 archive: verify binary file checksums 2020-03-06 13:01:37 +01:00
Dan Streetman
45253b398c archive: remove unneeded 'found' flag
This var isn't needed - just using for/else is better
2020-03-06 13:01:37 +01:00
Dan Streetman
e1f2cbf831 archive: remove _binary_files_info()
also use spph/bpph provided urls
2020-03-06 13:01:37 +01:00
Dan Streetman
8ebd086aac ubuntutools/misc: add verify_file_checksum function 2020-03-06 13:01:37 +01:00
Dan Streetman
9f428e471b ubuntutools/misc: convert print() to std logging 2020-03-06 13:01:37 +01:00
Dan Streetman
907061c15e lpapicache: support 'include_meta' param in binaryFileUrls()
support the param for both native BPPH as well as Debian Snapshot
emulated BPPH

add sourceFileUrls() function

add helper functions to get file urls, checksums, and size
2020-03-06 13:01:37 +01:00
Dan Streetman
ee98423715 lpapicache: use urlparse instead of manual parsing 2020-03-06 13:01:37 +01:00
Dan Streetman
d98e16226b archive: change _download_file verify param to dscverify
The param is specific to dsc-verifiable files, so name it accordingly.
2020-03-06 12:18:10 +01:00
Dan Streetman
53fa2336b8 archive: cache Debian srcpkg when pulling binaries 2020-03-06 12:18:10 +01:00
Dan Streetman
f5694d7cf6 archive: pass src pkg file size to _download_file 2020-03-06 12:18:10 +01:00