1
0
forked from pool/kernel-source
Files
kernel-source/splitflist
Thomas Zimmermann 5a68a1c7d1 GIT Revision: 5725decbef8de98414e5d1eea61d668325003e24
GIT Branch: SLE12-SP5
2025-11-07 08:43:18 +0000
2025-11-12 14:46:04 +01:00

17 lines
411 B
Bash

#!/bin/bash -e
package="$1"
present="$2"
ghost="$3"
missing=""
rpm -ql --noghost "$package" | while read x ; do
[ -e "$x" -o -L "$x" ] && echo "$x" >> "$present" || echo Missing file "$x"
done
rpm -q --qf '[%{FILEFLAGS} %{FILENAMES} 0%{FILEMODES:octal} %{FILESIZES} %{FILEMTIMES} %{FILELINKTOS}\n]' $package | while read -a line; do
[ $[line[0]&64] = 64 ] || continue
echo "${line[@]:1}"
done > "$ghost"