mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
* buildd: Use launchpadlib to check the Ubuntu release is valid.
This commit is contained in:
parent
fbc5418533
commit
a256eca0b7
6
buildd
6
buildd
@ -110,7 +110,11 @@ launchpadCookie = lp_cookie.prepareLaunchpadCookie()
|
|||||||
urlopener = lp_urlopener.setupLaunchpadUrlOpener(launchpadCookie)
|
urlopener = lp_urlopener.setupLaunchpadUrlOpener(launchpadCookie)
|
||||||
|
|
||||||
# Check the release exists.
|
# Check the release exists.
|
||||||
packages.checkReleaseExists(release)
|
try:
|
||||||
|
lp_functions.doesUbuntuReleaseExist(release)
|
||||||
|
except ubuntutools.lp.udtexceptions.SeriesNotFoundException, e:
|
||||||
|
print e
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
# Find out the version in given release.
|
# Find out the version in given release.
|
||||||
(page, version) = packages.checkSourceExists(package, release)
|
(page, version) = packages.checkSourceExists(package, release)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user