get-build-deps: switch back to pbuilder-satisfydepends, use dpkg-checkbuilddeps as fallback

This commit is contained in:
Siegfried-Angel Gevatter Pujals (RainCT) 2007-10-28 01:27:42 +02:00
parent 4d4faa5b68
commit 5b894eaa93

View File

@ -42,8 +42,15 @@ to use this script."
fi
echo "Installing the build dependencies described in «$filepath»..."
sudo aptitude install $(echo $missing_dependencies | awk -F: '{ print $3 }' | sed 's/([^)]*)//g' | sed 's/|\s[^\s]*//g')
if [ -x /usr/lib/pbuilder/pbuilder-satisfydepends ]
then
sudo /usr/lib/pbuilder/pbuilder-satisfydepends
else
echo "Warning: «pbuilder» isn\'t installed, falling back to «dpkg-checkbuilddeps»."
sudo aptitude install $(echo $missing_dependencies | awk -F: '{ print $3 }' | sed 's/([^)]*)//g' | sed 's/|\s[^\s]*//g')
#' <--- Fix to avoid Geanys markup breaking
fi
exit 0
elif [ $# -eq 1 ]
then