]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
debian_build.py: Fix typo split -> splitext.
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Fri, 6 Jun 2014 15:22:55 +0000 (17:22 +0200)
committerBenjamin Drung <benjamin.drung@profitbricks.com>
Fri, 6 Jun 2014 15:22:55 +0000 (17:22 +0200)
debian_build.py

index fc7b87f052967c584ce05244bdcdf22b2f0bd197..18d7b37e7a3298f82131a029a21fd33a404072a5 100755 (executable)
@@ -118,7 +118,7 @@ def upload_to_apt_repository(apt_target, apt_dist, changes_file, logger):
             logger.warn('%s failed.' % command)
             figlet('apt01 upload failed')
             return
-        (head, tail) = os.path.split(changes_file)
+        (head, tail) = os.path.splitext(changes_file)
         new_changes_file = head + '_apt01' + tail
         filehandle = open(new_changes_file, 'w')
         filehandle.write(changes)