Open tpgxyz opened 1 year ago
Thank you for the report. The DEBUG output is annoying, I bet. Or what is your proposal?
Ok, I thought we have cleanup_on_success=True
by default, but that's not truth. Users most often don't specify --resultdir explicitly, and therefore we reset this default to cleanup_on_success=False
. Thus, this is mostly a ubiquitous check actually.
I tend to think cleanup_on_success
has nothing to do with the --noclean
rpmbuild option now. With this in mind, I think we should stop overusing the already complicated cleanup_on_success
and have a new, much simpler option rpmbuild_has_noclean_option=True
. We would stop "runtime checking", and users could re-set it to False
when needed (for EL6 and older). We could fix eol/epel-6
configs for education purposes...
Short description of the problem
Looks like every build a
rpmbuild --help
is called just to check if rpmbuild does have an option called--noclean
. This was introduced here https://github.com/rpm-software-management/mock/commit/cab12758da074e8af87189bd8f4a11c73a1f1ebfAccoding to comments in that new code it seems this
_rpmbuild_noclean_option
is only needed for RHEL 6. Nice overkill thb.Output of
rpm -q mock
[tpg@omv-rockpro64 ~/OpenMandriva/gettext]$ rpm -q mock mock-3.3-4.noarch
Build logs snippet.