File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
pkgs/by-name/mi/microsoft-identity-broker Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,19 @@ echo "$index_file" | while read -r line; do
1212 if [[ " $line " =~ ^Version:[[:space:]]* (.* ) ]]; then
1313 Version=" ${BASH_REMATCH[1]} "
1414 fi
15+ if [[ " $line " =~ ^SHA256:[[:space:]]* (.* ) ]]; then
16+ SHA256=" ${BASH_REMATCH[1]} "
17+ fi
1518
1619 if ! [[ " $line " ]] && [[ " ${Package} " == " microsoft-identity-broker" ]]; then
1720 if ( dpkg --compare-versions ${Version} gt ${latest_version} ); then
1821 latest_version=" ${Version} "
22+ sri_hash=$( nix-hash --to-sri --type sha256 " $SHA256 " )
1923
20- echo $latest_version
24+ echo $latest_version $sri_hash
2125 fi
2226
2327 Package=" "
2428 Version=" "
2529 fi
26- done | tail -n 1 | (read version; update-source-version microsoft-identity-broker $version )
30+ done | tail -n 1 | (read version hash ; update-source-version microsoft-identity-broker $version $hash )
You can’t perform that action at this time.
0 commit comments