Accepting request 908346 from home:StevenK:branches:devel:openSUSE:Factory:rpmlint

- Try two for supporting multiple rpmlintrc, since shell for loops
  always loop, even if the files don't exist.

OBS-URL: https://build.opensuse.org/request/show/908346
OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint-mini?expand=0&rev=143
This commit is contained in:
Martin Liška 2021-08-02 09:53:47 +00:00 committed by Git OBS Bridge
parent c31324b882
commit a2a2eb3c74
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jul 26 06:28:35 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
- Try two for supporting multiple rpmlintrc, since shell for loops
always loop, even if the files don't exist.
-------------------------------------------------------------------
Fri Jul 23 04:55:34 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>

View File

@ -7,7 +7,9 @@ XDG_CONFIG_HOME="/opt/testing/share"
LC_ALL=en_US.utf-8
export PYTHONHOME LD_LIBRARY_PATH LC_ALL XDG_CONFIG_HOME
args=""
for rcfile in /home/abuild/rpmbuild/SOURCES/*rpmlintrc ; do
args="$args -r $rcfile "
done
if ls /home/abuild/rpmbuild/SOURCES/*rpmlintrc 2>&1 2>/dev/null ; then
for rcfile in /home/abuild/rpmbuild/SOURCES/*rpmlintrc ; do
args="$args -r $rcfile "
done
fi
exec /opt/testing/bin/rpmlint.real $args --mini-mode $@