From 11036e36693947ed6afc5ffb2c6d28428dac02d9 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Fri, 4 Jul 2014 11:29:16 +0200 Subject: [PATCH] debian_build.py: Search for the last release (where distribution is not UNRELEASED) --- debian_build.py | 7 +++++++ 1 file changed, 7 insertions(+) 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'): -- 2.39.5