From: Pierre Neidhardt <mail@ambrevar.xyz>
To: Reza Alizadeh Majd <r.majd@pantherx.org>,
help-guix mailing list <help-guix@gnu.org>
Subject: Re: query for package updates
Date: Sat, 14 Mar 2020 16:26:54 +0100 [thread overview]
Message-ID: <87mu8jt0sh.fsf@ambrevar.xyz> (raw)
In-Reply-To: <a2239e86-7b34-4dcd-96c8-7af7745bf995@www.fastmail.com>
[-- Attachment #1: Type: text/plain, Size: 642 bytes --]
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 issue is that you are only comparing version numbers, while
packages can also get updated because the derivation has changed
(e.g. some input has been updated).
I don't know the API for that but my guess is that you could start
inspecting guix/scripts/package.scm.
Good luck!
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
prev parent reply other threads:[~2020-03-14 15:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-07 7:50 query for package updates Reza Alizadeh Majd
2020-03-07 8:34 ` Pierre Neidhardt
2020-03-07 9:55 ` Reza Alizadeh Majd
2020-03-07 15:30 ` Pierre Neidhardt
2020-03-11 21:30 ` Reza Alizadeh Majd
2020-03-14 6:33 ` Reza Alizadeh Majd
2020-03-14 15:26 ` Pierre Neidhardt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mu8jt0sh.fsf@ambrevar.xyz \
--to=mail@ambrevar.xyz \
--cc=help-guix@gnu.org \
--cc=r.majd@pantherx.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.