tazpkg rev 444 4.3

tazpkg, recharge(): fix a bug which prevent ID check to works well
author Antoine Bodin <gokhlayeh@slitaz.org>
date Wed Mar 16 06:04:20 2011 +0100 (2011-03-16)
parents 132fd78a4ba8
children f8a1a260f811
files tazpkg
line diff
     1.1 --- a/tazpkg	Wed Mar 16 05:27:27 2011 +0100
     1.2 +++ b/tazpkg	Wed Mar 16 06:04:20 2011 +0100
     1.3 @@ -2248,7 +2248,7 @@
     1.4  			# Quietly check if recharging is needed.
     1.5  			[ -f ID ] && mv ID ID.bak
     1.6  			download_from "$(cat mirror)" ID >/dev/null
     1.7 -			if [ -f ID ] && fgrep -q `cat ID.bak` ID; then
     1.8 +			if [ -f ID ] && fgrep -q `cat ID.bak 2>/dev/null || echo "null"` ID; then
     1.9  				if [ "$path" = "$LOCALSTATE" ]; then
    1.10  					repository_name=Main
    1.11  				else