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

index 66e686a1838d49885bbf1cef94dbcf67d450deae..20c01867c7c3408bfb7b6d7a61022545b0b48d8f 100755 (executable)
@@ -754,7 +754,7 @@ if __name__ == '__main__':
                     logger.warn('%s failed.' % command)
                     figlet('Legacy upload failed')
                     exit_error()
-                (head, tail) = os.path.splitext(changes_file)
+                (head, tail) = os.path.abspath(os.path.splitext(changes_file))
                 legacy_changes_file = head + '_alexandria' + tail
                 filehandle = open(legacy_changes_file, 'w')
                 filehandle.write(changes)