diff options
author | Papoteur <papoteur@mageia.org> | 2019-08-19 21:39:32 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2019-08-19 21:46:38 +0200 |
commit | 0f029c3eda001ec9e45cdcade0abdfb6fbc3d3b6 (patch) | |
tree | eac1a5b333389eac92df850e10b1f5a80672d598 | |
parent | bd0caa66d4f52f62a4f63b398dc047fa0183cc8e (diff) | |
download | isodumper-0f029c3eda001ec9e45cdcade0abdfb6fbc3d3b6.tar isodumper-0f029c3eda001ec9e45cdcade0abdfb6fbc3d3b6.tar.gz isodumper-0f029c3eda001ec9e45cdcade0abdfb6fbc3d3b6.tar.bz2 isodumper-0f029c3eda001ec9e45cdcade0abdfb6fbc3d3b6.tar.xz isodumper-0f029c3eda001ec9e45cdcade0abdfb6fbc3d3b6.zip |
Don't use message but logging when getting Mageia key, to avoid void messages in other parts
-rwxr-xr-x | backend/raw_write.py | 6 |
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") |