From: Mathias Klette Date: Mon, 4 Jun 2012 10:19:46 +0000 (+0200) Subject: strip last lines X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=4c9050f74e4efe753c7ef7deff6b6bcf794a9e5c;p=profitbricks%2Fjenkins-build-scripts.git strip last lines --- diff --git a/debian_build.py b/debian_build.py index acb6422..003d69a 100755 --- a/debian_build.py +++ b/debian_build.py @@ -260,15 +260,15 @@ if __name__ == '__main__': gitcmd = git.Git('.') logger.debug( 'git reset --hard HEAD:\n%s' - %(gitcmd.reset('--hard','HEAD')) + %(gitcmd.reset('--hard','HEAD').strip()) ) logger.debug( - 'git clean -fdx:\n%s' - %(gitcmd.execute(['sudo','git','clean','-fdx'])) + 'sudo git clean -fdx:\n%s' + %(gitcmd.execute(['sudo','git','clean','-fdx']).strip()) ) logger.debug( 'git branch -D %s\n%s' - %(localname,gitcmd.branch('-D','%s' %(localname),with_exceptions=False)) + %(localname,gitcmd.branch('-D','%s' %(localname),with_exceptions=False).strip()) ) try: @@ -278,13 +278,13 @@ if __name__ == '__main__': %( localname, remotename, - gitcmd.checkout('-b','%s' %(localname),'%s' %(remotename)) + gitcmd.checkout('-b','%s' %(localname),'%s' %(remotename).strip()) ) ) except Exception, exception: raise Exception('Failure while checking out Git clone:\n%s' %(exception)) else: - logger.debug('Status is now:\n%s' %( gitcmd.status() )) + logger.debug('Status is now:\n%s' %( gitcmd.status().strip() )) # cleanup existing *orig.tar.gz if os.path.isdir(BUILD_AREA):