Fix apt install functionality in pkgselectprocess.

ubuntu/plucky
Simon Quigley 2 months ago
parent 0908c29cfb
commit 0fc038aea9

@ -289,10 +289,10 @@ Calamares::JobResult PackageSelectProcess::exec()
qDebug() << "Progress range: installStart:" << installStart << "installEnd:" << installEnd;
if (!debPackages.isEmpty()) {
const QString packageList = debPackages.join(" -e ");
const QString packageList = debPackages.join(" ");
const QString installCommand = QString(
"DEBIAN_FRONTEND=noninteractive apt-get -y install $(apt-cache --no-generate pkgnames %1 | grep -Fx -e %2)"
).arg(debPackages.join(" ")).arg(packageList);
"DEBIAN_FRONTEND=noninteractive apt-get -y install $(for pkg in %1; do dpkg -s \"$pkg\" &>/dev/null || echo -n \"$pkg \"; done)"
).arg(packageList);
Calamares::JobResult installResult = runAptCommand(installCommand,
rootMountPoint,

1
debian/changelog vendored

@ -2,6 +2,7 @@ calamares-settings-ubuntu (1:25.04.8) UNRELEASED; urgency=medium
* Add new global storage value for stacked squashfses and adjust config.
* Switch Lubuntu to dracut.
* Fix apt install functionality in pkgselectprocess.
-- Simon Quigley <tsimonq2@ubuntu.com> Wed, 20 Nov 2024 23:58:39 -0600

Loading…
Cancel
Save