]> git.proxmox.com Git - rustc.git/blobdiff - debian/check-orig-suspicious.sh
Update files for importing 1.46.0~beta.2
[rustc.git] / debian / check-orig-suspicious.sh
index b0bf28cce0964f0e47e6213a3562457dec6a08f7..444c3fcc56621dcb6c2f6c0a64eb9d73ce3a6452 100755 (executable)
@@ -9,6 +9,11 @@ SUS_WHITELIST=$(find "${PWD}/debian" -name upstream-tarball-unsuspicious.txt -ty
 rm -rf rustc-${ver/*~*/beta}-src/
 tar xf ../rustc_$ver+dfsg1.orig.tar.xz && cd rustc-${ver/*~*/beta}-src/
 
+# TODO: remove this code snippet after it gets into our cargo
+# Strip comments & blank lines before testing rust source code -
+# some authors like to write really long comments
+find . -name '*.rs' -execdir sed -i -e '\,^\s*//,d' -e '/^\s*$/d' '{}' \;
+
 /usr/share/cargo/scripts/audit-vendor-source \
   "$SUS_WHITELIST" \
   "Files-Excluded: in debian/copyright and run a repack."