Эх сурвалжийг харах

Merge pull request #12079 from infosiftr/diff-pr-python

Rewrite instances of "pythonX.X", "pyX.X", etc in tarball listings
yosifkit 3 жил өмнө
parent
commit
3e7c420318
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 2 0
      diff-pr.sh

+ 2 - 0
diff-pr.sh

@@ -236,6 +236,8 @@ copy-tar() {
 								tar -tf "$dstG" \
 								tar -tf "$dstG" \
 									| grep -vE "$uninterestingTarballGrep" \
 									| grep -vE "$uninterestingTarballGrep" \
 									| sed -e 's!^[.]/!!' \
 									| sed -e 's!^[.]/!!' \
+										-r \
+										-e 's!([/.-]|^)((lib)?(c?python|py)-?)[0-9]+([.][0-9]+)?([/.-]|$)!\1\2XXX\6!g' \
 									| sort \
 									| sort \
 									> "$dstG  'tar -t'"
 									> "$dstG  'tar -t'"
 							fi
 							fi