mirror of
https://git.launchpad.net/~ubuntu-qt-code/+git/calamares-settings-ubuntu
synced 2025-06-02 05:11:34 +00:00
[pkgselectprocess] When running apt remove, use CPBE just in case.
This commit is contained in:
parent
6cb7d4dc52
commit
3288d57e56
@ -407,6 +407,8 @@ Calamares::JobResult PackageSelectProcess::exec()
|
|||||||
true);
|
true);
|
||||||
if (!cpbe->remove()) qDebug() << "Warning: failed to clean up /usr/libexec/checkpackage-backend";
|
if (!cpbe->remove()) qDebug() << "Warning: failed to clean up /usr/libexec/checkpackage-backend";
|
||||||
if (!installResult) return std::move(installResult);
|
if (!installResult) return std::move(installResult);
|
||||||
|
} else {
|
||||||
|
if (!cpbe->remove()) qDebug() << "Warning: failed to clean up /usr/libexec/checkpackage-backend";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else qDebug() << "No packages to install.";
|
else qDebug() << "No packages to install.";
|
||||||
@ -433,16 +435,14 @@ Calamares::JobResult PackageSelectProcess::exec()
|
|||||||
const double removeEnd = removeStart + 0.2 * aptRange;
|
const double removeEnd = removeStart + 0.2 * aptRange;
|
||||||
|
|
||||||
if (!removeDebPackages.isEmpty()) {
|
if (!removeDebPackages.isEmpty()) {
|
||||||
const QString removeCommand = QString("DEBIAN_FRONTEND=noninteractive apt-get -y --purge remove %1")
|
const QString removeCommand = QString("DEBIAN_FRONTEND=noninteractive apt-get -y --purge remove $(/usr/libexec/checkpackage-backend %1);")
|
||||||
.arg(removeDebPackages.join(" "));
|
.arg(removeDebPackages.join(" "));
|
||||||
Calamares::JobResult removeResult = runAptCommand(removeCommand,
|
Calamares::JobResult removeResult = runAptCommand(removeCommand,
|
||||||
rootMountPoint,
|
rootMountPoint,
|
||||||
removeStart,
|
removeStart,
|
||||||
removeEnd,
|
removeEnd,
|
||||||
true);
|
true);
|
||||||
if (!removeResult) { // Using operator bool() to check for errors
|
if (!removeResult) return std::move(removeResult);
|
||||||
return std::move(removeResult); // Move to avoid copy
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const double autoremoveStart = removeEnd;
|
const double autoremoveStart = removeEnd;
|
||||||
|
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -14,6 +14,7 @@ calamares-settings-ubuntu (1:25.04.26) UNRELEASED; urgency=medium
|
|||||||
on these items. If you are a downstream, please be careful.
|
on these items. If you are a downstream, please be careful.
|
||||||
* [pkgselectprocess] Ensure hasInternet is available as a local variable, so
|
* [pkgselectprocess] Ensure hasInternet is available as a local variable, so
|
||||||
we can use it.
|
we can use it.
|
||||||
|
* [pkgselectprocess] When running apt remove, use CPBE just in case.
|
||||||
|
|
||||||
-- Simon Quigley <tsimonq2@ubuntu.com> Tue, 15 Apr 2025 22:15:17 -0500
|
-- Simon Quigley <tsimonq2@ubuntu.com> Tue, 15 Apr 2025 22:15:17 -0500
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user