Re: [PATCH rhel6-branch] (port from master) rpm doesn't always give the callback a tuple (#605172).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> diff --git a/yuminstall.py b/yuminstall.py
> index 603e145..d420687 100644
> --- a/yuminstall.py
> +++ b/yuminstall.py
> @@ -234,6 +234,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 to this.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux