GNU bug report logs - #26265
[PATCH 1/1] packages: Add optional `for-ui` param to `package-full-name`.

Previous Next

Package: guix-patches;

Reported by: Alex Sassmannshausen <alex.sassmannshausen <at> gmail.com>

Date: Sun, 26 Mar 2017 12:27:02 UTC

Severity: normal

Tags: patch

Merged with 26239, 26264

Done: Ricardo Wurmus <rekado <at> elephly.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: ludo <at> gnu.org (Ludovic Courtès)
To: Alex Sassmannshausen <alex.sassmannshausen <at> gmail.com>
Cc: 26265 <at> debbugs.gnu.org, Alex Sassmannshausen <alex <at> pompo.co>
Subject: bug#26265: [PATCH 1/1] packages: Add optional `for-ui` param to `package-full-name`.
Date: Tue, 28 Mar 2017 17:06:51 +0200
Alex Sassmannshausen <alex.sassmannshausen <at> gmail.com> skribis:

> * guix/packages.scm (package-full-name): Add optional parameter `for-ui`.
> * guix/scripts/refresh.scm (list-dependents): Use it.
> * tests/packages.scm: Add tests for `package-full-name`.

[...]

> +(define* (package-full-name package #:optional for-ui)
> +  "Return the full name of PACKAGE--i.e., `NAME-VERSION'.  If FOR-UI? is #t,
> +return the full name of PACKAGE using \"@\" as the NAME, VERSION separator."

I’d replace ‘for-ui’ with:

  #:optional (separator "@")

I think it’s less ambiguous.

That also means that we’d need to change *non*-UI call sites, instead of
changing UI call sites.  Hopefully there are few of them, but as
discussed in the other message, it takes manual analysis to determine
which use requires a hyphen and which one does not.

Thanks,
Ludo’.




This bug report was last modified 8 years and 29 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.