Commit Graph

230 Commits

Author SHA1 Message Date
Roey Darwish Dror
5ecf8300ef Execute-elevated (#892)
* Introduce the execute elevated method (fix #885)

* fmt

* Fix nix with doas

* Bad import
2022-04-09 16:29:55 +03:00
Roey Darwish Dror
5de33a91d1 Detect fisher in a custom path (fix #878) 2022-04-09 15:35:02 +03:00
Roey Darwish Dror
5166f651ea Don't fail if there are no Github extensions (fix #877) 2022-03-29 03:43:13 +03:00
Roey Darwish Dror
8dd2eb7532 Remove silnite (fix #873) 2022-03-29 03:18:03 +03:00
Roey Darwish Dror
cea32020ce Disable winget by default 2022-03-05 21:58:36 +02:00
Roey Darwish Dror
4230388017 Support multiple WSL distributions (fix #855) (#858) 2022-02-13 08:08:18 +02:00
Leonardo Eugênio
54e3d87b23 Support yes flag for Void (#851) 2022-02-06 23:47:52 +02:00
Roey Darwish Dror
d43b6293b6 Make clippy happy 2022-02-06 20:49:29 +02:00
Funky185540
d15bc32614 linux: Ignore "--yes" for rpm-ostree upgrade (#849)
Previously when performing the "system" upgrade step, rpm-ostree would
be passed a "--yes" argument when it was configured in topgrade.
However, this is not an option available for rpm-ostree, so it would
cause an error and abort execution of the updates.
2022-02-01 12:46:27 +02:00
Roey Darwish Dror
5e7453b387 Make ConfigUpdate an individual step (fix #843) 2022-01-26 22:52:52 +02:00
Roey Darwish Dror
5f4dd33f1f Don't run pacdiff when --yes is specified (fix #846) 2022-01-26 22:51:00 +02:00
Macavirus
6b09212814 Fix typo (#845) 2022-01-26 22:21:35 +02:00
Roey Darwish Dror
63f4e01650 Preserve DIFFPROG when running Pacdiff in sudo (fix #842) 2022-01-24 20:32:48 +02:00
Roey Darwish Dror
b34cc1b0f8 Add a seperator to pacstall (fix #826) 2022-01-06 21:41:36 +02:00
Roey Darwish Dror
ff9072f7b1 Don't panic when cannot detect the arch package manager (fix #818) 2022-01-06 06:27:44 +02:00
Aroun
fb0d726703 fix: pacstall should run without yay arguments (#824)
fix: pacstall should run without yay arguments

Co-authored-by: Zahrun <Zahrun@github.com>
2022-01-06 05:44:37 +02:00
Funky185540
81fb880155 Linux: System: Fix rpm-ostree detection (#816)
On a rpm-ostree based system, topgrade would previously fail to detect
the rpm-ostree executable and fall back to yum instead, which isn't
available. This was caused by constructing a Path instance with
`Path::new`, rather than querying the underlying OS for a path to the
rpm-ostree executable.

Make the `system` update step use `which` to determine if an executable
called "rpm-ostree" is available on the system and get the correct path
to the executable.
2021-12-26 11:42:09 +02:00
Roey Darwish Dror
3f12cf11f6 Unify pacdiff and etc-update 2021-12-18 20:20:00 +02:00
Roey Darwish Dror
2c7dfb66c5 Remove obsolete struct (fix #812) 2021-12-18 20:14:00 +02:00
Roey Darwish Dror
e769baaaca pacdiff needs vim 2021-12-15 21:49:03 +02:00
Laurent le Beau-Martin
1c24014178 Fix build for Android (#809) 2021-12-13 23:04:21 +02:00
Roey Darwish Dror
4716cb7c94 Add Bedrock Linux support (fix #745) (#747)
* Bedrock Linux (fix #745)

* Add more distributions

* fix

* fix

* Fix

* Merge

* Move pacnew to the correct location

* Version bump

* Correct spelling for GNOME Shell extensions update (#778)

* fix gnome shell extensions update object path (#788)

* config: ArchPackageManager should be snake_case (#784)

* config: ArchPackageManager should be snake_case

* Remove unnecessary strum macro

* Add arch_package_manager to config.example.toml

* Add release pipeline

* Run GNOME update only when using GNOME

* Delete travis file and appveyor

* Bump

* Support rust 1.51.0 (#789)

* Cross compilation

* Bump

* fix: GNOME detection for customized version (#790)

Signed-off-by: Noel Georgi <git@frezbo.dev>

* Add a flag to disable showing Arch Linux news (fix #786)

* Bump

* Update pacstall (fix #769)

* Add an option to force vim plug update (#795)

* Add an option to force vim plug update (fix #751)

* Rustfmt

* Update src/config.rs

Co-authored-by: M*C*O <mcofficer@gmx.de>

Co-authored-by: M*C*O <mcofficer@gmx.de>

* Add new step pacdiff (#796)

* Add Support for Spicetify (#798)

* Look for ~/.config/emacs directory in Windows (fix #766)

* Pass --force to doom when -y is set (fix #799)

* Implement cleanup for flatpak (#801)

* Cleanup flatpak

* Fix compile error

* Make sure we only move our values at the very end

* Access config.cleanup() through ExecutionContext

* Improve man page (#803)

Wordings & argument format

* Avoid running remote topgrade on the current host (fix #804) (#807)

* Merge the command line and the configuration flags of --only and --disable (fix #805) (#806)

* Merge the command line and the configuration flags of --only and --disable (fix #805)

* Fix

* Fix rust requirement in the readme

* Selective yes (fix #802) (#808)

* Selective yes flag (fix #802)

* Selective yes flag (fix #802)

* selective yes

* MacOS

* Fix bedrock detection

* Bedrock fixes

* format

* Fedora fixes

Co-authored-by: Björn Daase <bjoern.daase@gmail.com>
Co-authored-by: modularTaco <37046961+modularTaco@users.noreply.github.com>
Co-authored-by: M*C*O <mcofficer@gmx.de>
Co-authored-by: Noel Georgi <git@frezbo.dev>
Co-authored-by: Manuel Hässig <mhaessig@users.noreply.github.com>
Co-authored-by: Janek <27jf@pm.me>
2021-12-09 15:16:42 +02:00
Roey Darwish Dror
ab3ff0ecae Selective yes (fix #802) (#808)
* Selective yes flag (fix #802)

* Selective yes flag (fix #802)

* selective yes

* MacOS
2021-12-06 14:44:20 +02:00
M*C*O
8fb8927fea Implement cleanup for flatpak (#801)
* Cleanup flatpak

* Fix compile error

* Make sure we only move our values at the very end

* Access config.cleanup() through ExecutionContext
2021-11-20 15:32:20 +02:00
Manuel Hässig
f70305adcb Add new step pacdiff (#796) 2021-11-06 20:55:38 +02:00
Roey Darwish Dror
d002b1ab1a Update pacstall (fix #769) 2021-11-01 09:11:01 +02:00
Roey Darwish Dror
0467bd4dde Add a flag to disable showing Arch Linux news (fix #786) 2021-10-29 09:53:30 +03:00
Noel Georgi
f235c56b82 fix: GNOME detection for customized version (#790)
Signed-off-by: Noel Georgi <git@frezbo.dev>
2021-10-29 09:47:43 +03:00
Roey Darwish Dror
539b267eef Support rust 1.51.0 (#789) 2021-10-28 22:05:35 +03:00
Roey Darwish Dror
850dbb4037 Run GNOME update only when using GNOME 2021-10-28 21:24:14 +03:00
modularTaco
338c9f431d fix gnome shell extensions update object path (#788) 2021-10-28 19:45:53 +03:00
Björn Daase
bff66f1212 Correct spelling for GNOME Shell extensions update (#778) 2021-10-26 09:29:55 +03:00
Roey Darwish Dror
897b3094d8 Move pacnew to the correct location 2021-10-25 22:53:53 +03:00
Roey Darwish Dror
fb18af12ac Aur helper (#776)
* Arch Refactor

* Clippy
2021-10-25 22:03:57 +03:00
Roey Darwish Dror
9023942a85 Pacstall (fix #764) (#769) 2021-10-25 21:33:58 +03:00
Roey Darwish Dror
b6c468c6fb Upgrade gnome shell extensions (fix #755) (#768) 2021-10-25 21:31:13 +03:00
Roey Darwish Dror
fab8f1a9f1 Support PureOS (fix #753) (#771) 2021-10-15 06:15:38 +03:00
Sean McAvoy
84ad4dbeb4 add id_like for alpine (#767)
tested to work with:
postmarketOS: https://postmarketos.org
should work with:
Adelielinux Linux: https://www.adelielinux.org
2021-10-14 12:23:39 +03:00
Marcin Puc
1478d079ca Add minor refactorings (#754) 2021-09-04 21:01:19 +03:00
Roey Darwish Dror
7db0c03621 Refactor Linux 2021-09-02 17:09:48 +00:00
Laurent le Beau-Martin
ebb66e26a4 Add Android support (#749) 2021-09-02 19:54:31 +03:00
Roey Darwish Dror
2a17c553ac clippy 2021-09-02 13:04:30 +00:00
Roey Darwish Dror
611f69646e Support pkgin (fix #748) 2021-09-02 06:14:56 +03:00
Roey Darwish Dror
d5d5abaac4 Use sudo for flatpak if connecting from SSH (fix #740) 2021-07-06 09:32:14 +03:00
Roey Darwish Dror
93881b5cca Support Alpine Linux (fix #736( 2021-07-06 09:24:42 +03:00
Eberhard Beilharz
2cd1ea6845 Allow to run flatpak update with sudo (#738)
This change adds the option `flatpak.use_sudo` that allows to update
the system-wide installation with sudo. When set to `true` the
system-wide installation will be updated with sudo. If set to `false`
(default) the update will be run as regular user.

This solves the problem where running `flatpak update` on a remote
system fails if run as regular user.

Fixes #737.
2021-06-30 13:37:41 +03:00
Eberhard Beilharz
74292ef6d2 Make firmware upgrade configurable (#739)
This change adds an option, firmware.upgrade, that if set to `false`
only checks for and displays available firmware updates. If set to `true`
(default) the user is offered to run the firmware upgrade.
2021-06-30 12:15:18 +03:00
Roey Darwish Dror
9205649a5f Support winget (fix #721) (#722) 2021-06-03 13:08:17 +03:00
Roey Darwish Dror
cdc7c39d02 Add silnite support (fix #701) (#714) 2021-05-29 07:54:15 +03:00
Kevin K
2bed7edaba makes rpm-ostree configurable (#712)
This commit makes it possible to *not* to use `rpm-ostree` even on
systems where it is detected.

This commit is fully backwards compatible with previous releases, and
without changing the config file all previous behaviors are the exact
same.

This commit adds the `rpm_ostree` field in the `[linux]` table of the
configuration, and defaults to `true`. This means Topgrade will first
check if `/usr/bin/rpm-ostree` exists, and only if so then check if the
user does not want to use `rpm-ostree` via the configuration. If the
user *does not* want to use `rpm-ostree`, then normal operation
continues checking for DNF or YUM.

This makes it possible for people where `rpm-ostree` is installed, but
where the system is not an `ostree` based distribtuion. This happens
when people are using things like `osbuild-composer` to build images,
or Cockpit with the Compose feature enabled (which uses
`osbuild-composer` internally).

An alternative to this commit would be to make the config field a
negative such as `no_rpm_ostree`, however that goes against the norm in
other fields.

Closes #710
2021-05-13 21:57:29 +03:00