cookutils diff lighttpd/index.cgi @ rev 915
cook, lighttpd/index.cgi: forgot about EXTRAVERSION.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 07 22:36:09 2017 +0300 (2017-06-07) |
parents | a608dbb232df |
children | 5f884df71b44 |
line diff
1.1 --- a/lighttpd/index.cgi Wed Jun 07 21:39:55 2017 +0300 1.2 +++ b/lighttpd/index.cgi Wed Jun 07 22:36:09 2017 +0300 1.3 @@ -1002,11 +1002,20 @@ 1.4 # find main package 1.5 wanted=$(. $wok/$pkg/receipt; echo $WANTED) 1.6 main=${wanted:-$pkg} 1.7 + 1.8 # identify split packages 1.9 split="$main $(. $wok/$main/receipt; echo $SPLIT)" 1.10 [ -d "$wok/$main-dev" ] && split="$split $main-dev" 1.11 split="$(echo $split | tr ' ' '\n' | sort -u)" 1.12 + 1.13 # finally we need the version 1.14 + if [ -f "$WOK/linux/receipt" ]; then 1.15 + kvers=$(. $WOK/linux/receipt; echo $VERSION) 1.16 + kbasevers=$(echo $kvers | cut -d. -f1,2) 1.17 + elif [ -f "$INSTALLED/linux-api-headers/receipt" ]; then 1.18 + kvers=$(. $INSTALLED/linux-api-headers/receipt; echo $VERSION) 1.19 + kbasevers=$(echo $kvers | cut -d. -f1,2) 1.20 + fi 1.21 ver=$(. $wok/$main/receipt; echo $VERSION$EXTRAVERSION) 1.22 1.23 for p in $split; do