wok-4.x rev 3566

tazpkg-web: add tazpkg:// link
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 25 08:56:20 2009 +0200 (2009-06-25)
parents 6c6e753c7f97
children 4ffc7c76d358
files tazpkg-web/stuff/style/pics/tazpkg.png tazpkg-web/stuff/tazpkg-web
line diff
     1.1 Binary file tazpkg-web/stuff/style/pics/tazpkg.png has changed
     2.1 --- a/tazpkg-web/stuff/tazpkg-web	Wed Jun 24 19:01:54 2009 +0000
     2.2 +++ b/tazpkg-web/stuff/tazpkg-web	Thu Jun 25 08:56:20 2009 +0200
     2.3 @@ -118,17 +118,19 @@
     2.4  		DEPENDS_LINKS=""
     2.5  		EXTRAVERSION=""
     2.6  		. $pkg/receipt
     2.7 -		[ -z "$EXTRAVERSION" ] && EXTRAVERSION="_$KERNEL"
     2.8  		packages=$(($packages+1))
     2.9  		cat >> $PAGES_DIR/$CATEGORY.html << _EOT_
    2.10  
    2.11  <a name="$PACKAGE"></a>
    2.12 -<h3>$PACKAGE</h3>
    2.13 +<h3>
    2.14 +<a href="tazpkg://mirror.slitaz.org/packages/$RELEASE/$PACKAGE-${VERSION}$EXTRAVERSION.tazpkg"><img src="/pics/tazpkg.png" title="install" alt="install" /></a>
    2.15 +$PACKAGE</h3>
    2.16  <pre class="package">
    2.17  Version    : $VERSION
    2.18  Short desc : $SHORT_DESC
    2.19  Web site   : <a href="$WEB_SITE">$WEB_SITE</a>
    2.20  _EOT_
    2.21 +		[ -z "$EXTRAVERSION" ] && EXTRAVERSION="_$KERNEL"
    2.22  		# Extraversion string or not
    2.23  		if [ -f "$PACKAGES_REPOSITORY/$PACKAGE-${VERSION}$EXTRAVERSION.tazpkg" ]; then
    2.24  			cat >> $PAGES_DIR/$CATEGORY.html << _EOT_
    2.25 @@ -142,21 +144,21 @@
    2.26  Download   : <a href="http://mirror.slitaz.org/packages/$RELEASE/$PACKAGE-$VERSION.tazpkg">$PACKAGE-$VERSION.tazpkg</a>
    2.27  _EOT_
    2.28  			echo '</pre>' >> $PAGES_DIR/$CATEGORY.html
    2.29 -			# Dependencies with link to the package information using
    2.30 -			# category.html#anchor
    2.31 -			if [ -n "$DEPENDS" ]; then
    2.32 -				for dep in $DEPENDS
    2.33 -				do
    2.34 -					receipt=$WOK/$dep/receipt
    2.35 -					if [ -f "$receipt" ]; then
    2.36 -						cat=`grep CATEGORY $receipt | sed s/CATEGORY=\"// | sed s/\"//`
    2.37 -						DEPENDS_LINKS=${DEPENDS_LINKS}"<a href=\"$cat.html#$dep\">$dep</a> "
    2.38 -					fi
    2.39 -				done
    2.40 -				cat >> $PAGES_DIR/$CATEGORY.html << _EOT_
    2.41 +		fi
    2.42 +		# Dependencies with link to the package information using
    2.43 +		# category.html#anchor
    2.44 +		if [ -n "$DEPENDS" ]; then
    2.45 +			for dep in $DEPENDS
    2.46 +			do
    2.47 +				receipt=$WOK/$dep/receipt
    2.48 +				if [ -f "$receipt" ]; then
    2.49 +					cat=`grep CATEGORY $receipt | sed s/CATEGORY=\"// | sed s/\"//`
    2.50 +					DEPENDS_LINKS=${DEPENDS_LINKS}"<a href=\"$cat.html#$dep\">$dep</a> "
    2.51 +				fi
    2.52 +			done
    2.53 +			cat >> $PAGES_DIR/$CATEGORY.html << _EOT_
    2.54  <p>Depends : $DEPENDS_LINKS</p>
    2.55  _EOT_
    2.56 -			fi
    2.57  		fi
    2.58  	done
    2.59  }