* buildd: Use launchpadlib to check the Ubuntu release is valid.

This commit is contained in:
Jonathan Davies 2009-05-27 17:59:41 -04:00
parent fbc5418533
commit a256eca0b7

6
buildd
View File

@ -110,7 +110,11 @@ launchpadCookie = lp_cookie.prepareLaunchpadCookie()
urlopener = lp_urlopener.setupLaunchpadUrlOpener(launchpadCookie)
# 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.
(page, version) = packages.checkSourceExists(package, release)