Hello,
I know this might look as a stupid question, though I can't manage to
use multiple flags, just as pacman does. This bunch of code:
pmtransflag_t flgs = PM_TRANS_FLAG_NOSCRIPTLET;
flgs |= PM_TRANS_FLAG_FORCE;
Simply doesn't compile, returning:
Dan McGee wrote:
The magic:
pkglist=$(mktemp)
pacman -Sl $1 $pkglist
pacman -Q | while read pkg; do
ret=0
grep -q $pkg $pkglist || ret=$?
if [ $ret -eq 0 ]; then
echo $pkg
fi
done
rm $pkglist
Nice! I will submit the patch which adds this script to contrib later
today.