On Tue, Jun 13, 2023 at 12:55:13PM +0200, Olaf Hering wrote:
> Commit 438c5ffa44e99cceb574c0f9946aacacdedd2952 ("rpmball: Adjust to
> new rpm, do not require --force") attempted to handle stricter
> directory permissions in newer distributions.
>
> This introduced a few issues:
> - /boot used to be a constant prior commit
> 6475d700055fa952f7671cee982a23de2f5e4a7c ("use BOOT_DIR as xen.gz
> install location"), since this commit the location has to be
> referenced via ${BOOT_DIR}
> - it assumed the prefix and the various configurable paths match the
> glob pattern /*/*/*
>
> Adjust the code to build a filelist on demand and filter directories
> from an installed filesystem.rpm. This works on a SUSE system, and
> will likely work on a RedHat based system as well.
>
> Take the opportunity to replace the usage of $RPM_BUILD_ROOT with
> %buildroot, and use pushd/popd pairs.
>
> Signed-off-by: Olaf Hering <[email protected]>
> ---
>
> v2: remove bogus pushd/popd pair, use pipe as delimiter for s command for
> consistency
Reviewed-by: Anthony PERARD <[email protected]>
Thanks,
--
Anthony PERARD