aureate icon indicating copy to clipboard operation
aureate copied to clipboard

[Feature Request] -Syu option?

Open Defal7c opened this issue 2 years ago • 4 comments

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?

Defal7c avatar Apr 15 '23 12:04 Defal7c

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 avatar Apr 15 '23 16:04 swindlesmccoop

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.

swindlesmccoop avatar May 12 '23 01:05 swindlesmccoop

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?

malusmundus avatar May 12 '23 15:05 malusmundus

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.

swindlesmccoop avatar May 13 '23 02:05 swindlesmccoop