]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
debian_build.py: Search for the last release (where distribution is not UNRELEASED)
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Fri, 4 Jul 2014 09:29:16 +0000 (11:29 +0200)
committerBenjamin Drung <benjamin.drung@profitbricks.com>
Fri, 4 Jul 2014 09:29:16 +0000 (11:29 +0200)
debian_build.py

index 363307be4555265ab6350baa35e4b4aba416f9e9..8c215fd9c88eda1de67ef435842478378ecaf55d 100755 (executable)
@@ -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'):