Skip to content

Commit c1c9a14

Browse files
committed
microsoft-identity-broker: use hash from upstream Packages file
1 parent 47271dc commit c1c9a14

File tree

1 file changed

+6
-2
lines changed
  • pkgs/by-name/mi/microsoft-identity-broker

1 file changed

+6
-2
lines changed

pkgs/by-name/mi/microsoft-identity-broker/update.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)