Files
kernel-source/splitflist
Jiri Slaby 2b5e615459 GIT Revision: c376041991582f38054bc5da00a7ac4d96af6692
GIT Branch: stable
2025-11-03 08:48:07 +0000
2025-11-03 09:56:37 +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"