Automatically resolve missing dependencies in Ubuntu

This may not be so straight in case of Cygwin.
This commit is contained in:
Anirudha Bose 2014-06-05 03:33:13 +05:30 committed by sftnight
parent 8111c0f1ad
commit e47f68fcff

View File

@ -84,12 +84,24 @@ while [ "${1}" != "" ]; do
check_ubuntu devscripts
check_ubuntu gnupg
check_ubuntu python
cat <<- EOT
echo -e "\nCPT will now attempt to update/install the requisite packages automatically. Do you want to continue?"
select yn in "Yes" "No"; do
case $yn in
Yes)
sudo apt-get update
sudo apt-get install git curl debhelper devscripts gnupg python
break
;;
No)
cat <<- EOT
Install/update the required packages by:
sudo apt-get update
sudo apt-get install git curl debhelper devscripts gnupg python
EOT
break
;;
esac
done
exit
elif [ "${OS}" = "Cygwin" ]; then
check_cygwin cygwin # Doesn't make much sense. This is for the appeasement of users.