mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-26 19:47:17 +00:00
python3-blivetgui: fix blivet-gui broken
In target installer anaconda 30, when they try to go to blivet-gui,
anaconda.log shows a traceback:
23:02:49,842 INF threading: Thread Done: AnaExecuteStorageThread (140274838624000)
23:02:49,844 DBG exception: running handleException
23:02:49,845 CRT exception: Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/blivetgui/list_devices.py", line 165, in on_disk_selection_changed
selection.select_iter(self.last_iter)
TypeError: Argument 1 does not allow None as a value
23:02:49,845 DBG exception: Gtk running, queuing exception handler to the main loop
23:02:49,858 DBG ui.common: Entered spoke: BlivetGuiSpoke
23:02:49,858 DBG exception: running handleException
23:02:49,859 CRT exception: Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/blivetgui/list_devices.py", line 165, in on_disk_selection_changed
selection.select_iter(self.last_iter)
TypeError: Argument 1 does not allow None as a value
Backport a patch from upstream could fix the issue
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
|||||||
|
From 4d0f9f961704bc1dd83fdf6808fb6ab91dc6a768 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Vojtech Trefny <vtrefny@redhat.com>
|
||||||
|
Date: Thu, 13 Dec 2018 13:39:03 +0100
|
||||||
|
Subject: [PATCH] Fix return type of BlivetUtils.get_disks (#1658893)
|
||||||
|
|
||||||
|
This must be a list, not a generator, because we are iterating
|
||||||
|
over it multiple times in some cases.
|
||||||
|
|
||||||
|
Upstream-Status: Backport[git://github.com/rhinstaller/blivet-gui]
|
||||||
|
|
||||||
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||||
|
|
||||||
|
---
|
||||||
|
blivetgui/blivet_utils.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/blivetgui/blivet_utils.py b/blivetgui/blivet_utils.py
|
||||||
|
index e2bd802..ddb04fc 100644
|
||||||
|
--- a/blivetgui/blivet_utils.py
|
||||||
|
+++ b/blivetgui/blivet_utils.py
|
||||||
|
@@ -204,7 +204,7 @@ class BlivetUtils(object):
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
- return (device for device in self.storage.disks if device.type != "mdarray")
|
||||||
|
+ return [device for device in self.storage.disks if device.type != "mdarray"]
|
||||||
|
|
||||||
|
def get_group_devices(self):
|
||||||
|
""" Return list of LVM2 Volume Group devices
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
||||||
@@ -10,6 +10,7 @@ B = "${S}"
|
|||||||
|
|
||||||
SRCREV = "67ec0b7a0e065ba24ab87963409bfb21b2aac6dd"
|
SRCREV = "67ec0b7a0e065ba24ab87963409bfb21b2aac6dd"
|
||||||
SRC_URI = "git://github.com/rhinstaller/blivet-gui;branch=master \
|
SRC_URI = "git://github.com/rhinstaller/blivet-gui;branch=master \
|
||||||
|
file://0001-Fix-return-type-of-BlivetUtils.get_disks-1658893.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
inherit distro_features_check
|
inherit distro_features_check
|
||||||
|
|||||||
Reference in New Issue
Block a user