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