Compare commits

..

No commits in common. "main" and "0.208" have entirely different histories.
main ... 0.208

3 changed files with 9 additions and 22 deletions

11
debian/changelog vendored
View File

@ -1,14 +1,3 @@
ubuntu-dev-tools (0.209) UNRELEASED; urgency=medium
[ Colin Watson ]
* Demote sudo to Recommends, and indicate which tools need it in the
package description.
[ Florent 'Skia' Jacquet ]
* pm-helper: make use of YesNoQuestion
-- Mattia Rizzolo <mattia@debian.org> Tue, 06 Jan 2026 17:55:43 +0100
ubuntu-dev-tools (0.208) unstable; urgency=medium ubuntu-dev-tools (0.208) unstable; urgency=medium
[ Gianfranco Costamagna ] [ Gianfranco Costamagna ]

9
debian/control vendored
View File

@ -60,6 +60,7 @@ Depends:
python3-ubuntutools (= ${binary:Version}), python3-ubuntutools (= ${binary:Version}),
python3-yaml, python3-yaml,
sensible-utils, sensible-utils,
sudo,
tzdata, tzdata,
${misc:Depends}, ${misc:Depends},
${perl:Depends}, ${perl:Depends},
@ -76,7 +77,6 @@ Recommends:
quilt, quilt,
reportbug (>= 3.39ubuntu1), reportbug (>= 3.39ubuntu1),
sbuild | pbuilder | cowbuilder, sbuild | pbuilder | cowbuilder,
sudo,
ubuntu-keyring | ubuntu-archive-keyring, ubuntu-keyring | ubuntu-archive-keyring,
Suggests: Suggests:
bzr | brz, bzr | brz,
@ -93,7 +93,7 @@ Description: useful tools for Ubuntu developers
willing to help fix it. willing to help fix it.
- check-mir - check support status of build/binary dependencies - check-mir - check support status of build/binary dependencies
- check-symbols - will compare and give you a diff of the exported symbols of - check-symbols - will compare and give you a diff of the exported symbols of
all .so files in a binary package. [sudo] all .so files in a binary package.
- dch-repeat - used to repeat a change log into an older release. - dch-repeat - used to repeat a change log into an older release.
- grab-merge - grabs a merge from merges.ubuntu.com easily. - grab-merge - grabs a merge from merges.ubuntu.com easily.
- grep-merges - search for pending merges from Debian. - grep-merges - search for pending merges from Debian.
@ -101,10 +101,9 @@ Description: useful tools for Ubuntu developers
- merge-changelog - manually merges two Debian changelogs with the same base - merge-changelog - manually merges two Debian changelogs with the same base
version. version.
- mk-sbuild - script to create LVM snapshot chroots via schroot and - mk-sbuild - script to create LVM snapshot chroots via schroot and
sbuild. [sbuild, sudo] sbuild.
- pbuilder-dist, cowbuilder-dist - wrapper script for managing several build - pbuilder-dist, cowbuilder-dist - wrapper script for managing several build
chroots (for different Ubuntu and Debian releases) on the same system. chroots (for different Ubuntu and Debian releases) on the same system.
[pbuilder | cowbuilder, sudo]
- pull-debian-debdiff - attempts to find and download a specific version of - pull-debian-debdiff - attempts to find and download a specific version of
a Debian package and its immediate parent to generate a debdiff. a Debian package and its immediate parent to generate a debdiff.
- pull-debian-source - downloads the latest source package available in - pull-debian-source - downloads the latest source package available in
@ -124,7 +123,7 @@ Description: useful tools for Ubuntu developers
autopkgtests on the Ubuntu autopkgtest infrastructure autopkgtests on the Ubuntu autopkgtest infrastructure
- seeded-in-ubuntu - query if a package is safe to upload during a freeze. - seeded-in-ubuntu - query if a package is safe to upload during a freeze.
- setup-packaging-environment - assistant to get an Ubuntu installation - setup-packaging-environment - assistant to get an Ubuntu installation
ready for packaging work. [sudo] ready for packaging work.
- sponsor-patch - Downloads a patch from a Launchpad bug, patches the source - sponsor-patch - Downloads a patch from a Launchpad bug, patches the source
package, and uploads it (to Ubuntu or a PPA) package, and uploads it (to Ubuntu or a PPA)
- submittodebian - automatically send your changes to Debian as a bug report. - submittodebian - automatically send your changes to Debian as a bug report.

View File

@ -22,7 +22,6 @@ from argparse import ArgumentParser
import yaml import yaml
from launchpadlib.launchpad import Launchpad from launchpadlib.launchpad import Launchpad
from ubuntutools.question import YesNoQuestion
from ubuntutools.utils import get_url from ubuntutools.utils import get_url
# proposed-migration is only concerned with the devel series; unlike other # proposed-migration is only concerned with the devel series; unlike other
@ -57,8 +56,10 @@ def claim_excuses_bug(launchpad, bug, package):
if our_task.assignee: if our_task.assignee:
print(f"Currently assigned to {our_task.assignee.name}") print(f"Currently assigned to {our_task.assignee.name}")
answer = YesNoQuestion().ask("Do you want to claim this bug?", "no") print("""Do you want to claim this bug? [yN] """, end="")
if answer == "yes": sys.stdout.flush()
response = sys.stdin.readline()
if response.strip().lower().startswith("y"):
our_task.assignee = launchpad.me our_task.assignee = launchpad.me
our_task.lp_save() our_task.lp_save()
return True return True
@ -130,9 +131,7 @@ def main():
if not proposed_version: if not proposed_version:
print(f"Package {args.package} not found in -proposed.") print(f"Package {args.package} not found in -proposed.")
sys.exit(1) sys.exit(1)
answer = YesNoQuestion().ask("Do you want to create a bug?", "no") create_excuses_bug(args.launchpad, args.package, proposed_version)
if answer == "yes":
create_excuses_bug(args.launchpad, args.package, proposed_version)
except ValueError as e: except ValueError as e:
sys.stderr.write(f"{e}\n") sys.stderr.write(f"{e}\n")
else: else: