Benjamin Drung
c7a855ff20
Format code with black and isort
...
```
isort pbuilder-dist pm-helper running-autopkgtests ubuntu-build ubuntutools
black -C pbuilder-dist pm-helper running-autopkgtests ubuntu-build ubuntutools
```
2024-11-02 17:21:30 +01:00
Logan Rosen
9a4cc312f4
Don't rely on debootstrap for validating Ubuntu distro
2024-02-15 17:51:35 +01:00
Ying-Chun Liu (PaulLiu)
ffc787b454
Drop qemu-debootstrap
...
qemu-debootstrap is deprecated for a while. In newer qemu release
the command is totally removed. We can use debootstrap directly.
Signed-off-by: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
2024-02-15 17:49:59 +01:00
Simon Quigley
bed2dc470d
Add support for the non-free-firmware components in all tools already referencing non-free.
2023-07-26 13:04:12 -05:00
Steve Langasek
ff1c95e2c0
Remove references to architectures not supported in any active Ubuntu release.
2023-05-30 21:05:56 -07:00
Benjamin Drung
aa556af89d
Use f-strings
...
pylint complains about C0209: Formatting a regular string which could be
a f-string (consider-using-f-string)
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-31 19:32:58 +01:00
Benjamin Drung
444b319c12
Implement refactorings found by pylint
...
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-31 16:58:24 +01:00
Benjamin Drung
4449cf2437
Fix warnings found by pylint
...
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-31 15:51:29 +01:00
Benjamin Drung
b1bc7e1cdc
Address pylint complaints
...
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-30 23:10:31 +01:00
Benjamin Drung
4e27045f49
style: Sort Python imports with isort
...
```
isort -l 99 --profile=black .
```
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-30 21:28:47 +01:00
Benjamin Drung
3354b526b5
style: Format Python code with black
...
```
PYTHON_SCRIPTS=$(grep -l -r '^#! */usr/bin/python3$' .)
black -C -l 99 . $PYTHON_SCRIPTS
```
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-30 19:45:36 +01:00
Gianfranco Costamagna
214da052b2
pbuilder-dist: fix typo kernal/kernel
2022-06-13 10:09:24 +02:00
Mattia Rizzolo
4fc36efcf2
pbuilder-dist: use shutil.which instead of distutils.spawn.find_executable() to save a dependency
...
LP: #1936697
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2021-07-17 17:47:51 +02:00
Dan Streetman
5dcde81c58
pbuilder: include missing import
...
commit d784fea1cdf50ca8d80fe2a0074aeb96ab1b580f did not include the
import for 'suppress'
2021-06-06 21:16:44 -04:00
Dan Streetman
d784fea1cd
pbuilder: handle debian change from /updates to -security
...
starting in bullseye, the security suite is -security instead of /updates
LP: #1916633
2021-03-12 13:09:17 -05:00
Dan Streetman
0eeb93ee0c
logging: update ubuntutools.getLogger() to output to stdout/stderr correctly
...
Python logging by default sends all output to stderr, but that's not what
normal programs usually do and is not expected for these scripts.
Change the ubuntutools.getLogger() method to return a logger with handlers
correctly set up to send INFO level (or lower) logs to stdout and WARNING
level (or higher; technically INFO+1 level or higher) logs to stderr.
This results in normally logged output going to stdout and warnings/errors
going to stderr, as expected.
2021-02-02 06:25:12 -05: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
f8fa865ab2
pbuilder-dist: Add support for riscv64.
...
LP: #1859277
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2020-01-11 15:36:48 +01:00
Dan Streetman
90e8fe81e1
replace ubuntutools.logger with standard python logging
2019-11-25 10:10:06 -05:00
Stefano Rivera
301569e809
Pull out Python 2 support hacks
2019-09-04 19:24:44 -03:00
Stefano Rivera
d1949a72aa
Port pbuilder-dist to Python 3
2019-09-04 19:24:44 -03:00
Felipe Reyes
105db5752b
pbuilder-dist: pass one --othermirror when local archive found (LP: #1314076 )
2018-05-18 11:47:35 -04:00
Scott Kitterman
afd95915e4
Add --backports option to pbuilder-dist to make it easier to build for backports when dependencies from backports are needed
2018-03-24 14:30:19 -04:00
Benjamin Drung
cc7170eccb
Fix all flake8 issues
2017-05-01 00:20:03 +02:00
Colin Watson
f232d121d2
pbuilder-dist, ubuntu-build: Add s390x.
2016-07-16 10:55:28 +01:00
Logan Rosen
bd226fc4e6
pbuilder-dist: Fix yes/no for unknown distribution (LP: #1311884 ).
2014-04-23 17:24:49 -04:00
Benjamin Drung
fbf0dcb259
pbuilder-dist: Store build logs in <source>_<version>_<arch>.build instead of last_operation.log
...
This avoids overwriting build logs.
2014-04-15 13:06:55 +02:00
Benjamin Drung
12ee7e71e3
pbuilder-dist: Set different aptcache directories for Debian and Ubuntu.
2014-04-15 12:03:14 +02:00
Benjamin Drung
b0209ce796
pbuilder-dist: PEP 8 fixes.
2014-04-15 11:25:28 +02:00
Benjamin Drung
ad94031d84
Remove trailing spaces.
2014-03-18 23:31:19 +01:00
Dimitri John Ledkov
1ecf020703
* Add ppc64el to valid architectures in pbuilder-dist and ubuntu-build.
...
* Simplify mirror detection in mk-sbuild, all supported releases, all
architectures but i386/amd64 are on ports.ubuntu.com
2013-12-20 15:03:55 +00:00
Dmitrijs Ledkovs
06874a8bad
add arm64 knowledge to mk-sbuild, ubuntu-build, pbuilder-dist.
2013-10-13 21:54:31 +01:00
Benjamin Drung
c2aa97dba2
Move devscripts.logger to ubuntutools.logger.
2013-03-19 00:18:02 +01:00
Stefano Rivera
fabb0119ef
pbuilder-dist: Build with -proposed enabled for Ubuntu dev releases.
...
Thanks Scott Kitterman (LP: #1082452 )
2012-12-02 12:20:02 +02:00
Stefano Rivera
c0708dd41b
pbuilder-dist: Don't try to enable -updates for the current codename
...
referring to Debian testing, either (LP: #1011870 )
2012-06-19 16:42:59 +02:00
Stefano Rivera
343ac49b39
pbuilder-dist, pull-debian-source, pull-lp-source, requestsync,
...
reverse-depends, submittodebian, syncpackage:
Handle outdated distro-info data. Fall back to sane defaults where
possible.
2012-05-06 10:15:54 +02:00
Stefano Rivera
4dbde5f886
pbuilder-dist: Don't try to enable -updates for Debian testing
...
(LP: #993006 )
2012-05-06 08:36:37 +02:00
John S Gruber
6e7a7bac35
Don't use --override-config with operations other than update. (LP: #409696 )
2012-03-26 10:42:09 +02:00
Daniel Hahler
dead85ee75
pbuilder-dist: Do not force default value for --aptcache
argument
...
Instead of passing the default from /usr/share/pbuilder/pbuilderrc to
pbuilder, let it be configured from the config files, e.g. ~/.pbuilderrc.
(LP: #956903 )
2012-03-16 14:49:32 +01:00
Stefano Rivera
346aae9d42
pbuilder-dist: Use the same chroot, whether the system-architecture was
...
the supplied architecture or was chosen by default (LP: #943435 )
2012-02-29 23:23:05 +02:00
Stefano Rivera
2afe15c4a3
pbuilder-dist: Pass DEB_BUILD_OPTIONS through (LP: #685786 )
2012-02-15 16:24:14 +02:00
Stefano Rivera
0713ff4f94
pbuilder-dist: Export DISTRIBUTION and ARCHITECTURE as well as DIST and
...
ARCH. (Closes : #659060 , LP: #423609 )
2012-02-08 01:05:15 +02:00
Alessio Treglia
4e8e44a788
The same of the previous commit, replace ARCH with ARCHITECTURE (as per pbuilderrc's manpage)
2012-02-07 22:27:09 +01:00
Alessio Treglia
f245b24f30
Use DISTRIBUTION instead of DIST to override the default distribution of {p,cow}builder-dist.
...
Closes : #659060
2012-02-07 22:14:13 +01:00
Stefano Rivera
fc9ddd974e
mk-sbuild, pbuilder-dist, ubuntu-build: Add armhf.
2011-11-29 11:42:40 +02:00
Stefano Rivera
6a6f0ca9cb
Lengthen variable name, we can afford to now
2011-11-15 01:37:29 +02:00
Stefano Rivera
6f9551f1cb
pbuilder-dist: Enable non-release pockets by default (LP: #781003 )
2011-11-15 01:26:16 +02:00
Stefano Rivera
cefbe3ccc2
* New scripts:
...
- reverse-depends: Replaces reverse-build-depends. Uses an UbuntuWire
webservice for determining all reverse(-build)-dependencies for a
package. (LP: #696373 )
- requestbackport: Files a backport request bug report, including a full
testing checklist.
* Don't allow boilerplate prompts through in submittodebian and requestsync
(LP: #887336 )
2011-11-13 21:31:01 +02:00
Stefano Rivera
054423d016
Use YesNoQuestion in pbuilder-dist
2011-11-13 20:17:50 +02:00
Stefano Rivera
cdec3f5868
pbuilder-dist: Support using non-master mirrors. Thanks Mathieu Parent.
...
(LP: #824285 )
2011-11-13 02:32:25 +02:00