pck-update (-a6): better check for self-provided packages
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
parent
58bff5edbc
commit
65df56ac7c
@ -2465,12 +2465,12 @@ $(rpm --qf %{name} -qf $solibpath_catch 2>/dev/null)" 2>/dev/null
|
|||||||
rpm -q ${buildreq}-devel &>/dev/null &&
|
rpm -q ${buildreq}-devel &>/dev/null &&
|
||||||
buildreq="$(rpm -q --qf %{name} ${buildreq}-devel)"
|
buildreq="$(rpm -q --qf %{name} ${buildreq}-devel)"
|
||||||
fi
|
fi
|
||||||
if [ -z "$(for p in ${SPEC_TARGET[*]}; do
|
if [ "$buildreq" ]; then
|
||||||
|
# finally print buildrequires block
|
||||||
|
[ -z "$(for p in ${SPEC_TARGET[*]}; do
|
||||||
# self-provided package
|
# self-provided package
|
||||||
[ "$p" = "$buildreq" ] && echo "$p"
|
[ "$p" = "$buildreq" ] && echo "$p"
|
||||||
done)" ]; then
|
done)" ] && echo "BuildRequires: $buildreq"
|
||||||
# finally print buildrequires block
|
|
||||||
[ "$buildreq" ] && echo "BuildRequires: $buildreq"
|
|
||||||
fi
|
fi
|
||||||
done ) >> $frequires
|
done ) >> $frequires
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user