Blame SOURCES/0002-dnf-rpm-miscutils.py-fix-usage-of-_.patch
|
|
52b19a |
From 8522c4651678097157fd9f133a451c892021d30b Mon Sep 17 00:00:00 2001
|
|
|
0d2313 |
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
|
|
0d2313 |
Date: Tue, 4 May 2021 22:03:30 +0200
|
|
|
0d2313 |
Subject: [PATCH] dnf/rpm/miscutils.py: fix usage of _()
|
|
|
0d2313 |
|
|
|
0d2313 |
Specifically:
|
|
|
0d2313 |
- an import of _ was missing
|
|
|
0d2313 |
- _ was reused for a different purpose
|
|
|
0d2313 |
---
|
|
|
0d2313 |
dnf/rpm/miscutils.py | 3 ++-
|
|
|
0d2313 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
0d2313 |
|
|
|
0d2313 |
diff --git a/dnf/rpm/miscutils.py b/dnf/rpm/miscutils.py
|
|
|
52b19a |
index 235aaf28..7e33d4c4 100644
|
|
|
0d2313 |
--- a/dnf/rpm/miscutils.py
|
|
|
0d2313 |
+++ b/dnf/rpm/miscutils.py
|
|
|
0d2313 |
@@ -22,6 +22,7 @@ import subprocess
|
|
|
0d2313 |
import logging
|
|
|
0d2313 |
|
|
|
0d2313 |
from dnf.i18n import ucd
|
|
|
0d2313 |
+from dnf.i18n import _
|
|
|
0d2313 |
from shutil import which
|
|
|
0d2313 |
|
|
|
0d2313 |
|
|
|
0d2313 |
@@ -46,7 +47,7 @@ def _verifyPkgUsingRpmkeys(package, installroot):
|
|
|
0d2313 |
env={'LC_ALL': 'C'},
|
|
|
0d2313 |
stdout=subprocess.PIPE,
|
|
|
0d2313 |
cwd='/') as p:
|
|
|
0d2313 |
- data, _ = p.communicate()
|
|
|
0d2313 |
+ data, err = p.communicate()
|
|
|
0d2313 |
if p.returncode != 0 or data != (package.encode('ascii', 'strict') + b': digests signatures OK\n'):
|
|
|
0d2313 |
return 0
|
|
|
0d2313 |
else:
|
|
|
52b19a |
--
|
|
|
52b19a |
2.35.1
|
|
|
0d2313 |
|