Stefano Rivera
301569e809
Pull out Python 2 support hacks
2019-09-04 19:24:44 -03:00
Stefano Rivera
7f9949fc4c
Port backportpackage to Python 3.
2019-09-04 19:24:44 -03:00
Benjamin Drung
cc7170eccb
Fix all flake8 issues
2017-05-01 00:20:03 +02:00
Anatoly Techtonik
bf52bd6fa3
backportpackage: improve python3 compatibility
...
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2017-04-30 20:03:07 +02:00
Evan Broder
2b5e91e32e
Only conclude that we don't need an orig tarball if we're sent to the
...
librarian (as opposed to the login page from a private PPA). (LP:
#1106429 )
2013-07-12 13:38:32 -07:00
Adam Gandelman
a26129d283
backportpackage: Fix destination for --dont-sign option. (LP: #1183985 )
2013-05-24 12:58:12 -07:00
Benjamin Drung
c2aa97dba2
Move devscripts.logger to ubuntutools.logger.
2013-03-19 00:18:02 +01:00
Stefano Rivera
5f3e359ab6
backportpackage: Check that dput is installed when uploading (LP: #1086342 )
2012-12-04 16:01:51 +02:00
Stefano Rivera
d9763747d3
Python style
2012-12-03 13:15:27 +02:00
Stefano Rivera
a23998a8f3
backportpackage: Don't ignore -k (LP: #1083688 )
2012-12-03 13:13:46 +02:00
Stefano Rivera
1804158370
Correct metavar for --mirror in backportpackage (LP: #999727 )
2012-06-20 22:13:49 +02:00
Stefano Rivera
d45bb86bcd
Work when there's no DEBEMAIL too
2012-06-17 19:54:40 +01:00
Iain Lane
2861c54ad7
backportpackage: Unset DEBEMAIL when building source package.
...
Fixes error when building backports for packages with no Ubuntu changes. This
happens because Ubuntu has a policy of requiring that the Maintainer field of
Ubuntu-modified packages be set to an @ubuntu.com address. Normally this is a
warning, except when the uploader (determined by DEBEMAIL) is @ubuntu.com. In
that case it's an error and the source package build is aborted. We don't want
this behaviour for backports, so unset DEBEMAIL to make the error a warning
again.
LP: #1007042
2012-06-13 23:21:17 +01:00
Iain Lane
f521caa013
backportpackage: Fix filenames searched when looking for existing .orig.tar.foo files
...
(to determine if we need to upload it again or not).
We need to look for package_upstreamversion.orig.tar.foo, not
package_fullversion.orig.tar.foo.
LP: #1007908
2012-06-02 20:34:20 +01:00
Evan Broder
cdde59f436
Typo fix
2012-05-13 14:06:09 -07:00
Evan Broder
4ef5a12e60
backportpackage: Pass -v to debuild with last published version
...
number. This matches the way backports have traditionally been
generated by archive admins.
2012-05-13 14:05:53 -07:00
Evan Broder
3136efc10d
backportpackage: Switch to ~ubuntu12.04.1-style version numbers
...
instead of ~precise1, to make our version numbers more future-proof.
2012-05-13 13:49:49 -07:00
Stefano Rivera
0f5ab96310
* check-mir, check-symbols, grep-merges, pbuilder-dist-simple,
...
setup-packaging-environment, submittodebian, ubuntu-iso:
Do enough argument parsing to handle --help (LP: #988009 )
* dgetlp: Require a UTF-8 locale, or it'll crash when displaying errors
(LP: #979117 )
* pbuilder-dist: Don't try to enable -updates for Debian testing
(LP: #993006 )
* 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.
* backportpackage: Avoid uploading orig tarballs if they are already present
in the destination PPA (LP: #691897 )
* Allow mk-sbuild to be run by root if a configuration file exists
(LP: #888736 )
* backportpackage: Allow unsigned backports (LP: #992739 )
* update-maintainer: Add a function to restore the original maintainer.
* submittodebian: Revert Ubuntu Maintainer mangling, and re-build the source
package before diffing. (LP: #902233 )
2012-05-11 18:13:04 -07:00
Evan Broder
fdbf495f15
backportpackage: Add -c, --close flag to include a changelog closer.
2012-05-11 09:56:19 -07:00
Stefano Rivera
ebe44bf04e
backportpackage: Allow unsigned backports (LP: #992739 )
2012-05-06 13:09:54 +02:00
Stefano Rivera
314ed77d77
backportpackage: Avoid uploading orig tarballs if they are already present
...
in the destination PPA (LP: #691897 )
2012-05-06 12:32:54 +02:00
Stefano Rivera
18f3109cee
* backportpackage
...
- Prompt to delete existing workdirs (LP: #885514 )
- Support a BACKPORTPACKAGE_UPLOAD configuration/enviornment variable
(LP: #693217 )
2012-03-28 23:25:33 +02:00
Stefano Rivera
3c81209b34
backportpackage: Prompt to delete existing workdirs (LP: #885514 )
2012-03-28 14:47:30 +02:00
Stefano Rivera
767951addb
backportpackage: Map Debian release aliases to codenames (LP: #918231 )
2012-02-15 16:57:17 +02:00
Stefano Rivera
f124357734
syncpackage, backportpackage, sponsor-patch: Use -nc when building source
...
packages. Avoids needing build-deps on the build machine.
2011-12-23 22:34:54 +02:00
Benjamin Drung
9e1a6f6ff9
backportpackage: Drop unused imports.
2011-12-21 22:13:25 +01:00
Stefano Rivera
705335a220
backportpackage: Add --release-pocket option, rather than relying entirely
...
on heuristics (Closes : #652000 )
2011-12-21 22:49:24 +02:00
Stefano Rivera
fb44f55379
Remove redundant optparse parameters from backportpackage
2011-12-21 22:31:33 +02:00
Stefano Rivera
9ba1790863
pull-lp-source, requestbackport: Take the latest version from any
...
non-backports pocket. Implemented by making lpapicache's getSourcePackage
smarter.
2011-11-23 01:45:49 +02:00
Stefano Rivera
754b3128a3
backportpackage: Use absolute path of workdir when test-building.
2011-09-10 13:17:11 +02:00
Benjamin Drung
ba6bd9186b
backportpackage: Search for newer versions in -{updates,security} on Ubuntu
...
(LP: #823833 ).
2011-09-08 17:26:40 +02:00
Benjamin Drung
dfdbce7108
Wrap long lines.
2011-06-24 17:50:10 +02:00
Evan Broder
19c33e5e32
* ubuntutools.subprocess:
...
- New drop-in replacement wrapper module around subprocess that
backports the restore_signals kwarg and defaults close_fds=True
- Switch everything previously using subprocess to use
ubuntutools.subprocess instead (LP: #785854 )
2011-06-24 16:32:07 +02:00
Evan Broder
c1eac4b0a9
Save the UDTConfig object and use it to find a default mirror.
2011-06-23 17:55:14 -07:00
Evan Broder
e6e0b97226
Clean up some long lines
2011-06-19 14:50:52 -07:00
Evan Broder
24452f43df
Query rmadison for the canonical codename of a release, not aliases like "unstable"
2011-06-19 14:46:53 -07:00
Evan Broder
71b8bf786f
Error out cleanly if unknown codename specified
2011-06-19 14:35:50 -07:00
Evan Broder
984ebf5e9b
Cleanup unreachable code
2011-06-19 14:31:49 -07:00
Evan Broder
16300e471f
Move vendor_to_distroinfo and codename_to_distribution into ubuntutools.misc
2011-06-11 06:04:09 -07:00
Evan Broder
1a6fb270b4
backportpackage, doc/backportpackage.1: Accept codenames from any
...
distribution in the parenting chain. Makes it possible to, e.g.,
backport from Debian. (LP: #703099 )
2011-06-11 05:45:21 -07:00
Benjamin Drung
1cd7d50b85
backportpackage: Use --force-bad-version instead of --allow-lower-version (which requires a parameter) for debchange.
2011-05-28 19:41:07 +02:00
Evan Broder
d82e65e0e2
* ubuntutools.subprocess:
...
- New drop-in replacement wrapper module around subprocess that
backports the restore_signals kwarg and defaults close_fds=True
- Switch everything previously using subprocess to use
ubuntutools.subprocess instead (LP: #785854 )
2011-05-24 20:22:37 +02:00
Benjamin Drung
e8b3a18c45
Move suspicious-source and wrap-and-sort from ubuntu-dev-tools into devscripts.
2011-05-23 23:41:00 +02:00
Stefano Rivera
aa181c12ff
backportpackage: dput correct changes filename (regression in 0.112)
...
(LP: #706010 )
2011-01-21 21:24:50 +02:00
Stefano Rivera
cdd93a4cd8
backportpackage: check_call: Take first argument (command name) when reporting error.
2011-01-13 22:58:03 +02:00
Stefano Rivera
3ef8324ff7
Improve error handling
2011-01-01 19:51:03 +02:00
Stefano Rivera
3013ee034a
Use *SourcePackage in backportpackage
2010-12-30 18:05:55 +02:00
Stefano Rivera
be79f00dff
Lets make ubuntutools.mirrors return filenames
2010-12-28 00:42:35 +02:00
Stefano Rivera
2c27cf68a6
Move common downloading code into new ubuntutools.mirrors. Use in backportpackage, pull-debian-debdiff, pull-lp-source
2010-12-28 00:23:53 +02:00
Benjamin Drung
f6cb127479
backportpackage: Make pylint happier.
2010-12-27 20:32:07 +01:00