swindlesmccoop / aureate

An AUR helper written in C
https://youtu.be/lamPvoJxTsM
17 stars 4 forks source link

[Feature Request] -Syu option? #4

Open Defal7c opened 1 year ago

Defal7c commented 1 year ago

Hello, I have been using paru for some time and there is the option to update the AUR packages I have, would that be difficult to add to aureate? I would love to have this option!

PS: also having labels to better organize the issues tab in the future?

swindlesmccoop commented 1 year ago

Sure, I'll look into it. I already have a check when you install a package to make sure there isn't a newer version available so I'll see if I can build off of that. I'm not sure if there is a faster way than checking if a libgit2 pull succeeds but I'll look into it.

swindlesmccoop commented 1 year ago

It could be very easily possible if I can compare the local file at .git/refs/heads/master to the upstream origin but I'm unsure of how to get the latter without cloning the entire repository.

malusmundus commented 1 year ago

Maybe I'm just being stupid... but could you clone the entire repository the first time -Syu is used, get the master, store a renamed copy locally somewhere, and reference that file on future uses of -Syu?

swindlesmccoop commented 1 year ago

I see your perspective but I think that comparing the remote and local file would be a lot quicker, especially if there is a way to query it in API.