packages icon indicating copy to clipboard operation
packages copied to clipboard

common/Scripts: add check_update function to helper.sh

Open joebonrichie opened this issue 1 year ago • 1 comments

Summary

  • for quick anitya monitoring of a single package

Test Plan

source script in environment and run check_update on a bunch of packages

Checklist

  • [x] Package was built and tested against unstable

joebonrichie avatar Sep 25 '24 22:09 joebonrichie

How much of a pain is it to write fish and zsh versions?

Seems there is no good way to call a bash function from within the fish shell

davidjharder avatar Oct 07 '24 19:10 davidjharder

How much of a pain is it to write fish and zsh versions? Seems there is no good way to call a bash function from within the fish shell

I'd make it a separate script instead and call that from all three helper functions.

silkeh avatar Oct 25 '24 20:10 silkeh

With ent landing in repository, wouldn't that supersede this PR?

malfisya avatar Nov 27 '24 01:11 malfisya

With ent landing in repository, wouldn't that supersede this PR?

Only once ent begins supporting checking for updates per package?

ermo avatar Dec 17 '24 12:12 ermo

Only once ent begins supporting checking for updates per package?

ent can check per package (provided it has monitoring.yml, of course). Just navigate to a package directory, say systemd:

░▒▓    …/packages/s/systemd   main  󰥔 19:52                                                                                                                      
❯ go-task updatecheck                                                                                                                                                   
task: [updatecheck] ent check updates                                                                                                                                   
Checking for updates...                                                                                                                                                 
                                                                                                                                                                        
Total packages to update: 1                                                                                                                                             
                                                                                                                                                                        
Package Current Latest                                                                                                                                                  
------- ------ ---                                                                                                                                                      
systemd 254.21 257                                                                                                                                                      
                                                                                                                                                                        
░▒▓    …/packages/s/systemd   main  󰥔 19:52                                                                                                                      
❯ ent check updates                                                                                                                                                     
Checking for updates...                                                                                                                                                 
                                                                                                                                                                        
Total packages to update: 1                                                                                                                                             
                                                                                                                                                                        
Package Current Latest                                                                                                                                                  
------- ------ ---                                                                                                                                                      
systemd 254.21 257                                                                                                                                                      
                                                                                                                                                                        
░▒▓    …/packages/s/systemd   main  󰥔 19:52                                                                                                                      
❯ 

malfisya avatar Dec 17 '24 12:12 malfisya

Closing as this functionality is superseded by Serpent's ent tool.

Thank you nonetheless @joebonrichie ! :muscle:

ermo avatar Dec 20 '24 15:12 ermo