From 65df56ac7c655cc48a6d38415cbf274ef262c0fe Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Mon, 6 Feb 2012 23:12:56 +0100 Subject: [PATCH] pck-update (-a6): better check for self-provided packages Signed-off-by: Davide Madrisan --- plugins/pck-update.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/pck-update.in b/plugins/pck-update.in index b1a13e4..d4b490b 100644 --- a/plugins/pck-update.in +++ b/plugins/pck-update.in @@ -2465,12 +2465,12 @@ $(rpm --qf %{name} -qf $solibpath_catch 2>/dev/null)" 2>/dev/null rpm -q ${buildreq}-devel &>/dev/null && buildreq="$(rpm -q --qf %{name} ${buildreq}-devel)" 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 [ "$p" = "$buildreq" ] && echo "$p" - done)" ]; then - # finally print buildrequires block - [ "$buildreq" ] && echo "BuildRequires: $buildreq" + done)" ] && echo "BuildRequires: $buildreq" fi done ) >> $frequires