File splitflist of Package kernel-debug.17780
#!/bin/sh -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 -ql "$package" | while read x ; do grep "^$x\$" $present >/dev/null || echo "$x" >> $ghost done