summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2013-09-18 23:28:48 +0200
committerOlav Vitters <olav@vitters.nl>2013-09-18 23:28:48 +0200
commit9091ffee41f595091bf3c342ba1318481a77d2a7 (patch)
tree164b9664c4534efe21642c469238623df155e57f
parentbacb6bd3bcb6d750f977f640fd0c7da0e189f60f (diff)
downloadmgagnome-9091ffee41f595091bf3c342ba1318481a77d2a7.tar
mgagnome-9091ffee41f595091bf3c342ba1318481a77d2a7.tar.gz
mgagnome-9091ffee41f595091bf3c342ba1318481a77d2a7.tar.bz2
mgagnome-9091ffee41f595091bf3c342ba1318481a77d2a7.tar.xz
mgagnome-9091ffee41f595091bf3c342ba1318481a77d2a7.zip
cleanup BUILD after running bm
-rwxr-xr-xmgagnome4
1 files changed, 4 insertions, 0 deletions
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