Commit b3419dc9c0a093186a1bd1410a1f7abfc779f70f

Authored by Silvan Calarco
1 parent 5a4e8f799a
Exists in master

pck-update: fix duplicated names in BuildRequires: in multiarch systems (x86_64)

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

plugins/pck-update.in
... ... @@ -2334,7 +2334,7 @@
2334 2334 fi
2335 2335 if [ "$solibpath_catch" ]; then
2336 2336 rpm --qf %{name} -qf $solibpath_catch &>/dev/null &&
2337   - buildreq="$(rpm --qf %{name} -qf $solibpath_catch)" ||
  2337 + buildreq="$(rpm --qf "%{name}\n" -qf $solibpath_catch|head -n1)" ||
2338 2338 echo "\
2339 2339 #$req: $solibpath_catch: file not owned by any package"
2340 2340 else
... ... @@ -2358,7 +2358,7 @@
2358 2358 -a "${buildreq/%-devel/}" = "$buildreq" ]; then
2359 2359 # if a -devel exists for this package, use it
2360 2360 rpm -q ${buildreq}-devel &>/dev/null &&
2361   - buildreq="$(rpm -q --qf %{name} ${buildreq}-devel)"
  2361 + buildreq="$(rpm -q --qf "%{name}\n" ${buildreq}-devel|head -n1)"
2362 2362 fi
2363 2363 if [ "$buildreq" ]; then
2364 2364 # finally print buildrequires block