From: Benjamin Drung Date: Thu, 24 Jul 2014 11:31:54 +0000 (+0200) Subject: debian_build.py: Fix absolute path generation X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=490a06e7512ffc5e10667ee48a9d5806c4048df4;p=profitbricks%2Fjenkins-build-scripts.git debian_build.py: Fix absolute path generation --- diff --git a/debian_build.py b/debian_build.py index 20c0186..b34c81b 100755 --- a/debian_build.py +++ b/debian_build.py @@ -754,8 +754,8 @@ if __name__ == '__main__': logger.warn('%s failed.' % command) figlet('Legacy upload failed') exit_error() - (head, tail) = os.path.abspath(os.path.splitext(changes_file)) - legacy_changes_file = head + '_alexandria' + tail + (head, tail) = os.path.splitext(changes_file) + legacy_changes_file = os.path.abspath(head) + '_alexandria' + tail filehandle = open(legacy_changes_file, 'w') filehandle.write(changes) filehandle.close()