Fix tool installation and updates
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
Name: fedora-tools-settings
|
Name: fedora-tools-settings
|
||||||
Version: 0.1.0
|
Version: 0.1.0
|
||||||
Release: 5%{?dist}
|
Release: 7%{?dist}
|
||||||
Summary: Plasma System Settings module for Fedora Tools
|
Summary: Plasma System Settings module for Fedora Tools
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
@@ -59,6 +59,12 @@ install -Dpm 0644 %{SOURCE2} \
|
|||||||
%{_datadir}/polkit-1/actions/se.ajpanton.fedoratools.policy
|
%{_datadir}/polkit-1/actions/se.ajpanton.fedoratools.policy
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Sep 05 2026 fedora-tools contributors - 0.1.0-7
|
||||||
|
- Use the DNF upgrade transaction for installed tools
|
||||||
|
|
||||||
|
* Sat Sep 05 2026 fedora-tools contributors - 0.1.0-6
|
||||||
|
- Refresh privileged DNF metadata before installing a tool
|
||||||
|
|
||||||
* Sat Sep 05 2026 fedora-tools contributors - 0.1.0-5
|
* Sat Sep 05 2026 fedora-tools contributors - 0.1.0-5
|
||||||
- Fix button contrast and timing-value loading
|
- Fix button contrast and timing-value loading
|
||||||
- Separate touchpad anchor age from its stationary-time setting
|
- Separate touchpad anchor age from its stationary-time setting
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ bool isPublishedTool(const QString &packageName)
|
|||||||
process.start(QStringLiteral("/usr/bin/dnf5"),
|
process.start(QStringLiteral("/usr/bin/dnf5"),
|
||||||
{QStringLiteral("--repo=fedora-tools"),
|
{QStringLiteral("--repo=fedora-tools"),
|
||||||
QStringLiteral("-q"),
|
QStringLiteral("-q"),
|
||||||
|
QStringLiteral("--refresh"),
|
||||||
QStringLiteral("repoquery"),
|
QStringLiteral("repoquery"),
|
||||||
QStringLiteral("--available"),
|
QStringLiteral("--available"),
|
||||||
QStringLiteral("--whatprovides=fedora-tools-tool"),
|
QStringLiteral("--whatprovides=fedora-tools-tool"),
|
||||||
@@ -119,8 +120,11 @@ public Q_SLOTS:
|
|||||||
return reply;
|
return reply;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const QString command = isInstalledTool(packageName)
|
||||||
|
? QStringLiteral("upgrade")
|
||||||
|
: QStringLiteral("install");
|
||||||
return commandReply(QStringLiteral("/usr/bin/dnf5"),
|
return commandReply(QStringLiteral("/usr/bin/dnf5"),
|
||||||
{QStringLiteral("install"),
|
{command,
|
||||||
QStringLiteral("--assumeyes"),
|
QStringLiteral("--assumeyes"),
|
||||||
QStringLiteral("--from-repo=fedora-tools"),
|
QStringLiteral("--from-repo=fedora-tools"),
|
||||||
packageName});
|
packageName});
|
||||||
|
|||||||
Reference in New Issue
Block a user