Blame SOURCES/0002-dnfrpmmiscutilspy-fix-usage-of-_.patch
|
|
0d2313 |
From 8823feb5f42f8c579fdab80d9e22112b88d0ad2b 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
|
|
|
0d2313 |
index 235aaf2..7e33d4c 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:
|
|
|
0d2313 |
--
|
|
|
0d2313 |
libgit2 1.0.1
|
|
|
0d2313 |
|