2009-01-10 14:03:47 +01:00
|
|
|
#! /bin/bash
|
2008-07-18 12:15:21 +02:00
|
|
|
|
2009-07-09 04:41:55 +02:00
|
|
|
trap 'rm -f "$filelist"' EXIT
|
2009-01-10 14:03:47 +01:00
|
|
|
filelist=$(mktemp -t ${0##*/}.XXXXXXXXXX)
|
|
|
|
cat >"$filelist"
|
2009-07-09 04:41:55 +02:00
|
|
|
shopt -s nullglob
|
2009-01-10 14:03:47 +01:00
|
|
|
|
2009-07-09 04:41:55 +02:00
|
|
|
# pretend that /boot/vmlinux-* is in the -base package and not in -devel
|
|
|
|
if grep -q '/boot/System\.map\>' "$filelist"; then
|
|
|
|
prefix=$(sed -rn 's:(.*)/boot/System\.map\>.*:\1:p; T; q' "$filelist")
|
|
|
|
for f in "$prefix"/boot/vmlinux*; do
|
|
|
|
echo "$f" >>"$filelist"
|
|
|
|
done
|
|
|
|
else
|
|
|
|
perl -ni -e 'next if /\/boot\/vmlinux/ && !/\.debug$/; print' "$filelist"
|
|
|
|
fi
|
2008-11-23 08:54:06 +01:00
|
|
|
|
2009-07-09 04:41:55 +02:00
|
|
|
/usr/lib/rpm/find-provides "$@" <"$filelist"
|