From e94bc7af4eaf94116c931b97f4f09e9416fd4153 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jani=20V=C3=A4limaa?= Date: Sun, 24 Mar 2024 12:10:52 +0200 Subject: Rename --clean as --clean-topdir Reuse --clean later as passthough option for rpmbuild --- BuildManager/build.py | 4 ++-- bash-completion/bm | 2 +- bm | 4 ++-- man/bm.8 | 4 ++-- 4 files changed, 7 insertions(+), 7 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: diff --git a/bash-completion/bm b/bash-completion/bm index feb2c18..047a8fd 100644 --- a/bash-completion/bm +++ b/bash-completion/bm @@ -33,7 +33,7 @@ _bm() --remove-failed-srpm --move-succeeded-srpm= \ --copy-succeeded-srpm= --remove-succeeded-srpm \ --move-log= --move-failed-log= --filter-renew= \ - --filter-refresh= --clean --clean-on-success --ignore= \ + --filter-refresh= --clean-topdir --clean-on-success --ignore= \ --sign --nodeps --noclean --debug --short-circuit --with \ --without --define --target --dryrun --log=' -- $cur ) ) else diff --git a/bm b/bm index 7c0a657..bf15eb9 100644 --- a/bm +++ b/bm @@ -78,10 +78,10 @@ def parse_options(): help="don't build packages if a newer version exists in given directory") parser.add_option("--filter-refresh", metavar="DIR", action="append", default=[], help="only build packages if an older version exists in given directory") - parser.add_option("--clean", action="store_true", + parser.add_option("--clean-topdir", action="store_true", help="recursively remove directory used as topdir after the build process") parser.add_option("--clean-on-success", action="store_true", - help="same as --clean, but only remove if build has succeeded") + help="same as --clean-topdir, but only remove if build has succeeded") parser.add_option("--ignore", metavar="PKGNAME", action="append", default=[], help="ignore given package names (shell globbing allowed)") parser.add_option("--force-unpack", dest="forceunpack", action="store_true", diff --git a/man/bm.8 b/man/bm.8 index 8794c1c..ab17fc8 100644 --- a/man/bm.8 +++ b/man/bm.8 @@ -113,12 +113,12 @@ don't build packages if a newer version exists in given directory only build packages if an older version exists in given directory .TP .B -\fB--clean\fP +\fB--clean-topdir\fP recursively remove directory used as topdir after the build process .TP .B \fB--clean-on-success\fP -same as \fB--clean\fP, but only remove if build has succeeded +same as \fB--clean-topdir\fP, but only remove if build has succeeded .TP .B \fB--ignore\fP=PKGNAME -- cgit v1.2.1