diff options
author | Papoteur <papoteur@mageialinux-online.org> | 2016-03-13 20:43:12 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageialinux-online.org> | 2016-03-13 20:43:12 +0100 |
commit | c2fe07a8f6303f27852ea14d821437fd697cfa29 (patch) | |
tree | eeb5efa13b3379fdc125829c40940f51a530bcfa | |
parent | 185281a6d32425045f58ed510a4cc3a814d03b10 (diff) | |
download | MageiaSync-c2fe07a8f6303f27852ea14d821437fd697cfa29.tar MageiaSync-c2fe07a8f6303f27852ea14d821437fd697cfa29.tar.gz MageiaSync-c2fe07a8f6303f27852ea14d821437fd697cfa29.tar.bz2 MageiaSync-c2fe07a8f6303f27852ea14d821437fd697cfa29.tar.xz MageiaSync-c2fe07a8f6303f27852ea14d821437fd697cfa29.zip |
Change SHA1 check with SHA512
-rw-r--r-- | mageiaSync/mageiaSyncExt.py | 6 | ||||
-rw-r--r-- | mageiaSync/mageiasync.py | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/mageiaSync/mageiaSyncExt.py b/mageiaSync/mageiaSyncExt.py index b3a3e3b..c264200 100644 --- a/mageiaSync/mageiaSyncExt.py +++ b/mageiaSync/mageiaSyncExt.py @@ -22,6 +22,8 @@ class checkThread(QThread): def processSum(self,sumType): import hashlib + if sumType=='sha512': + hashfunc = hashlib.sha512() if sumType=='sha1': hashfunc = hashlib.sha1() if sumType=='md5': @@ -85,8 +87,8 @@ class checkThread(QThread): self.md5Signal.emit(self.isoIndex+128*checkMd5) signal=300+self.isoIndex self.checkStartSignal.emit(signal) - checkSha1=self.processSum('sha1') - self.sha1Signal.emit(self.isoIndex+128*checkSha1) + checkSha=self.processSum('sha512') + self.sha1Signal.emit(self.isoIndex+128*checkSha) # signal=300+self.isoIndex # self.checkStartSignal.emit(signal) # checkDate=self.processDate() diff --git a/mageiaSync/mageiasync.py b/mageiaSync/mageiasync.py index 84d5e85..7912722 100644 --- a/mageiaSync/mageiasync.py +++ b/mageiaSync/mageiasync.py @@ -119,7 +119,7 @@ class IsosViewer(QMainWindow, mageiaSyncUI.Ui_mainWindow): # Model for local list view in a table self.model = QStandardItemModel(0, 5, self) - headers=[self.tr("Directory"),self.tr("Name"),self.tr("Size"),"SHA1","MD5"] + headers=[self.tr("Directory"),self.tr("Name"),self.tr("Size"),"SHA512","MD5"] i=0 for label in headers: self.model.setHeaderData(i, QtCore.Qt.Horizontal,label ) |