Explorar o código

Add "sort -V" to our "bashbrew list" for deterministic ordering (which should lead to simpler diffs overall)

Tianon Gravi %!s(int64=8) %!d(string=hai) anos
pai
achega
1ca9e62e9c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      diff-pr.sh

+ 2 - 2
diff-pr.sh

@@ -136,7 +136,7 @@ copy-tar() {
 mkdir temp
 git -C temp init --quiet
 
-bashbrew list "${images[@]}" > temp/_bashbrew-list || :
+bashbrew list "${images[@]}" | sort -V > temp/_bashbrew-list || :
 for image in "${images[@]}"; do
 	if script="$(bashbrew cat -f "$template" "$image")"; then
 		mkdir tar
@@ -151,7 +151,7 @@ git -C temp commit --quiet --allow-empty -m 'initial' || :
 git -C oi checkout --quiet pull
 
 git -C temp rm --quiet -rf . || :
-bashbrew list "${images[@]}" > temp/_bashbrew-list || :
+bashbrew list "${images[@]}" | sort -V > temp/_bashbrew-list || :
 script="$(bashbrew cat -f "$template" "${images[@]}")"
 mkdir tar
 ( eval "$script" | tar -xiC tar )