tazlito rev 292

fix receipt version containing _realver var (bug #18)
author xfred222
date Wed Nov 28 17:06:46 2012 -0500 (2012-11-28)
parents 3014763f4b52
children 20d6f2e320a7
files tazlito
line diff
     1.1 --- a/tazlito	Wed Nov 14 22:04:31 2012 +0100
     1.2 +++ b/tazlito	Wed Nov 28 17:06:46 2012 -0500
     1.3 @@ -1948,7 +1948,11 @@
     1.4  		if [ ! -f "$LIST_NAME" -a -d $INSTALLED ] ; then
     1.5  		# Build list with installed packages
     1.6  			for i in $(ls $INSTALLED); do
     1.7 -				eval $(grep ^VERSION= $INSTALLED/$i/receipt)
     1.8 +				if grep -q ^_realver $INSTALLED/$i/receipt ; then
     1.9 +					VERSION=$(. $INSTALLED/$i/receipt 2>/dev/null ; echo $VERSION) 
    1.10 +				else
    1.11 +					eval $(grep ^VERSION= $INSTALLED/$i/receipt)
    1.12 +				fi
    1.13  				EXTRAVERSION=""
    1.14  				eval $(grep ^EXTRAVERSION= $INSTALLED/$i/receipt)
    1.15  				echo "$i-$VERSION$EXTRAVERSION" >> $LIST_NAME