aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mageiaSync/mageiaSyncExt.py6
-rw-r--r--mageiaSync/mageiasync.py2
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 )