debuginfo: Fix processing of hard-linked binaries

while-end output into the pipe forgets all set inside variables.

Error message:

  ln: .debuginfo/src/: hard link not allowed for directory
This commit is contained in:
Виталий Чикунов 2020-07-07 13:40:18 +03:00
parent 3cc270f50e
commit 50705f69b7

View File

@ -45,8 +45,10 @@ while read -r nlink ino f; do
fi
printf '%s\n' "$f"
done <.tmp/flist \
3>.tmp/link-list \
| xargs -r -P$(nproc) -n1 @RPMCONFIGDIR@/process-debuginfo
>.tmp/xargs-list \
3>.tmp/link-list
xargs -r -P$(nproc) -n1 @RPMCONFIGDIR@/process-debuginfo <.tmp/xargs-list
# Hard-link debuginfo for hard-linked binaries
while read -r ino f; do