Skip to content

Commit

Permalink
Fix brp-compress regression from f3f763e
Browse files Browse the repository at this point in the history
Since that commit builds would fail with

	RPM build errors:
	    Installed (but unpackaged) file(s) found:
	    /.gz

Use a similar find -print0 construct as the other loop above.
  • Loading branch information
pmatilai committed Jan 14, 2022
1 parent 03f146e commit d0ad515
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/brp-compress
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ do
}
done

for f in "`find $d -type l`"
do
find $d -type l --print0 |
while IFS= read -r -d '' f; do
l=`ls -l $f | sed -e 's/.* -> //' -e 's/\.\(gz\|Z\|bz2\|xz\|lzma\|zst\|zstd\)$//'`
rm -f $f
b=`echo $f | sed -e 's/\.\(gz\|Z\|bz2\|xz\|lzma\|zst\|zstd\)$//'`
Expand Down

0 comments on commit d0ad515

Please sign in to comment.