mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-19 12:51:29 +00:00
requestbackport: Error out nicely when a tracking project doens't exist.
LP: #1852901 Signed-off-by: Mattia Rizzolo <mattia@debian.org>
This commit is contained in:
parent
c7b2149e1a
commit
463d1f63a8
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -3,6 +3,8 @@ ubuntu-dev-tools (0.175) UNRELEASED; urgency=medium
|
|||||||
[ Mattia Rizzolo ]
|
[ Mattia Rizzolo ]
|
||||||
* Trust the installed debian-keyring when checking validity of dsc
|
* Trust the installed debian-keyring when checking validity of dsc
|
||||||
signatures.
|
signatures.
|
||||||
|
* requestbackport:
|
||||||
|
+ Error out nicely when a tracking project doens't exist. LP: #1852901
|
||||||
|
|
||||||
[ Stefano Rivera ]
|
[ Stefano Rivera ]
|
||||||
* merge-changelog: rewrite the changelog handling to use python3-debian.
|
* merge-changelog: rewrite the changelog handling to use python3-debian.
|
||||||
|
@ -90,7 +90,14 @@ def check_existing(package, destinations):
|
|||||||
query = re.findall(r'[a-z]+', package)
|
query = re.findall(r'[a-z]+', package)
|
||||||
bugs = []
|
bugs = []
|
||||||
for release in destinations:
|
for release in destinations:
|
||||||
project = Launchpad.projects[release + '-backports']
|
project_name = '{}-backports'.format(release)
|
||||||
|
try:
|
||||||
|
project = Launchpad.projects[project_name]
|
||||||
|
except KeyError:
|
||||||
|
Logger.error("The backports tracking project '%s' doesn't seem to "
|
||||||
|
"exist. Please check the situation with the "
|
||||||
|
"backports team.", project_name)
|
||||||
|
sys.exit(1)
|
||||||
bugs += project.searchTasks(omit_duplicates=True,
|
bugs += project.searchTasks(omit_duplicates=True,
|
||||||
search_text=query,
|
search_text=query,
|
||||||
status=["Incomplete", "New", "Confirmed",
|
status=["Incomplete", "New", "Confirmed",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user