fi
# initialize apt
-update-manager -c
-
-sudo update-software-center --debug 2>&1 | \
- zenity $icon_opt --title="Updating Software Center Repository" \
- --progress --pulsate --auto-close --auto-kill
+#
+# update-manager (from update-manager-gnome) and
+# update-software-center (from software-center)
+# are present only in wheezy
+if which update-manager > /dev/null; then update-manager -c; fi
+
+if which update-software-center > /dev/null; then
+ sudo update-software-center --debug 2>&1 | \
+ zenity $icon_opt --title="Updating Software Center Repository" \
+ --progress --pulsate --auto-close --auto-kill;
+else
+ sudo apt-get update 2>&1 | \
+ zenity $icon_opt --title="Running apt-get update" \
+ --progress --pulsate --auto-close --auto-kill;
+fi
popconf=/etc/popularity-contest.conf
if [ ! -e "$popconf" ] || grep -q -e '^PARTICIPATE.*no' "$popconf" ;