wok-current view cookutils/stuff/wanted-version.patch @ rev 25044

*/stuff/bootloader.S: fix VCPI case
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 02 15:48:36 2022 +0000 (2022-06-02)
parents
children
line source
1 The wanted package *must* have the same version
2 --- a/cook
3 +++ b/cook
4 @@ -167,6 +167,9 @@
5 src="$basesrc/$WANTED-$VERSION"
6 install="$WOK/$WANTED/install"
7 wanted_stuff="$WOK/$WANTED/stuff"
8 + wanted_version="$(. $WOK/$WANTED/receipt; echo $VERSION)"
9 + [ $wanted_version = $VERSION ] ||
10 + (_ 'ERROR: %s' "wanted package version $wanted_version" && exit 1)
11 fi
13 [ -n "$SOURCE" ] && source_stuff="$WOK/$SOURCE/stuff"