[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] gnu-maintenance: update-package-source: Only update the desi
From: |
Andy Wingo |
Subject: |
Re: [PATCH] gnu-maintenance: update-package-source: Only update the desired package. |
Date: |
Tue, 05 Apr 2016 10:25:59 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Hi 宋文武 :)
On Tue 05 Apr 2016 06:35, 宋文武 <address@hidden> writes:
> diff --git a/guix/upstream.scm b/guix/upstream.scm
> index cea23fe..f4bc09c 100644
> --- a/guix/upstream.scm
> +++ b/guix/upstream.scm
> @@ -205,6 +209,37 @@ and 'interactive' (default)."
> "Modify the source file that defines PACKAGE to refer to VERSION,
> whose tarball has SHA256 HASH (a bytevector). Return the new version string
> if an update was made, and #f otherwise."
> + (define (substitute+ file start end pattern+procs)
Sorry to tell you mixed signals, but did you consider Ludovic's
suggestion to use `package-field-location' ?
If it turns out that this more textual approach is best, consider
factoring the helper out to a top-level function. Someone else is going
to want to use it later :)
Andy
Re: [PATCH] gnu-maintenance: update-package-source: Only update the desired package., Ludovic Courtès, 2016/04/05