# HG changeset patch # User Christopher Rogers # Date 1291120243 0 # Node ID 41af35260bfeb2de38b276d26ae36ec6b371c562 # Parent c238a5e8c3fb3da186d5200b07819c17005ee051 Added md5 support for get option in tazpkg. This will help if you just want to update cache packages without installing packages. diff -r c238a5e8c3fb -r 41af35260bfe tazpkg --- a/tazpkg Mon Nov 15 17:18:55 2010 +0100 +++ b/tazpkg Tue Nov 30 12:30:43 2010 +0000 @@ -2490,7 +2490,14 @@ check_for_packages_list check_for_package_in_list echo "" - download $PACKAGE.tazpkg + if [ -f $PACKAGE.tazpkg ]; then + if [ "$(md5sum $PACKAGE.tazpkg)" != "$(grep " $PACKAGE.tazpkg$" /var/lib/tazpkg/packages.md5)" ]; then + rm -f $PACKAGE.tazpkg + download $PACKAGE.tazpkg + fi + else + download $PACKAGE.tazpkg + fi echo "" ;; get-install) # Download and install a package.