-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 24 Feb 2010, Chris Lumens wrote:
On erasure callbacks, we get just a string that's the name of the package
in question instead of the usual tuple. We're most likely to hit this
during upgrades, after packages have been installed.
---
yuminstall.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/yuminstall.py b/yuminstall.py
index 0d773f7..2ada820 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -233,6 +233,9 @@ class AnacondaCallback:
elif what in (rpm.RPMCALLBACK_CPIO_ERROR,
rpm.RPMCALLBACK_UNPACK_ERROR,
rpm.RPMCALLBACK_SCRIPT_ERROR):
+ if not isinstance(h, types.TupleType):
+ h = (h, None)
+
(hdr, rpmloc) = h
# Script errors store whether or not they're fatal in "total". So,
Ack.
- --
David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkuFuN8ACgkQ5hsjjIy1Vkl3kgCfUEiUDQhUFNO4HopqNay0m+BG
zgkAmQHJ81LfxOGz4E0NvqhiQ7n2KxIT
=YDYa
-----END PGP SIGNATURE-----
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list