opensim-tools – Diff between revs 60 and 61

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 60 Rev 61
Line 12... Line 12...
12 # Spectaced Owl upgrade 12 # Spectaced Owl upgrade
13 if [ -f lib/install-packages.txt ] && [ -f lib/uninstall-packages.txt ]; then 13 if [ -f lib/install-packages.txt ] && [ -f lib/uninstall-packages.txt ]; then
14 dialog --yesno "By selecting yes here, the Spectacled Owl will install or remove packages essential for OpenSim from the virtual machine. You should say yes here unless you have made major changes to the Spectacled Owl machine. Would you like to process the list of packages to install or remove?" 10 70 14 dialog --yesno "By selecting yes here, the Spectacled Owl will install or remove packages essential for OpenSim from the virtual machine. You should say yes here unless you have made major changes to the Spectacled Owl machine. Would you like to process the list of packages to install or remove?" 10 70
15 if [ $? == "0" ]; then 15 if [ $? == "0" ]; then
16 # Update repositories 16 # Update repositories
17 aptitude update 17 aptitude -y update
18 aptitude upgrade 18 aptitude -y upgrade
19 # Remove packages 19 # Remove packages
20 cat lib/uninstall-packages.txt | while read p; do 20 cat lib/uninstall-packages.txt | while read p; do
21 PACKAGE=`dpkg -l | grep "$p" | head -1 | awk '{ print $2 }'` 21 PACKAGE=`dpkg -l | grep "$p" | head -1 | awk '{ print $2 }'`
22 if [ "$PACKAGE" == "$p" ]; then 22 if [ "$PACKAGE" == "$p" ]; then
23 aptitude purge $p 23 aptitude -y purge $p
24 fi 24 fi
25 done 25 done
26 # Install packages 26 # Install packages
27 cat lib/install-packages.txt | while read i; do 27 cat lib/install-packages.txt | while read i; do
28 PACKAGE=`dpkg -l | grep "$i" | head -1 | awk '{ print $2 }'` 28 PACKAGE=`dpkg -l | grep "$i" | head -1 | awk '{ print $2 }'`
29 if [ "$PACKAGE" != "$i" ]; then 29 if [ "$PACKAGE" != "$i" ]; then
30 aptitude purge $i 30 aptitude -y purge $i
31 aptitude install $i 31 aptitude -y install $i
32 fi 32 fi
33 done 33 done
34 fi 34 fi
35 fi 35 fi