aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2019-12-11 18:20:50 +0100
committerFlorian Weimer <fweimer@redhat.com>2019-12-11 18:20:50 +0100
commit621054c8ceac1c47e27f291af2a2a2e00da7a242 (patch)
tree934ef8966304d37f04ebcccbf2302222640ff3ab
parent2e9b5db50a9d27393199cfc2737bb30fa533053e (diff)
build-many-glibcs.py: Move cleanup_dir out of build_glibc
This allows customization of the post-build actions.
-rwxr-xr-xscripts/build-many-glibcs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py
index 0c7d8ecaa2..0c01c3b9e9 100755
--- a/scripts/build-many-glibcs.py
+++ b/scripts/build-many-glibcs.py
@@ -1217,6 +1217,7 @@ class Config(object):
cmdlist.push_subdesc('glibc')
cmdlist.push_subdesc(g.name)
g.build_glibc(cmdlist, True)
+ cmdlist.cleanup_dir()
cmdlist.pop_subdesc()
cmdlist.pop_subdesc()
self.build_gcc(cmdlist, False)
@@ -1427,6 +1428,7 @@ class Glibc(object):
os.path.join(self.compiler.installdir, 'ok')])
cmdlist.use_path(self.compiler.bindir)
self.build_glibc(cmdlist, False)
+ cmdlist.cleanup_dir()
self.ctx.add_makefile_cmdlist('glibcs-%s' % self.name, cmdlist,
logsdir)
@@ -1486,7 +1488,6 @@ class Glibc(object):
cmdlist.add_command('check', ['make', 'check'])
cmdlist.add_command('save-logs', [self.ctx.save_logs],
always_run=True)
- cmdlist.cleanup_dir()
class Command(object):