]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
just strip the epoch...
authorHolger Levsen <holger@layer-acht.org>
Mon, 19 Sep 2011 08:47:32 +0000 (10:47 +0200)
committerHolger Levsen <holger@layer-acht.org>
Mon, 19 Sep 2011 08:47:32 +0000 (10:47 +0200)
debian_build.py

index 1f38caf7e6a95f8f40f0b6d8395cd13ecaec0fef..3fba7f40e4d51326841c79c3e6e4704d2b14168d 100755 (executable)
@@ -488,10 +488,10 @@ if __name__ == '__main__':
 #    else:
         try:
             create_dput_cfg()
-            changes_file =  os.path.join(GIT_TARGET_WORKSPACE, 'build-area/result/', '%s_%s_amd64.changes' % (pkg_name, version))
             # strip epoch
-            if ":" in changes_file:
-                changes_file = changes_file.split(":", 1)[1]
+            if ":" in version:
+                version = version.split(":", 1)[1]
+            changes_file =  os.path.join(GIT_TARGET_WORKSPACE, 'build-area/result/', '%s_%s_amd64.changes' % (pkg_name, version))
             # display changes file
             fh = open(changes_file, 'r')
             logger.info('%s' % (fh.read()))