From: ludo@gnu.org (Ludovic Courtès)
To: Andreas Enge <andreas@enge.fr>
Cc: guix-devel@gnu.org
Subject: Re: Guile 2.0.5, HTTP downloads, and progress reports
Date: Wed, 21 Aug 2013 14:41:48 +0200 [thread overview]
Message-ID: <87ioyzmd0z.fsf@gnu.org> (raw)
In-Reply-To: <201308211208.00354.andreas@enge.fr> (Andreas Enge's message of "Wed, 21 Aug 2013 12:08:00 +0200")
[-- Attachment #1: Type: text/plain, Size: 683 bytes --]
Andreas Enge <andreas@enge.fr> skribis:
> Am Mittwoch, 21. August 2013 schrieb Ludovic Courtès:
>> Commit db90b40 partially addresses this by removing the fake progress
>> report on Guile 2.0.5, and by printing “please wait” (and “please
>> upgrade”).
>>
>> Feedback from 2.0.5 users is welcome!
>
> As far as I can tell, nothing changed, I still get the progress report.
What do the following print?
guile -c '(use-modules (guix utils)) (pk (version>? (version) "2.0.5"))'
guile -c '(pk (version))'
My guess is that (version) return "2.0.5-foobar-deb", which defeats the
test above.
If that is the case, that patch should solve the problem:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 820 bytes --]
diff --git a/guix/scripts/substitute-binary.scm b/guix/scripts/substitute-binary.scm
index 0fdec45..bfaebee 100755
--- a/guix/scripts/substitute-binary.scm
+++ b/guix/scripts/substitute-binary.scm
@@ -418,7 +418,10 @@ PORT. REPORT-PROGRESS is a two-argument procedure such as that returned by
;; Since `http-fetch' in Guile 2.0.5 returns all the data once it's done,
;; don't pretend to report any progress in that case.
- (if (version>? (version) "2.0.5")
+ (if (version>? (string-append (major-version) "."
+ (minor-version) "."
+ (micro-version))
+ "2.0.5")
(make-custom-binary-input-port "progress-port-proc"
read! #f #f
(cut close-port port))
[-- Attachment #3: Type: text/plain, Size: 52 bytes --]
Could you try and report back?
TIA,
Ludo’.
next prev parent reply other threads:[~2013-08-21 12:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-20 12:46 Guile 2.0.5, HTTP downloads, and progress reports Ludovic Courtès
2013-08-21 9:47 ` Ludovic Courtès
2013-08-21 10:08 ` Andreas Enge
2013-08-21 12:41 ` Ludovic Courtès [this message]
2013-08-21 16:06 ` Andreas Enge
2013-08-23 13:53 ` Ludovic Courtès
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ioyzmd0z.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=andreas@enge.fr \
--cc=guix-devel@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.