wok diff cookutils/stuff/wanted-version.patch @ rev 25076
Up marlin (886)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 14 08:17:07 2022 +0000 (2022-06-14) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/cookutils/stuff/wanted-version.patch Tue Jun 14 08:17:07 2022 +0000 1.3 @@ -0,0 +1,13 @@ 1.4 +The wanted package *must* have the same version 1.5 +--- a/cook 1.6 ++++ b/cook 1.7 +@@ -167,6 +167,9 @@ 1.8 + src="$basesrc/$WANTED-$VERSION" 1.9 + install="$WOK/$WANTED/install" 1.10 + wanted_stuff="$WOK/$WANTED/stuff" 1.11 ++ wanted_version="$(. $WOK/$WANTED/receipt; echo $VERSION)" 1.12 ++ [ $wanted_version = $VERSION ] || 1.13 ++ (_ 'ERROR: %s' "wanted package version $wanted_version" && exit 1) 1.14 + fi 1.15 + 1.16 + [ -n "$SOURCE" ] && source_stuff="$WOK/$SOURCE/stuff"