Files are filtered to show only .iso files, but users may still enter various
paths in the entry. We shouldn't accept invalid paths entered that way.
Signed-off-by: Vratislav Podzimek <vpodzime(a)redhat.com>
---
pyanaconda/ui/gui/spokes/source.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py
index 9e05a2c..d226240 100644
--- a/pyanaconda/ui/gui/spokes/source.py
+++ b/pyanaconda/ui/gui/spokes/source.py
@@ -822,7 +822,7 @@ class SourceSpoke(NormalSpoke):
with enlightbox(self.window, dialog.window):
f = dialog.run(self._get_selected_partition())
- if f:
+ if f and f.endswith(".iso"):
self._currentIsoFile = f
button.set_label(os.path.basename(f))
button.set_use_underline(False)
--
1.8.4.2