Files
kernel-source/splitflist
Kernel Bugs e51613f8c0 GIT Revision: 27dde9063e498e35c7ef2ec627d4cb5d2fa05f15
GIT Branch: SUSE-2024
2025-12-25 00:28:58 +0000
2026-01-06 08:04:07 +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"