[Yum-devel] [PATCH 1/2] _depsolving_failed: prevent AttributeError. BZ 731717
Zdeněk Pavlas
zpavlas at redhat.com
Thu Aug 18 14:31:53 UTC 2011
This attribute is just a hack to send a flag from depsolver
to yummain, so I don't think we need a default in __init__.
---
yummain.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/yummain.py b/yummain.py
index 4b1112a..25cf067 100755
--- a/yummain.py
+++ b/yummain.py
@@ -200,7 +200,7 @@ def main(args):
prefix = _('Error: %s')
prefix2nd = (' ' * (utf8_width(prefix) - 2))
logger.critical(prefix, msg.replace('\n', '\n' + prefix2nd))
- if base._depsolving_failed:
+ if getattr(base, '_depsolving_failed', False):
if not base.conf.skip_broken:
verbose_logger.info(_(" You could try using --skip-broken to work around the problem"))
rpmdb_warn_checks()
--
1.7.4.4
More information about the Yum-devel
mailing list