Hi 宋文武 :) On Tue 05 Apr 2016 06:35, 宋文武 <iyzs...@gmail.com> 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