Brad Bishop | c64341c | 2019-03-25 13:14:15 -0400 | [diff] [blame^] | 1 | From a7b76f783608033e449ba1e33d040c2b40c01a4d Mon Sep 17 00:00:00 2001 |
| 2 | From: Adam Williamson <awilliam@redhat.com> |
| 3 | Date: Wed, 17 Jan 2018 10:38:18 -0800 |
| 4 | Subject: [PATCH] Set _supported_filesystems in BlivetGUIAnaconda init |
| 5 | |
| 6 | BlivetGUIAnaconda subclasses BlivetGUI, but doesn't call the |
| 7 | parent class's __init__. c4b6e174 added supported_filesystems |
| 8 | to BlivetGUI and set _supported_filesystems for caching during |
| 9 | __init__, but this was not also added to BlivetGUIAnaconda, so |
| 10 | when anything tries to use the supported_filesystems property |
| 11 | of a BlivetGUIAnaconda instance, it will crash. This is causing |
| 12 | all attempts to use blivet-gui in anaconda to crash since 2.1.8 |
| 13 | landed in Rawhide. |
| 14 | |
| 15 | Upstream-Status: Backport [https://github.com/storaged-project/blivet-gui] |
| 16 | |
| 17 | Signed-off-by: Adam Williamson <awilliam@redhat.com> |
| 18 | Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> |
| 19 | --- |
| 20 | blivetgui/osinstall.py | 3 +++ |
| 21 | 1 file changed, 3 insertions(+) |
| 22 | |
| 23 | diff --git a/blivetgui/osinstall.py b/blivetgui/osinstall.py |
| 24 | index 21806ca..32ff66b 100644 |
| 25 | --- a/blivetgui/osinstall.py |
| 26 | +++ b/blivetgui/osinstall.py |
| 27 | @@ -94,6 +94,9 @@ class BlivetGUIAnaconda(BlivetGUI): |
| 28 | self.builder.set_translation_domain("blivet-gui") |
| 29 | self.builder.add_from_file(locate_ui_file("blivet-gui.ui")) |
| 30 | |
| 31 | + # supported filesystems |
| 32 | + self._supported_filesystems = [] |
| 33 | + |
| 34 | # CSS styles |
| 35 | css_provider = Gtk.CssProvider() |
| 36 | css_provider.load_from_path(locate_css_file("rectangle.css")) |
| 37 | -- |
| 38 | 2.20.1 |
| 39 | |