aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2019-08-19 21:39:32 +0200
committerPapoteur <papoteur@mageia.org>2019-08-19 21:39:32 +0200
commit3a3ca303e502e23e24a84a80edb6541c52601941 (patch)
treed3d09ea44c9182d76d223f8354ee58e2a202a1b4
parent2fd705f8417f95d55e5cbd7b728b51dba0ac1162 (diff)
downloadisodumper-3a3ca303e502e23e24a84a80edb6541c52601941.tar
isodumper-3a3ca303e502e23e24a84a80edb6541c52601941.tar.gz
isodumper-3a3ca303e502e23e24a84a80edb6541c52601941.tar.bz2
isodumper-3a3ca303e502e23e24a84a80edb6541c52601941.tar.xz
isodumper-3a3ca303e502e23e24a84a80edb6541c52601941.zip
Don't use message but logging when getting Mageia key, to avoid void messages in other parts1.14
-rwxr-xr-xbackend/raw_write.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/backend/raw_write.py b/backend/raw_write.py
index d369d82..699d1fc 100755
--- a/backend/raw_write.py
+++ b/backend/raw_write.py
@@ -155,7 +155,6 @@ class Dumper(object):
def _get_sum(self, source):
self.return_state = False
- self.return_message = ""
logging.debug("Starting getting sum")
# Check if the sum file has a valid signature
gpg = gnupg.GPG()
@@ -175,7 +174,7 @@ class Dumper(object):
self.signature_checked = False
except:
self.signature_found = False
- self.return_message = _("Signature file {} not found\n").format(sig_file)
+ logging.info(_("Signature file {} not found\n").format(sig_file))
try:
# Look for sum files in the same directory as source
with open(source+'.sha512','r') as fs:
@@ -183,9 +182,8 @@ class Dumper(object):
self.sum_check=(fs.readline()).split()[0]
self.sum_file = True
except:
- self.return_message = _("Sum SHA512 file {} not found\n").format(source+'.sha512')
+ logging.info(_("Sum SHA512 file {} not found\n").format(source+'.sha512'))
self.sum_file = False
- logging.info(self.return_message)
def _check_write(self, target, source):
logging.debug("Start checking")