From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= Subject: Counting Packages yields wrong result Date: Mon, 22 Aug 2016 23:10:44 +0200 Message-ID: <20160822231044.4ac945f9@alma-ubu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbwUd-00044j-Un for help-guix@gnu.org; Mon, 22 Aug 2016 17:10:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbwUY-0002JC-OS for help-guix@gnu.org; Mon, 22 Aug 2016 17:10:51 -0400 Received: from m4s11.vlinux.de ([83.151.27.109]:58764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbwUY-0002J7-I7 for help-guix@gnu.org; Mon, 22 Aug 2016 17:10:46 -0400 Received: from alma-ubu (p5B353406.dip0.t-ipconnect.de [91.53.52.6]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by m4s11.vlinux.de (Postfix) with ESMTPSA id A763A3CED for ; Mon, 22 Aug 2016 21:05:21 +0000 (UTC) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Guix-Help I tried to count the number of packages in GuixSD for myself, but my result differs from the package list on the home page (https://www.gnu.org/software/guix/packages/). Why? Here is how I did it: #!/run/current-system/profile/bin/guile -s !# ; Counting number of packages in current system. ; This also includes packages with the same name, ; but different version string. (use-modules (gnu)) (use-modules (guix)) (display "Number of packages: ") (define cnt (fold-packages (lambda (pkg ctr) (+ 1 ctr)) 0)) (display cnt) (newline) Is that the correct way to walk through the list of packages anyway? I always get the number 3747 back, even after a guix pull. The homepage gives me 3881, and counting. guix --version give me: 20160822.18 Looking at %load-path I figured out that /run/current-system/profile/share/guile/site/2.0/guix points to the ...guix-0.11.0-1 store path. Is that my problem? How can I script over the newest pull? Thank you, Bj=C3=B6rn