1
0
Files
kernel-source-vanilla/splitflist
Kernel Bugs 398f7c9cd6 GIT Revision: 3fff0a00f0f2deb26fece4aa41d97acb50267ed3
GIT Branch: linux-next
2026-01-05 11:23:48 +0000
2026-01-06 08:04: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"