Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Parameter "--only system" not working #817

Closed
dR3b opened this issue Dec 27, 2021 · 3 comments
Closed

Parameter "--only system" not working #817

dR3b opened this issue Dec 27, 2021 · 3 comments

Comments

@dR3b
Copy link

dR3b commented Dec 27, 2021

What did you expect to happen?
Only run the "yay" (pacman) part.

What actually happened?
Ignores the parameter "--only system". Runs "firmware" + "flatpak" and "system".

Additional details:

  • Which operating system or Linux distribution are you using?
    • Arch Linux
  • How did you install Topgrade?
    • yay -S topgrade (AUR)
~ » topgrade --only system --dry-run

―― 09:25:34 - System update ――――――――――――――――――――――――――――――――――――――――――――――――――――
Dry running: /usr/bin/yay --pacman pacman -Syu --devel

―― 09:25:34 - Flatpak User Packages ――――――――――――――――――――――――――――――――――――――――――――
Dry running: /usr/bin/flatpak update --user -y

―― 09:25:34 - Flatpak System Packages ――――――――――――――――――――――――――――――――――――――――――
Dry running: /usr/bin/flatpak update --system -y

―― 09:25:34 - Firmware upgrades ――――――――――――――――――――――――――――――――――――――――――――――――
Dry running: /usr/bin/fwupdmgr refresh
Dry running: /usr/bin/fwupdmgr get-updates

―― 09:25:34 - Summary ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
System update: OK
Flatpak: OK
Firmware upgrades: OK


~ » topgrade -v | vim -
2021-12-27T08:19:55.015Z DEBUG topgrade::config > Configuration at /home/blabla/.config/topgrade.toml
2021-12-27T08:19:55.015Z DEBUG topgrade::config > Loaded configuration: ConfigFile { pre_commands: None, post_commands: None, commands: None, git_repos: None, predefined_git_repos: None, disable: None, ignore_failures: None, remote_topgrades: None, remote_topgrade_path: None, ssh_arguments: None, git_arguments: None, tmux_arguments: None, set_title: None, assume_yes: None, yay_arguments: None, no_retry: None, run_in_tmux: None, cleanup: None, notify_each_step: None, accept_all_windows_updates: None, bashit_branch: None, only: Some([Firmware, Flatpak, System]), composer: None, brew: None, linux: None, git: None, windows: None, npm: None, vim: None, firmware: None, vagrant: None, flatpak: None }
2021-12-27T08:19:55.015Z DEBUG topgrade::utils > Detected "/usr/bin/notify-send" as "notify-send"
2021-12-27T08:19:55.015Z DEBUG topgrade > Version: 8.1.2
2021-12-27T08:19:55.015Z DEBUG topgrade > OS: x86_64-unknown-linux-gnu
2021-12-27T08:19:55.015Z DEBUG topgrade > Args { inner: ["topgrade", "-v"] }
2021-12-27T08:19:55.015Z DEBUG topgrade > Binary path: Ok("/usr/bin/topgrade")
2021-12-27T08:19:55.015Z DEBUG topgrade > Self Update: false
2021-12-27T08:19:55.015Z DEBUG topgrade::utils > Detected "/usr/bin/git" as "git"
2021-12-27T08:19:55.015Z DEBUG topgrade::utils > Cannot find "doas"
2021-12-27T08:19:55.015Z DEBUG topgrade::utils > Detected "/usr/bin/sudo" as "sudo"
2021-12-27T08:19:55.015Z DEBUG topgrade::utils > Cannot find "pwsh"
2021-12-27T08:19:55.015Z DEBUG topgrade::utils > Cannot find "powershell"
2021-12-27T08:19:55.015Z DEBUG topgrade::runner > Step "System update"
2021-12-27T08:19:55.015Z DEBUG topgrade::utils > Cannot find "powerpill"
2021-12-27T08:19:55.015Z DEBUG topgrade::utils > Cannot find "paru"
2021-12-27T08:19:55.015Z DEBUG topgrade::utils > Detected "/usr/bin/yay" as "yay"


~ » cat .config/topgrade.toml
only = ["firmware", "flatpak", "system"]

@r-darwish
Copy link
Owner

Your configuration file contains only = [Firmware, Flatpak, System]. A recent change has been made so that specifying the --only command line flag will not override the configuration file, but instead merge with it.

@dR3b
Copy link
Author

dR3b commented Jan 6, 2022

In other words, "--only" is absolutely useless!

@MCOfficer
Copy link
Contributor

ref #805, #806, 942702d

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants