Jiri Slaby
c0e0dde525
OBS-URL: https://build.opensuse.org/package/show/Kernel:stable/kernel-source?expand=0&rev=1003
16 lines
297 B
Bash
16 lines
297 B
Bash
#!/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
|