summaryrefslogtreecommitdiffstats
path: root/BuildManager
diff options
context:
space:
mode:
authorJani Välimaa <wally@mageia.org>2024-03-24 12:10:52 +0200
committerJani Välimaa <wally@mageia.org>2024-03-24 12:12:18 +0200
commite94bc7af4eaf94116c931b97f4f09e9416fd4153 (patch)
treeb0a8e27246691d584a080cbb892d97081d8bba19 /BuildManager
parentb641599c2119bda54d0663becfdfb29eb25430a4 (diff)
downloadbm-e94bc7af4eaf94116c931b97f4f09e9416fd4153.tar
bm-e94bc7af4eaf94116c931b97f4f09e9416fd4153.tar.gz
bm-e94bc7af4eaf94116c931b97f4f09e9416fd4153.tar.bz2
bm-e94bc7af4eaf94116c931b97f4f09e9416fd4153.tar.xz
bm-e94bc7af4eaf94116c931b97f4f09e9416fd4153.zip
Rename --clean as --clean-topdir
Reuse --clean later as passthough option for rpmbuild
Diffstat (limited to 'BuildManager')
-rw-r--r--BuildManager/build.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/BuildManager/build.py b/BuildManager/build.py
index 38bde2f..5b7e7a5 100644
--- a/BuildManager/build.py
+++ b/BuildManager/build.py
@@ -120,7 +120,7 @@ class PackageBuilder:
move_file(pkg.log,
self.opts.move_log,
dryrun=self.opts.dryrun)
- if self.opts.clean or self.opts.clean_on_success:
+ if self.opts.clean_topdir or self.opts.clean_on_success:
if pkg.builddir != "/":
logger.info("cleaning build directory")
if not self.opts.dryrun:
@@ -144,7 +144,7 @@ class PackageBuilder:
move_file(pkg.log,
self.opts.move_failed_log,
dryrun=self.opts.dryrun)
- if self.opts.clean:
+ if self.opts.clean_topdir:
if pkg.builddir != "/":
logger.info("cleaning build directory")
if not self.opts.dryrun: