[Groonga-mysql-commit] mroonga/homebrew [master] Use SHA256 instead of MD5

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Feb 13 22:40:10 JST 2013


Kouhei Sutou	2013-02-13 22:40:10 +0900 (Wed, 13 Feb 2013)

  New Revision: aeec6119ff6ce7c63de542ed80241df9cfef786c
  https://github.com/mroonga/homebrew/commit/aeec6119ff6ce7c63de542ed80241df9cfef786c

  Log:
    Use SHA256 instead of MD5
    
    Because MD5 support is deprecated:
    
      Warning: MD5 support is deprecated and will be removed in a future version.
      Please switch this formula to SHA1 or SHA256.

  Modified files:
    update.sh

  Modified: update.sh (+2 -2)
===================================================================
--- update.sh    2013-02-10 09:49:35 +0900 (cfa1a22)
+++ update.sh    2013-02-13 22:40:10 +0900 (770094a)
@@ -19,7 +19,7 @@ mkdir -p $tmp_dir
 chmod og-rwx $tmp_dir
 cd $tmp_dir
 curl -LO $mroonga_url
-md5=$(openssl dgst -md5 $base_name | cut -f 2 -d ' ')
+sha256=$(openssl dgst -sha256 $base_name | cut -f 2 -d ' ')
 cd -
 rm -rf $tmp_dir
 
@@ -27,5 +27,5 @@ sed -i'' \
   -e "s,'http://packages.*','$mroonga_url'," \
   mroonga.rb
 sed -i'' \
-  -e "s,md5 '.*',md5 '$md5'," \
+  -e "s,sha256 '.*',sha256 '$sha256'," \
   mroonga.rb
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index