]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
debian_build.py: Put modified changes file into same directory than the original.
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Fri, 6 Jun 2014 15:17:48 +0000 (17:17 +0200)
committerBenjamin Drung <benjamin.drung@profitbricks.com>
Fri, 6 Jun 2014 15:17:48 +0000 (17:17 +0200)
debian_build.py

index f255dfbfe22e62f6d6e5a824624bcfea1576a0a7..fc7b87f052967c584ce05244bdcdf22b2f0bd197 100755 (executable)
@@ -118,7 +118,8 @@ def upload_to_apt_repository(apt_target, apt_dist, changes_file, logger):
             logger.warn('%s failed.' % command)
             figlet('apt01 upload failed')
             return
-        new_changes_file = os.path.join(ENV['WORKSPACE'], apt_target + '.changes')
+        (head, tail) = os.path.split(changes_file)
+        new_changes_file = head + '_apt01' + tail
         filehandle = open(new_changes_file, 'w')
         filehandle.write(changes)
         filehandle.close()