a2a2eb3c74
- 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
16 lines
455 B
Bash
16 lines
455 B
Bash
#!/bin/sh
|
|
|
|
LD_LIBRARY_PATH=/opt/testing/lib
|
|
PATH="/opt/testing/bin:$PATH"
|
|
PYTHONHOME=/opt/testing
|
|
XDG_CONFIG_HOME="/opt/testing/share"
|
|
LC_ALL=en_US.utf-8
|
|
export PYTHONHOME LD_LIBRARY_PATH LC_ALL XDG_CONFIG_HOME
|
|
args=""
|
|
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 $@
|