[neon/extras/kpmcore/Neon/release] debian/patches: fix_calamares_crash.diff

Carlos De Maine null at kde.org
Sun May 4 15:08:19 BST 2025


Git commit ea9ea5a814058eafbc551206baad950b71ff8fc6 by Carlos De Maine.
Committed on 04/05/2025 at 14:08.
Pushed by carlosdem into branch 'Neon/release'.

fix_calamares_crash.diff

A  +13   -0    debian/patches/fix_calamares_crash.diff
A  +1    -0    debian/patches/series

https://invent.kde.org/neon/extras/kpmcore/-/commit/ea9ea5a814058eafbc551206baad950b71ff8fc6

diff --git a/debian/patches/fix_calamares_crash.diff b/debian/patches/fix_calamares_crash.diff
new file mode 100644
index 0000000..2a41567
--- /dev/null
+++ b/debian/patches/fix_calamares_crash.diff
@@ -0,0 +1,13 @@
+diff --git a/src/plugins/sfdisk/sfdiskbackend.cpp b/src/plugins/sfdisk/sfdiskbackend.cpp
+index e47c4e58b9fe2270aeedac34c64c8e0317e14032..447c096bb69e111cdbb6169f38799cb782e78392 100644
+--- a/src/plugins/sfdisk/sfdiskbackend.cpp
++++ b/src/plugins/sfdisk/sfdiskbackend.cpp
+@@ -515,6 +515,8 @@ bool SfdiskBackend::updateDevicePartitionTable(Device &d, const QJsonObject &jso
+ */
+ void SfdiskBackend::readSectorsUsed(const Device& d, Partition& p, const QString& mountPoint)
+ {
++    if (p.isFileSystemNullptr())
++        return;
+     if (!mountPoint.isEmpty() && p.fileSystem().type() != FileSystem::Type::LinuxSwap && p.fileSystem().type() != FileSystem::Type::Lvm2_PV) {
+         const QStorageInfo storage = QStorageInfo(mountPoint);
+         if (p.isMounted() && storage.isValid())
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f18854d
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix_calamares_crash.diff


More information about the Neon-commits mailing list