aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-02-17 15:38:02 +0100
committerLudovic Courtès <ludo@gnu.org>2013-02-17 15:38:02 +0100
commit633f045f62b783f6fb70b4d436d073a8103a8433 (patch)
tree704c5af2f60d059da83a45466da543e75970b84c
parenta24b75d8e1753da629ecf945f4022eee4c340aed (diff)
downloadgnu-guix-633f045f62b783f6fb70b4d436d073a8103a8433.tar
gnu-guix-633f045f62b783f6fb70b4d436d073a8103a8433.tar.gz
scripts: Remove initialization now redundant with `initialize-guix'.
* guix/scripts/build.scm (guix-build): Remove calls to `install-locale', `textdomain', etc., now redundant with `initialize-guix'. * guix/scripts/download.scm (guix-download): Likewise. * guix/scripts/import.scm (guix-import): Likewise. * guix/scripts/package.scm (guix-package): Likewise. * guix/ui.scm: Remove export of `install-locale' and `initialize-guix'. (initialize-guix): Add docstring.
-rw-r--r--guix/scripts/build.scm5
-rw-r--r--guix/scripts/download.scm5
-rw-r--r--guix/scripts/import.scm5
-rw-r--r--guix/scripts/package.scm5
-rw-r--r--guix/ui.scm3
5 files changed, 1 insertions, 22 deletions
diff --git a/guix/scripts/build.scm b/guix/scripts/build.scm
index bad04418f1..3e241ca9da 100644
--- a/guix/scripts/build.scm
+++ b/guix/scripts/build.scm
@@ -221,11 +221,6 @@ Build the given PACKAGE-OR-DERIVATION and return their output paths.\n"))
name version)
(leave (_ "~A: unknown package~%") name))))))
- (install-locale)
- (textdomain "guix")
- (setvbuf (current-output-port) _IOLBF)
- (setvbuf (current-error-port) _IOLBF)
-
(with-error-handling
(let ((opts (parse-options)))
(parameterize ((%store (open-connection)))
diff --git a/guix/scripts/download.scm b/guix/scripts/download.scm
index 1098e6714b..790cf9fc2f 100644
--- a/guix/scripts/download.scm
+++ b/guix/scripts/download.scm
@@ -121,11 +121,6 @@ and the hash of its contents.\n"))
(alist-cons 'argument arg result))
%default-options))
- (install-locale)
- (textdomain "guix")
- (setvbuf (current-output-port) _IOLBF)
- (setvbuf (current-error-port) _IOLBF)
-
(let* ((opts (parse-options))
(store (open-connection))
(arg (assq-ref opts 'argument))
diff --git a/guix/scripts/import.scm b/guix/scripts/import.scm
index 0bc6926c66..f0aaa80aa0 100644
--- a/guix/scripts/import.scm
+++ b/guix/scripts/import.scm
@@ -102,11 +102,6 @@ Import and convert the Nix expression ATTRIBUTE of NIXPKGS.\n"))
(alist-cons 'argument arg result))
%default-options))
- (install-locale)
- (textdomain "guix")
- (setvbuf (current-output-port) _IOLBF)
- (setvbuf (current-error-port) _IOLBF)
-
(let* ((opts (parse-options))
(args (filter-map (match-lambda
(('argument . value)
diff --git a/guix/scripts/package.scm b/guix/scripts/package.scm
index 4935837d33..559be50824 100644
--- a/guix/scripts/package.scm
+++ b/guix/scripts/package.scm
@@ -676,11 +676,6 @@ Install, remove, or upgrade PACKAGES in a single transaction.\n"))
#t))
(_ #f))))
- (install-locale)
- (textdomain "guix")
- (setvbuf (current-output-port) _IOLBF)
- (setvbuf (current-error-port) _IOLBF)
-
(let ((opts (parse-options)))
(or (process-query opts)
(parameterize ((%store (open-connection)))
diff --git a/guix/ui.scm b/guix/ui.scm
index 644a3070f6..af8b238ce1 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -30,8 +30,6 @@
#:use-module (ice-9 match)
#:export (_
N_
- install-locale
- initialize-guix
leave
show-version-and-exit
show-bug-report-information
@@ -67,6 +65,7 @@
(strerror (system-error-errno args))))))
(define (initialize-guix)
+ "Perform the usual initialization for stand-alone Guix commands."
(install-locale)
(textdomain "guix")
(setvbuf (current-output-port) _IOLBF)