From 4c9050f74e4efe753c7ef7deff6b6bcf794a9e5c Mon Sep 17 00:00:00 2001 From: Mathias Klette Date: Mon, 4 Jun 2012 12:19:46 +0200 Subject: [PATCH] strip last lines --- debian_build.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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): -- 2.39.5