From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: query for package updates Date: Sat, 14 Mar 2020 16:26:54 +0100 Message-ID: <87mu8jt0sh.fsf@ambrevar.xyz> References: <58b65c16-f3bd-4503-9870-5d168fcbe69d@www.fastmail.com> <87eeu4a7hf.fsf@ambrevar.xyz> <64253f3e-646a-47d1-83a5-ead90844cbe1@www.fastmail.com> <87ftek89o4.fsf@ambrevar.xyz> <0c573dbd-6bd8-4ab0-9674-c75d5c5fa173@www.fastmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:39106) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jD8gy-00031h-NV for help-guix@gnu.org; Sat, 14 Mar 2020 11:27:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jD8gx-0005Y4-86 for help-guix@gnu.org; Sat, 14 Mar 2020 11:27:12 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:51933) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jD8gx-0005Ij-1P for help-guix@gnu.org; Sat, 14 Mar 2020 11:27:11 -0400 In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: Reza Alizadeh Majd , help-guix mailing list --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl5s974ACgkQm9z0l6S7 zH/kcAgAsN2RqzAnWv8JfXmBI2SRylW/xiHAtGpQLBqAGrZn/t40/C9DWRNrqnqU InpaYRp5q3O7NdgEmUkl7OgMKR7SP+hYQskZj90MySyi1yTxs37W2XE2JMLUMmUk EN0UfC62FMrQscTOC+puRm35saXmSbmHTbR1zNz3anUhmTzl9pBu1vtAVs1aoxNs ny00uwF++L1sjGKltTKRKRyaY9/qfYzQcwM/5T+n/rFTZuPPcoXTKGiDRLqyb2Yz lp3VxA1i6Nrn+u6pCYu5ZHUfKDjmsPO8o9n2HblJ8Ape9AeQiG9Ci7oPM4H4PFqu wW1f7++h/D2GZ2xDD1aKYZh7RRgqYA== =i8Ih -----END PGP SIGNATURE----- --=-=-=--