From: Benjamin Drung Date: Fri, 4 Jul 2014 09:29:16 +0000 (+0200) Subject: debian_build.py: Search for the last release (where distribution is not UNRELEASED) X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=11036e36693947ed6afc5ffb2c6d28428dac02d9;p=profitbricks%2Fjenkins-build-scripts.git debian_build.py: Search for the last release (where distribution is not UNRELEASED) --- diff --git a/debian_build.py b/debian_build.py index 363307b..8c215fd 100755 --- a/debian_build.py +++ b/debian_build.py @@ -208,6 +208,13 @@ if __name__ == '__main__': curr_version = cl.full_version curr_dist = cl.distributions + if curr_version == "UNRELEASED": + # Search for the last release (where distribution is not UNRELEASED) + for block in cl: + curr_version = cl.distributions + if curr_version != "UNRELEASED": + break + # Act II: make decissions # compatibility until call_jenkins was replaced if curr_dist not in ('squeeze', 'wheezy'):