From 745d88bf29d269dbbfd2cf86f2ee2ca1494073ce Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Fri, 30 Sep 2016 16:33:45 +0000 Subject: [PATCH] Implemeting hashing verification for solving the bug reported in: http://mutabit.com/repos.fossil/grafoscopio/info/05e57145296f9fa4 --- repository/Grafoscopio/ExternalApp.class.st | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/repository/Grafoscopio/ExternalApp.class.st b/repository/Grafoscopio/ExternalApp.class.st index 852d684..6c376af 100644 --- a/repository/Grafoscopio/ExternalApp.class.st +++ b/repository/Grafoscopio/ExternalApp.class.st @@ -41,6 +41,14 @@ ExternalApp class >> configurePandoc [ ] +{ #category : #installation } +ExternalApp class >> file: aFileName hasHash: aSHAString [ + + aSHAString = (SHA1 new hashMessage: aFileName asFileReference binaryReadStream contents) hex + ifFalse: [ ^ false ] + ifTrue: [ ^ true ]. +] + { #category : #installation } ExternalApp class >> installSQLite32Bits [ "I dowload the SQLite binary for the hosting platform, uncompress it and made it available as with the name