LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File splitflist of Package kernel-source (Project Kernel:stable)

#!/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