diff --git a/get-build-deps b/get-build-deps index 09526c1..1777955 100755 --- a/get-build-deps +++ b/get-build-deps @@ -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