[Rpm-maint] [rpm-software-management/rpm] rpmbuild --rebuild --noclean "doesn't work" (#667)
rwmjones
notifications at github.com
Tue Apr 16 11:15:02 UTC 2019
I'm trying to keep the build directory after a successful rpmbuild, but the obvious option of using `--noclean` doesn't work, it still deletes the directory:
```
$ rpmbuild --rebuild --noclean /home/nbdkit-1.8.0-1.el7.src.rpm
....
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.ksxsLr
+ umask 022
+ cd /home/mm/rpmbuild/BUILD
+ rm -rf nbdkit-1.8.0
+ exit 0
```
Now reading the manual very closely I can see that this behaviour is documented. `--noclean` skips the `%clean` step, but if your RPM spec file doesn't have a `%clean` step then it does nothing, so that's correct but also totally counter-intuitive and wrong.
There was a proposal to add `--skip-clean` (https://github.com/rpm-software-management/rpm/pull/7) but that seems to have gone nowhere.
So I'm going to argue that `--noclean` is broken.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/667
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190416/60a7cf01/attachment-0001.html>
More information about the Rpm-maint
mailing list