[Yum-devel] [PATCH 4/9] Simplify strange looking, non-critical condition.
Zdeněk Pavlas
zpavlas at redhat.com
Mon Jun 27 16:01:10 UTC 2011
---
yum/__init__.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/yum/__init__.py b/yum/__init__.py
index 5b49dbe..cbb9055 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -1996,7 +1996,7 @@ class YumBase(depsolve.Depsolve):
continue
try:
- if i == 1 and not local_size and remote_size == po.size:
+ if len(remote_pkgs) == 1:
text = os.path.basename(po.relativepath)
else:
text = '(%s/%s): %s' % (i, len(remote_pkgs),
--
1.7.4.4
More information about the Yum-devel
mailing list