I-Dream-in-Code / kde-arch-update-plasmoid

30 stars 9 forks source link

Add option to change commands #2

Closed LittleHuba closed 6 years ago

LittleHuba commented 6 years ago

Please add an option where you can change the commands that are run when checking for updates and upgrading your system.

I-Dream-in-Code commented 6 years ago

What type of commands?

I'm not including all of them.

Why should I add commands?

It does what it's supposed to do just fine

LittleHuba commented 6 years ago

For example to support pacaur or yaourt and provide support for the AUR-Repositories? You could just provide textinputs where one can edit the commands. The Gnome plugin does just that.

LittleHuba commented 6 years ago

Here is the repo of the Gnome plugin I mentioned above. The link directs you to the wiki page of the repo where the commands are explained.

https://github.com/RaphaelRochet/arch-update/wiki

I-Dream-in-Code commented 6 years ago

See issue #1 for yaourt and aur support

I'll look into gnome

I-Dream-in-Code commented 6 years ago

The only viable option is yaourt only

Should it be a setting or default aur support without an option to do non aur?

LittleHuba commented 6 years ago

Why would pacaur be not an option?

I-Dream-in-Code commented 6 years ago

Like I said before

What I don't want is everyone suggesting their favorite aur helper of choice.

I need to have it return checkupdates style format that shows the package name, current version and new version

yaourt -Qua does that for sure

LittleHuba commented 6 years ago

You could add a dependency to checkupdates-aur which provides the same service as checkupdates but for the AUR-Repositories. Then it would only be necessary to provide a textinput for the command to upgrade.

And to get back to your question about the additional option: More options for the user do not hurt, so go along with providing the option.

I-Dream-in-Code commented 6 years ago

Duplicate of #1

I-Dream-in-Code commented 6 years ago

That is a good alternative it seems but it's having issues building on my machine I'll look into it

I-Dream-in-Code commented 6 years ago

I got it to build but had to remove a check in the PKGBUILD it looks promising thank you for finding that package just what I need

ghost commented 6 years ago

As for the main topic I think update command can be changed to plain pacman -Syu (without --noconfirm and --force arguments) when Konsole output is chosen which makes more sense to be interactive (albeit those arguments are quite dangerous anyway).

I-Dream-in-Code commented 6 years ago

@fancytenseletters updated

I made it multithreaded so it won't freeze the UI when you run checkupdates as well

I-Dream-in-Code commented 6 years ago

@LittleHuba Sorry it's taken so long. Had to finish school.

I looked at GNOME version and his just parses text. The problem I feel is that there's no way to run purely in the background. it's just creating a terminal window and updates.

I'm working on a version that upgrades in the background and auto-selects the first alphabetical AUR helper.

selecting and running the aur helper in konsole works just fine.

right now there's just making it run in the background that's the big struggle.

I'll have a lot more time now school's done

LittleHuba commented 6 years ago

Well updating AUR in background is not really a good idea. It happens quite regular, that there is a bug in the PKGBUILD. That would result in quite the big issue. Additionally you would need to provide the additional information that is provided in the update process, like files that are not overwritten and you have to manually update, ...

You might want to redecie if it is the best choice. Arch users are normally not averse to using a console ;) And I for sure would not use software that hinders me in some way (by providing not all information or updating with --force which can kill your whole system)

I-Dream-in-Code commented 6 years ago

Yeah I removed the --force option

Plus people might need to inspect package build etc

I'll push a console only version and if I get a GitHub issue about background I'll refer them to this issue

I-Dream-in-Code commented 6 years ago

@LittleHuba I push the changes just now. AUR is supported and currently in konsole mode only with an option to --noconfirm

master and AUR package are updated.

it automatically selects the first alphabetical AUR Helper list in /usr/bin so I hope I got the commands right for each individual helper

Let me know how it works and start a new issue for something different so it's easier to manage versus 2 giant issues for multiple things