mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
Don't list None as a release
This commit is contained in:
parent
dcef46eeea
commit
25694bdfdd
@ -59,15 +59,13 @@ def main():
|
|||||||
ubuntu = Distribution('ubuntu')
|
ubuntu = Distribution('ubuntu')
|
||||||
archive = ubuntu.getArchive()
|
archive = ubuntu.getArchive()
|
||||||
if options.release is None:
|
if options.release is None:
|
||||||
series = ubuntu.getDevelopmentSeries()
|
options.release = ubuntu.getDevelopmentSeries().name
|
||||||
pocket = 'Release'
|
try:
|
||||||
else:
|
release, pocket = split_release_pocket(options.release)
|
||||||
try:
|
series = ubuntu.getSeries(release)
|
||||||
release, pocket = split_release_pocket(options.release)
|
except SeriesNotFoundException, e:
|
||||||
series = ubuntu.getSeries(release)
|
Logger.error(str(e))
|
||||||
except SeriesNotFoundException, e:
|
sys.exit(2)
|
||||||
Logger.error(str(e))
|
|
||||||
sys.exit(2)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
spph = archive.getSourcePackage(package)
|
spph = archive.getSourcePackage(package)
|
||||||
@ -123,9 +121,9 @@ def main():
|
|||||||
else:
|
else:
|
||||||
print ("But you can still contribute to it via the sponsorship "
|
print ("But you can still contribute to it via the sponsorship "
|
||||||
"process: https://wiki.ubuntu.com/SponsorshipProcess")
|
"process: https://wiki.ubuntu.com/SponsorshipProcess")
|
||||||
if not options.list_uploaders:
|
if not options.list_uploaders:
|
||||||
print ("To see who has the necessary upload rights, "
|
print ("To see who has the necessary upload rights, "
|
||||||
"use the --list-uploaders option.")
|
"use the --list-uploaders option.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user