Files
lix/src/libstore
Maximilian Bosch 0872659002 nix repl: properly deal with interruptions
When I stop a download with Ctrl-C in a `nix repl` of a flake, the REPL
refuses to do any other downloads:

    nix-repl> builtins.getFlake "nix-serve"
    [0.0 MiB DL] downloading 'https://api.github.com/repos/edolstra/nix-serve/tarball/e9828a9e01a14297d15ca41 error: download of 'https://api.github.com/repos/edolstra/nix-serve/tarball/e9828a9e01a14297d15ca416e5a9415d4972b0f0' was interrupted
    [0.0 MiB DL]
    nix-repl> builtins.getFlake "nix-serve"
    error: interrupted by the user
    [0.0 MiB DL]

To fix this issue, two changes were necessary:

* Reset the global `_isInterrupted` variable: only because a single
  operation was aborted, it should still be possible to continue the
  session.
* Recreate a `fileTransfer`-instance if the current one was shut down by
  an abort.
2021-10-07 23:58:02 +02:00
..
2021-10-07 13:34:04 +02:00
2021-01-21 11:02:09 +01:00
2021-09-22 14:15:35 +02:00
2021-09-30 21:35:09 +00:00
2021-01-06 17:56:53 +01:00
2021-09-30 21:35:09 +00:00
2020-10-06 10:40:07 +02:00
2021-09-30 21:35:09 +00:00
2021-09-10 11:00:50 +02:00
2021-09-30 21:35:09 +00:00
2021-09-30 21:35:09 +00:00
2020-10-11 16:44:19 +00:00
2020-10-11 16:44:07 +00:00
2021-06-23 22:09:22 +01:00
2021-09-30 21:35:09 +00:00
2021-01-08 12:22:21 +01:00
2020-09-21 18:22:45 +02:00
2021-01-08 12:22:21 +01:00
2020-08-06 18:31:48 +00:00
2019-03-14 14:11:12 +01:00
2021-07-12 17:32:23 +02:00
2021-07-12 17:32:23 +02:00
2021-07-26 13:31:09 +02:00
2021-07-26 13:31:09 +02:00
2021-09-30 21:35:09 +00:00
2021-09-14 19:32:33 +02:00
2021-09-30 21:35:09 +00:00
2020-04-08 22:26:57 +02:00
2021-01-21 11:02:09 +01:00
2021-09-30 21:35:09 +00:00
2021-07-26 13:31:09 +02:00