tazpkg rev 320
Add upgrade button
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 23 00:09:30 2010 +0100 (2010-02-23) |
parents | 9a3121405428 |
children | e2cf4184c576 |
files | lib/tazpkgbox/package_infos |
line diff
1.1 --- a/lib/tazpkgbox/package_infos Mon Feb 22 23:57:19 2010 +0100 1.2 +++ b/lib/tazpkgbox/package_infos Tue Feb 23 00:09:30 2010 +0100 1.3 @@ -251,6 +251,14 @@ 1.4 $PKG; sleep 5\"</action> 1.5 <action type=\"closewindow\">INSTALLED_PACKAGE_ACTIONS</action> 1.6 </button>" 1.7 +[ -n "$UPGRADE" ] && PACKAGE_INFOS="$PACKAGE_INFOS 1.8 + <button> 1.9 + <label>Upgrade</label> 1.10 + <input file icon=\"go-next\"></input> 1.11 + <action>xterm -T \"Install $PKG\" $XTERM_OPTS -e \"\ 1.12 + tazpkg get-install $PKG --forced ; sleep 5\"</action> 1.13 + <action type=\"closewindow\">INSTALLED_PACKAGE_ACTIONS</action> 1.14 + </button>" 1.15 grep -q post_install /var/lib/tazpkg/installed/$PKG/receipt && PACKAGE_INFOS="$PACKAGE_INFOS 1.16 <button> 1.17 <label>Reconfigure</label>