rpm/brp-compress-no-img.patch

11 lines
419 B
Diff

--- ./scripts/brp-compress.orig 2019-10-02 12:09:46.263708258 +0000
+++ ./scripts/brp-compress 2019-10-02 12:09:52.055696056 +0000
@@ -50,6 +50,7 @@ do
find $d -type f ! -name dir | while read f
do
[ -f "$f" ] || continue
+ case $(file "$f") in *"image data"*) continue;; esac
case "$f" in
*.gz|*.Z) gunzip -f "$f" || check_for_hard_link $d "$f"; b=`echo $f | sed -e 's/\.\(gz\|Z\)$//'`;;