wok-6.x annotate cookutils/stuff/wanted-version.patch @ rev 24148
Up nnn (4.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 24 16:03:33 2021 +0000 (2021-11-24) |
parents | |
children |
rev | line source |
---|---|
pascal@23649 | 1 The wanted package *must* have the same version |
pascal@23649 | 2 --- a/cook |
pascal@23649 | 3 +++ b/cook |
pascal@23649 | 4 @@ -167,6 +167,9 @@ |
pascal@23649 | 5 src="$basesrc/$WANTED-$VERSION" |
pascal@23649 | 6 install="$WOK/$WANTED/install" |
pascal@23649 | 7 wanted_stuff="$WOK/$WANTED/stuff" |
pascal@23649 | 8 + wanted_version="$(. $WOK/$WANTED/receipt; echo $VERSION)" |
pascal@23649 | 9 + [ $wanted_version = $VERSION ] || |
pascal@23649 | 10 + (_ 'ERROR: %s' "wanted package version $wanted_version" && exit 1) |
pascal@23649 | 11 fi |
pascal@23649 | 12 |
pascal@23649 | 13 [ -n "$SOURCE" ] && source_stuff="$WOK/$SOURCE/stuff" |