buildd: Display the name of the current development series when none is

specified in --batch mode
This commit is contained in:
Michael Bienia 2009-08-22 11:32:33 +02:00
parent 0353f952d8
commit a1457492b4

2
buildd
View File

@ -199,7 +199,7 @@ else:
# filter out duplicate and invalid architectures
archs.intersection_update(valid_archs)
release = options.series # if None it falls back to the current development series
release = options.series or Distribution('ubuntu').getDevelopmentSeries().name
pocket = 'Release'
if release and '-' in release:
# split release and pocket