Re: query for package updates

2020-03-14 Thread Pierre Neidhardt
Hi Reza, I tried running your script and it never reports updates. I am not completely sure about the API but I believe that you need to check the version of the entry of the package, not of the corresponding package in the manifest, or else you'll always find the same package version. The second

Re: query for package updates

2020-03-13 Thread Reza Alizadeh Majd
Just wanted to ping this up/ does anyone have any suggestion about following script, that I wrote to check about available package updates for a profile? On Thu, Mar 12, 2020, at 1:00 AM, Reza Alizadeh Majd wrote: > playing with the Guix sources, I wrote following Guile script in order to > che

Re: query for package updates

2020-03-11 Thread Reza Alizadeh Majd
playing with the Guix sources, I wrote following Guile script in order to check available updates for a profile. Is it suitable for this purpose or I need to include additional checks on my script? (define-module (px tools updater) #:use-module (guix profiles) #:use-module (guix utils) #:

Re: query for package updates

2020-03-07 Thread Reza Alizadeh Majd
Hi, > `guix package -u` will keep updating ad-hoc profiles (those that where > not generated exclusively with a manifest) if they contain packages with > propagated inputs, even if the profile is already up-to-date. > so you mean that I can't rely on `guix package -u -n` command results to dete

query for package updates

2020-03-06 Thread Reza Alizadeh Majd
Hi, I'm working on a cron job to perform `guix pull` periodically and inform users about available updates. previously it was suggested to use `guix package -u -n` to find if any update is available. the problem is that also when I run the `guix package -u` to update the profile my cron job stil