[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#65866] [PATCH 3/8] perform-download: Remove unused one-argument cla
From: |
Ludovic Courtès |
Subject: |
[bug#65866] [PATCH 3/8] perform-download: Remove unused one-argument clause. |
Date: |
Mon, 11 Sep 2023 16:25:21 +0200 |
Code in ‘builtins.cc’ only ever invokes ‘guix perform-download’ with two
arguments.
* guix/scripts/perform-download.scm (guix-perform-download): Remove
unused one-argument clause.
---
guix/scripts/perform-download.scm | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/guix/scripts/perform-download.scm
b/guix/scripts/perform-download.scm
index 6889bcef79..c8f044e82e 100644
--- a/guix/scripts/perform-download.scm
+++ b/guix/scripts/perform-download.scm
@@ -120,13 +120,8 @@ (define-command (guix-perform-download . args)
(match args
(((? derivation-path? drv) (? store-path? output))
(assert-low-privileges)
- (perform-download (read-derivation-from-file drv)
- output
- #:print-build-trace? print-build-trace?))
- (((? derivation-path? drv)) ;backward compatibility
- (assert-low-privileges)
- (perform-download (read-derivation-from-file drv)
- #:print-build-trace? print-build-trace?))
+ (let ((drv (read-derivation-from-file drv)))
+ (perform-download drv output #:print-build-trace?
print-build-trace?)))
(("--version")
(show-version-and-exit))
(x
--
2.41.0
- [bug#65866] [PATCH v2 7/8] git-download: Use “builtin:git-download” when available., (continued)
- [bug#65866] [PATCH v2 7/8] git-download: Use “builtin:git-download” when available., Ludovic Courtès, 2023/09/22
- [bug#65866] [PATCH v2 7/8] git-download: Use “builtin:git-download” when available., Simon Tournier, 2023/09/25
- [bug#65866] [PATCH 0/8] Add built-in builder for Git checkouts, Ludovic Courtès, 2023/09/25
- [bug#65866] [PATCH 0/8] Add built-in builder for Git checkouts, Simon Tournier, 2023/09/25
- [bug#65866] [PATCH 0/8] Add built-in builder for Git checkouts, Maxim Cournoyer, 2023/09/25
- [bug#65866] [PATCH 0/8] Add built-in builder for Git checkouts, Simon Tournier, 2023/09/25
- [bug#65866] [PATCH v2 5/8] build: Add dependency on Git., Ludovic Courtès, 2023/09/22
- [bug#65866] [PATCH v2 5/8] build: Add dependency on Git., Simon Tournier, 2023/09/25
[bug#65866] [PATCH 2/8] git-download: Honor the ‘GUIX_DOWNLOAD_FALLBACK_TEST’ environment variable., Ludovic Courtès, 2023/09/11
[bug#65866] [PATCH 3/8] perform-download: Remove unused one-argument clause.,
Ludovic Courtès <=
[bug#65866] [PATCH 1/8] git-download: Move fallback code to (guix build git)., Ludovic Courtès, 2023/09/11
[bug#65866] [PATCH 7/8] git-download: Use “builtin:git-download” when available., Ludovic Courtès, 2023/09/11
[bug#65866] [PATCH 6/8] perform-git-download: Use the ‘git’ command captured at configure time., Ludovic Courtès, 2023/09/11