guix-play/tests
Ludovic Courtès 101d9f3fd4 substitute-binary: Pass `filtered-port' an unbuffered port.
This fixes a bug whereby `read-response' would read more than just the
response, with the extra data going into the port's buffer; the
"bzip2 -dc" process spawned by `filtered-port' would not see the those
buffered data, which are definitely lost, and would bail out with
"bzip2: (stdin) is not a bzip2 file."

* guix/utils.scm (filtered-port): Document that INPUT must be
  unbuffered.
* guix/web.scm (http-fetch): Add `buffered?' parameter.  Call
  `open-socket-for-uri' explicitly, and call `setvbuf' when BUFFERED? is
  false.  Pass the port to `http-get'.  Close it upon 301/302.
* guix/scripts/substitute-binary.scm (fetch): Add `buffered?'
  parameter.  Pass it to `http-fetch'; honor it for `file' URIs.
  (guix-substitute-binary): Call `fetch' with #:buffered? #f for port RAW.
* tests/utils.scm ("filtered-port, file"): Open FILE as unbuffered.
2013-05-15 23:40:09 +02:00
..
base32.scm Augment `.dir-locals.el'. 2013-02-01 13:16:45 +01:00
build-utils.scm Augment `.dir-locals.el'. 2013-02-01 13:16:45 +01:00
builders.scm tests: Adjust `gnu-build' test to search path mechanism. 2013-04-11 22:56:39 +02:00
derivations.scm scripts: Report what will be substituted. 2013-04-17 00:08:21 +02:00
guix-build.sh Replace individual scripts with master 'guix' script. 2013-02-16 22:17:37 -05:00
guix-daemon.sh Replace individual scripts with master 'guix' script. 2013-02-16 22:17:37 -05:00
guix-download.sh Replace individual scripts with master 'guix' script. 2013-02-16 22:17:37 -05:00
guix-gc.sh guix gc: Add --references' and --referrers'. 2013-02-27 23:16:00 +01:00
guix-hash.sh tests: Add `guix hash' test. 2013-05-11 15:09:56 +02:00
guix-package.sh package: Store the output path of packages installed with `-e'. 2013-05-10 23:04:39 +02:00
nar.scm tests: Fix out-of-source builds. 2013-05-11 15:43:33 +02:00
packages.scm Merge branch 'master' into core-updates 2013-04-26 16:43:08 +02:00
records.scm Move record utilities to (guix records). 2013-05-12 15:46:16 +02:00
snix.scm Augment `.dir-locals.el'. 2013-02-01 13:16:45 +01:00
store.scm substitute-binary: Add a local cache. 2013-04-15 23:42:55 +02:00
test.drv Add unit test for derivation parsing and output. 2012-04-19 23:09:55 +02:00
ui.scm guix-package: Report `--search' matches in recutils format. 2013-02-01 13:16:41 +01:00
union.scm union: Delete duplicates when passed the same input several times. 2013-02-06 23:04:10 +01:00
utils.scm substitute-binary: Pass `filtered-port' an unbuffered port. 2013-05-15 23:40:09 +02:00