Fix selective update from ArchUpdater
ArchUpdaterService: edit command builder ArchUpdaterPanel: fix error state display
This commit is contained in:
parent
abb5f385d9
commit
23a41ff3c6
1 changed files with 4 additions and 5 deletions
|
|
@ -464,6 +464,8 @@ Singleton {
|
|||
if (cachedAurHelper !== "") {
|
||||
const packageList = selectedPackages.join(" ")
|
||||
const command = generateUpdateCommand(cachedAurHelper + " -S " + packageList)
|
||||
Logger.log("ArchUpdater", "Selective update command:", cachedAurHelper + " -S " + packageList)
|
||||
Logger.log("ArchUpdater", "Selected packages:", selectedPackages)
|
||||
Quickshell.execDetached([terminal, "-e", "bash", "-c", command])
|
||||
} else {
|
||||
updateInProgress = false
|
||||
|
|
@ -481,12 +483,9 @@ Singleton {
|
|||
|
||||
// Reset update state (useful for manual recovery)
|
||||
function resetUpdateState() {
|
||||
// If update is in progress, mark it as failed first
|
||||
if (updateInProgress) {
|
||||
updateFailed = true
|
||||
}
|
||||
|
||||
// Clear all update states
|
||||
updateInProgress = false
|
||||
updateFailed = false
|
||||
lastUpdateError = ""
|
||||
checkFailed = false
|
||||
lastCheckError = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue