tools/urls-https.sh: also change git:// and svn:// to https://
For git repos, using https:// reduces metadata leakage for more privacy, and increases the security a little bit. For SVN repos, using https:// is much more important since the repo format itself does not provide the same level of verification as git, hg, etc. do.
This commit is contained in:
parent
1e01b76d68
commit
c60e03d650
|
@ -7,14 +7,18 @@
|
||||||
# meta data leaks.
|
# meta data leaks.
|
||||||
|
|
||||||
for f in metadata/*.txt; do
|
for f in metadata/*.txt; do
|
||||||
printf `echo $f | cut -b1`
|
# this shows progress based on 1st letter of package name
|
||||||
|
printf `echo $f | cut -b10`
|
||||||
sed -i 's,http://dl.google.com,https://dl.google.com,g' $f
|
sed -i 's,http://dl.google.com,https://dl.google.com,g' $f
|
||||||
sed -i 's,http://pypi,https://pypi,g' $f
|
sed -i 's,http://pypi,https://pypi,g' $f
|
||||||
sed -i 's,http://code.google.com,https://code.google.com,g' $f
|
sed -i 's,http://code.google.com,https://code.google.com,g' $f
|
||||||
sed -i 's,http://github.com,https://github.com,g' $f
|
sed -i 's,http://github.com,https://github.com,g' $f
|
||||||
|
sed -i 's,git://github.com,https://github.com,g' $f
|
||||||
sed -i 's,http://\([^.]*\).googlecode.com/svn,https://\1.googlecode.com/svn,g' $f
|
sed -i 's,http://\([^.]*\).googlecode.com/svn,https://\1.googlecode.com/svn,g' $f
|
||||||
sed -i 's,http://svn.apache.org/repos,https://svn.apache.org/repos,g' $f
|
sed -i 's,http://svn.apache.org/repos,https://svn.apache.org/repos,g' $f
|
||||||
sed -i 's,http://svn.code.sf.net,https://svn.code.sf.net,g' $f
|
sed -i 's,http://svn.code.sf.net,https://svn.code.sf.net,g' $f
|
||||||
|
sed -i 's,svn://svn.code.sf.net,https://svn.code.sf.net,g' $f
|
||||||
sed -i 's,http://gitorious.org,https://gitorious.org,g' $f
|
sed -i 's,http://gitorious.org,https://gitorious.org,g' $f
|
||||||
|
sed -i 's,git://gitorious.org,https://gitorious.org,g' $f
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
|
|
Loading…
Reference in a new issue