1
0
forked from pool/kernel-source
Files
kernel-source/splitflist
Michal Suchanek 81d8f088d5 GIT Revision: 76c2c9b6a2d8804737cec8c7208cc5a489db571c
GIT Branch: stable
2026-01-19 08:25:26 +0000
2026-01-21 09:26:42 +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"