diff options
author | Olav Vitters <olav@vitters.nl> | 2013-09-18 23:28:48 +0200 |
---|---|---|
committer | Olav Vitters <olav@vitters.nl> | 2013-09-18 23:28:48 +0200 |
commit | 9091ffee41f595091bf3c342ba1318481a77d2a7 (patch) | |
tree | 164b9664c4534efe21642c469238623df155e57f | |
parent | bacb6bd3bcb6d750f977f640fd0c7da0e189f60f (diff) | |
download | mgagnome-9091ffee41f595091bf3c342ba1318481a77d2a7.tar mgagnome-9091ffee41f595091bf3c342ba1318481a77d2a7.tar.gz mgagnome-9091ffee41f595091bf3c342ba1318481a77d2a7.tar.bz2 mgagnome-9091ffee41f595091bf3c342ba1318481a77d2a7.tar.xz mgagnome-9091ffee41f595091bf3c342ba1318481a77d2a7.zip |
cleanup BUILD after running bm
-rwxr-xr-x | mgagnome | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |