From 9091ffee41f595091bf3c342ba1318481a77d2a7 Mon Sep 17 00:00:00 2001 From: Olav Vitters Date: Wed, 18 Sep 2013 23:28:48 +0200 Subject: cleanup BUILD after running bm --- mgagnome | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mgagnome b/mgagnome index de75d51..41ed21a 100755 --- a/mgagnome +++ b/mgagnome @@ -419,6 +419,10 @@ class SpecFile(object): else: print >>sys.stderr, "ERROR: Problem in %setup phase" return False + finally: + buildpath = os.path.join(self.cwd, '..', 'BUILD', '%s-%s' % (self.module, self.version)) + if os.path.exists(buildpath): + shutil.rmtree(buildpath, ignore_errors=True) return True -- cgit v1.2.1