[neon/forks/ubuntu-release-upgrader/Neon/unstable_jammy] DistUpgrade: fix running kde ui

Harald Sitter null at kde.org
Sun May 1 01:28:46 BST 2022


Git commit 925cd02b4d5b5d11c9cfbf38b4fd09851d3a4af6 by Harald Sitter.
Committed on 01/05/2022 at 00:28.
Pushed by sitter into branch 'Neon/unstable_jammy'.

fix running kde ui

atexit is no longer always available. import explicitly like in gtk ui

M  +2    -1    DistUpgrade/DistUpgradeViewKDE.py

https://invent.kde.org/neon/forks/ubuntu-release-upgrader/commit/925cd02b4d5b5d11c9cfbf38b4fd09851d3a4af6

diff --git a/DistUpgrade/DistUpgradeViewKDE.py b/DistUpgrade/DistUpgradeViewKDE.py
index 69661367..e98c54b9 100644
--- a/DistUpgrade/DistUpgradeViewKDE.py
+++ b/DistUpgrade/DistUpgradeViewKDE.py
@@ -1,7 +1,7 @@
 # DistUpgradeViewKDE.py
 #
 #  Copyright (c) 2007 Canonical Ltd
-#  Copyright (c) 2014-2018 Harald Sitter <sitter at kde.org>
+#  Copyright (c) 2014-2022 Harald Sitter <sitter at kde.org>
 #
 #  Author: Jonathan Riddell <jriddell at ubuntu.com>
 #
@@ -30,6 +30,7 @@ try:
     from .utils import get_dist
     if get_dist() == 'trusty':
         raise ImportError
+    import atexit
 
     from PyQt5 import uic
     from PyQt5.QtCore import Qt, QLocale, QTranslator, PYQT_VERSION, QTimer


More information about the Neon-commits mailing list