From: ludo@gnu.org (Ludovic Courtès)
To: Andy Wingo <wingo@igalia.com>
Cc: guix-devel@gnu.org, 22693@debbugs.gnu.org
Subject: Re: bug#22693: `guix refresh -u` updates other packages with same version
Date: Mon, 04 Apr 2016 22:57:09 +0200 [thread overview]
Message-ID: <87inzxcct6.fsf@gnu.org> (raw)
In-Reply-To: <87r3elh9od.fsf@igalia.com> (Andy Wingo's message of "Mon, 04 Apr 2016 13:53:38 +0200")
Andy Wingo <wingo@igalia.com> skribis:
> On Mon 04 Apr 2016 12:20, iyzsong@member.fsf.org (宋文武) writes:
>
>> How to fix this?
>>
>> The procedure is ‘update-package-source’ in (guix upstream).
>> it find the file, then use ‘substitute’ to replace the version and
>> hash. ‘substitute’ works line-by-line, it can’t match mutiple lines.
>>
>> I try:
>> - use ‘package-location’ and ‘read’ to get the package object,
>> but it lost all format and comments.
>
> One option:
>
> 1. open the source file for the package
> 2. Call (read) until port-line / port-column are beyond the
> package-location of the package
> 3. At that point you have the ending location of the package.
Right. ‘package-field-location’ does something along these lines.
> Then limit your substitute* to work within those lines.
A simpler yet less elegant trick used in ‘report-formatting-issues’ in
(guix scripts lint) is to have a maximum number of lines assumed to be
part of the ‘package’ form following its starting line.
Thanks,
Ludo’.
prev parent reply other threads:[~2016-04-04 20:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20160216092724.GA10422@jasmine>
2016-04-04 10:20 ` bug#22693: `guix refresh -u` updates other packages with same version 宋文武
2016-04-04 11:53 ` Andy Wingo
2016-04-04 20:57 ` Ludovic Courtès [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87inzxcct6.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=22693@debbugs.gnu.org \
--cc=guix-devel@gnu.org \
--cc=wingo@igalia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).