diff --git a/plugins/pck-update.in b/plugins/pck-update.in index ff83fb0..70dae54 100644 --- a/plugins/pck-update.in +++ b/plugins/pck-update.in @@ -2262,7 +2262,7 @@ $(echo $solibpath | sed "s|-[0-9.]*\.so|.so|")" elif [[ "$req" =~ .*\(.*\) || "$req" =~ .*\.so ]]; then # a(b) requirement or *.so library rpm -q --qf %{name} --whatprovides "$req" &>/dev/null && - buildreq="$(rpm -q --qf %{name} --whatprovides "$req")" || + buildreq="$(rpm -q --qf "%{name}\n" --whatprovides "$req"|head -n1)" || echo "#$req: unidentified build requirement" else # other requirements probably coming from static 'Requires:'