wok-current view cookutils/stuff/wanted-version.patch @ rev 25692
Up gnutls CVE-2024-28834, CVE-2024-28835, Up python3 CVE-2023-52425, CVE-2024-0450, CVE-2023-6597
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Mar 22 16:28:42 2024 +0000 (8 months ago) |
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"