From cef9eaded3ae1f5c41200987ad6201e7e5209fe0 Mon Sep 17 00:00:00 2001 From: Robin Wittler Date: Fri, 2 Sep 2011 12:20:16 +0200 Subject: [PATCH] enable the atexit function again --- build.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/build.py b/build.py index 78a258b..16c2018 100755 --- a/build.py +++ b/build.py @@ -250,7 +250,7 @@ if __name__ == '__main__': logger.info('git clone was not successfull') exit_error() - #atexit.register(remove_git_target_workspace) + atexit.register(remove_git_target_workspace) os.chdir(GIT_TARGET_DIR) if GIT_UPSTREAM_BRANCH != GIT_DEBIAN_BRANCH: @@ -343,10 +343,12 @@ if __name__ == '__main__': logger.info('debian/changelog written') # FIXME: are those 4 lines meaningful at all? i dont think so... - cmd = ['/usr/bin/git', 'add', '-A'] - subprocess.check_call(cmd) - cmd = ['/usr/bin/git', 'commit', '-a', '-m', 'add changelog'] - subprocess.check_call(cmd) + # commented in by rwittler. We dont need them if we use --ignore-new + # within git-buildpackage + #cmd = ['/usr/bin/git', 'add', '-A'] + #subprocess.check_call(cmd) + #cmd = ['/usr/bin/git', 'commit', '-a', '-m', 'add changelog'] + #subprocess.check_call(cmd) else: # so we're in the master branch... # (or maybe in other branches, but thats not specified _yet_) -- 2.39.5