File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
tools/package-management/nix-prefetch-scripts Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,11 @@ if [ -z "$final_path" ]; then
100100
101101 cd " $tmp_clone "
102102 pijul clone $clone_args " $remote " " $name "
103+ # State is a stable reference is a stable reference for the patchset that
104+ # doesn't depend on patch order. As a result, it will always be included.
105+ if [ -z " $state " ]; then
106+ state=" $( pijul log --repository " $tmp_clone /$name " --state --limit 1 | awk ' /^State:/ {printf $2}' ) "
107+ fi
103108 rm -rf " $tmp_clone /$name /.pijul"
104109
105110 hash=" $( nix-hash --type " $hash_algo " " $hash_format " " $tmp_clone /$name " ) "
125130if [ -n " $change " ]; then cat << EOF
126131 "change": $( json_escape " $change " ) ,
127132EOF
128- elif [ -n " $state " ]; then cat << EOF
129- "state": $( json_escape " $state " ) ,
130- EOF
131133fi ; cat << EOF
134+ "state": $( json_escape " $state " ) ,
132135 "path": "$final_path ",
133136 $( json_escape " $hash_algo " ) : $( json_escape " $hash " ) ,
134137 "hash": "$( nix-hash --to-sri --type " $hash_algo " " $hash " ) "
Original file line number Diff line number Diff line change 8383 subversion
8484 ] ;
8585 nix-prefetch-pijul = mkPrefetchScript "pijul" ../../../build-support/fetchpijul/nix-prefetch-pijul [
86+ gawk
8687 pijul
8788 cacert
8889 jq
You can’t perform that action at this time.
0 commit comments