mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Fix minor build warning on rpm based systems.
This commit is contained in:
parent
b9172f195d
commit
0c8f6e642c
1 changed files with 3 additions and 3 deletions
|
@ -48,15 +48,15 @@ BUILDDIR=$(shell if [ -d "${TESTBUILDDIR}" ] ; then \
|
|||
echo "/tmp/${NAME}" ; \
|
||||
fi ;)
|
||||
endif
|
||||
RPMHOSTVENDOR=$(shell which rpm && rpm --eval "%{_host_vendor}")
|
||||
RPMHOSTVENDOR=$(shell which rpm > /dev/null && rpm --eval "%{_host_vendor}")
|
||||
ifndef DISTRO
|
||||
DISTRO=$(shell if [ -f /etc/slackware-version ] ; then \
|
||||
echo slackware ; \
|
||||
elif [ -f /etc/debian_version ] ; then \
|
||||
echo debian ;\
|
||||
elif [ ${RPMHOSTVENDOR} = "suse" ] ; then \
|
||||
elif [ "${RPMHOSTVENDOR}" = "suse" ] ; then \
|
||||
echo suse ;\
|
||||
elif [ ${RPMHOSTVENDOR} = "redhat" ] ; then \
|
||||
elif [ "${RPMHOSTVENDOR}" = "redhat" ] ; then \
|
||||
echo rhel4 ;\
|
||||
else \
|
||||
echo unknown ;\
|
||||
|
|
Loading…
Add table
Reference in a new issue