[PATCH] empty versions shouldn't traceback (#843346)
Brian C. Lane
bcl at redhat.com
Mon Jul 30 23:07:13 UTC 2012
On Mon, Jul 30, 2012 at 03:27:25PM -0700, Jesse Keating wrote:
> This is related to commit 43715e5db831893edcfc2b289a1e575b0ba19403
> ---
> pyanaconda/installclasses/rhel.py | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/pyanaconda/installclasses/rhel.py b/pyanaconda/installclasses/rhel.py
> index 036d84b..c0d8b06 100644
> --- a/pyanaconda/installclasses/rhel.py
> +++ b/pyanaconda/installclasses/rhel.py
> @@ -104,6 +104,9 @@ class InstallClass(BaseInstallClass):
> return False
>
> def versionMatches(self, oldver):
> + if oldver is None:
> + return False
> +
> oldMajor = oldver.split(".")[0]
> newMajor = productVersion.split(".")[0]
>
> --
> 1.7.11.2
Ack :)
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20120730/5a10a2a5/attachment-0001.sig>
More information about the anaconda-patches
mailing list