From: Benjamin Drung Date: Fri, 6 Jun 2014 15:17:48 +0000 (+0200) Subject: debian_build.py: Put modified changes file into same directory than the original. X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=f084197c34ad5996d3efe04d74fce817d00a8fcb;p=profitbricks%2Fjenkins-build-scripts.git debian_build.py: Put modified changes file into same directory than the original. --- diff --git a/debian_build.py b/debian_build.py index f255dfb..fc7b87f 100755 --- a/debian_build.py +++ b/debian_build.py @@ -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()