]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
debian_build.py: Fix absolute path generation
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Thu, 24 Jul 2014 11:31:54 +0000 (13:31 +0200)
committerBenjamin Drung <benjamin.drung@profitbricks.com>
Thu, 24 Jul 2014 11:31:54 +0000 (13:31 +0200)
debian_build.py

index 20c01867c7c3408bfb7b6d7a61022545b0b48d8f..b34c81b5aad254b5f62934fc405b493bf88c9463 100755 (executable)
@@ -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()