summaryrefslogtreecommitdiffstats
path: root/generate-packages.sh
diff options
context:
space:
mode:
authorXin Li <delphij@google.com>2016-07-27 12:53:57 -0700
committerXin Li <delphij@google.com>2016-07-28 16:58:16 +0000
commit72a67b76c63d67fca25a5c33df28810ccdc4d6fb (patch)
treefbd59562dda718179dd0d6eb8bd6e0fa56830363 /generate-packages.sh
parenta477cb1ed90e03c03228c36c6941298217bd930d (diff)
downloaddevice_common-72a67b76c63d67fca25a5c33df28810ccdc4d6fb.tar.gz
device_common-72a67b76c63d67fca25a5c33df28810ccdc4d6fb.tar.bz2
device_common-72a67b76c63d67fca25a5c33df28810ccdc4d6fb.zip
Consistently use SHA256 for filenames (previously, MD5 and SHA1
were used). Change-Id: Id60b2076e3832a1ffe5df90183a2b0f0a2f5f64c (cherry picked from commit 9c1aec120b038d2b02cb5065bf869f65253a661f)
Diffstat (limited to 'generate-packages.sh')
-rwxr-xr-xgenerate-packages.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/generate-packages.sh b/generate-packages.sh
index 33b4254..45897ab 100755
--- a/generate-packages.sh
+++ b/generate-packages.sh
@@ -133,7 +133,7 @@ do
cat PART3 >> tmp/$SCRIPT || echo \ \ \ \ Error generating script
(cd tmp ; tar zc --owner=root --group=root vendor/ >> $SCRIPT || echo \ \ \ \ Error generating embedded tgz)
chmod a+x tmp/$SCRIPT || echo \ \ \ \ Error generating script
- ARCHIVE=$COMPANY-$DEVICE-$BUILD-$(md5sum < tmp/$SCRIPT | cut -b -8 | tr -d \\n).tgz
+ ARCHIVE=$COMPANY-$DEVICE-$BUILD-$(sha256sum < tmp/$SCRIPT | cut -b -8 | tr -d \\n).tgz
rm -f $ARCHIVE
echo \ \ Generating final archive
(cd tmp ; tar --owner=root --group=root -z -c -f ../$ARCHIVE $SCRIPT || echo \ \ \ \ Error archiving script)