crosvm.updateScript: update cargoHash

This commit is contained in:
Alyssa Ross 2024-10-21 20:52:04 +02:00
parent a3f9e97d78
commit 6db0f02efc

View File

@ -1,5 +1,5 @@
#! /usr/bin/env nix-shell #! /usr/bin/env nix-shell
#! nix-shell -p common-updater-scripts python3 #! nix-shell -p common-updater-scripts nix-update python3
#! nix-shell -i python #! nix-shell -i python
import csv import csv
@ -52,3 +52,6 @@ with urlopen(f'https://chromium.googlesource.com/chromiumos/platform/crosvm/+log
# Update the version, git revision, and hash in crosvm's default.nix. # Update the version, git revision, and hash in crosvm's default.nix.
subprocess.run(['update-source-version', 'crosvm', f'--rev={rev}', version]) subprocess.run(['update-source-version', 'crosvm', f'--rev={rev}', version])
# Update cargoHash.
subprocess.run(['nix-update', '--version=skip', 'crosvm'])