config=include
showsoname=0
status=
+sharedlibsonly=0
-while getopts f:qlncCLI opt; do
+while getopts f:qlncCLIs opt; do
case $opt in
f) pkgfile="$OPTARG" ;;
l) long=1 ;;
c) config=only ;;
C) config=exclude ;;
L) showsoname=1 ;;
- I) status=installed
+ s) sharedlibsonly=1 ;;
+ I) status=installed ;;
esac
done
shift $((OPTIND - 1))
printf "else path end as path\n"
fi
printf "from packagefiles_pkgid PF\n"
- if [ $showsoname -eq 1 ]; then
+ if [ $showsoname -eq 1 ] || [ $sharedlibsonly -eq 1 ]; then
printf "left join elflibraries EL on EL.file = PF.hash\n"
fi
if [ -n "$status" ]; then
only) printf "and configuration = 1\n" ;;
exclude) printf "and configuration = 0\n" ;;
esac
+ if [ $sharedlibsonly -eq 1 ]; then
+ printf "and EL.soname is not null\n"
+ fi
if [ -n "$status" ]; then
printf "and P.status = '%s'\n" "$status"
fi