[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/07: daemon: Run 'guix authenticate' directly.
From: |
guix-commits |
Subject: |
02/07: daemon: Run 'guix authenticate' directly. |
Date: |
Sun, 8 Sep 2019 06:02:42 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 0c684b7edfacada4f576855dbb09291f04a84fa2
Author: Ludovic Courtès <address@hidden>
Date: Tue Sep 3 21:51:25 2019 +0200
daemon: Run 'guix authenticate' directly.
* nix/scripts/authenticate.in: Remove.
* nix/local.mk (nodist_pkglibexec_SCRIPTS): Remove
scripts/authenticate.
* config-daemon.ac: Don't output 'nix/scripts/authenticate'.
* nix/libstore/local-store.cc (runAuthenticationProgram): Run 'guix
authenticate'.
---
config-daemon.ac | 2 --
nix/libstore/local-store.cc | 5 +++--
nix/local.mk | 3 ---
nix/scripts/authenticate.in | 11 -----------
4 files changed, 3 insertions(+), 18 deletions(-)
diff --git a/config-daemon.ac b/config-daemon.ac
index f1d26af..907457f 100644
--- a/config-daemon.ac
+++ b/config-daemon.ac
@@ -152,8 +152,6 @@ if test "x$guix_build_daemon" = "xyes"; then
[chmod +x nix/scripts/download])
AC_CONFIG_FILES([nix/scripts/substitute],
[chmod +x nix/scripts/substitute])
- AC_CONFIG_FILES([nix/scripts/authenticate],
- [chmod +x nix/scripts/authenticate])
AC_CONFIG_FILES([nix/scripts/offload],
[chmod +x nix/scripts/offload])
fi
diff --git a/nix/libstore/local-store.cc b/nix/libstore/local-store.cc
index 892d930..951c35f 100644
--- a/nix/libstore/local-store.cc
+++ b/nix/libstore/local-store.cc
@@ -1224,8 +1224,9 @@ static void checkSecrecy(const Path & path)
static std::string runAuthenticationProgram(const Strings & args)
{
- return runProgram(settings.nixLibexecDir + "/authenticate",
- false, args);
+ Strings fullArgs = { "authenticate" };
+ fullArgs.insert(fullArgs.end(), args.begin(), args.end()); // append
+ return runProgram(settings.guixProgram, false, fullArgs);
}
void LocalStore::exportPath(const Path & path, bool sign,
diff --git a/nix/local.mk b/nix/local.mk
index fd7379b..cdcd9eb 100644
--- a/nix/local.mk
+++ b/nix/local.mk
@@ -165,9 +165,6 @@ nodist_pkglibexec_SCRIPTS += \
endif BUILD_DAEMON_OFFLOAD
-nodist_pkglibexec_SCRIPTS += \
- %D%/scripts/authenticate
-
# The '.service' files for systemd.
systemdservicedir = $(libdir)/systemd/system
nodist_systemdservice_DATA = etc/guix-daemon.service etc/guix-publish.service
diff --git a/nix/scripts/authenticate.in b/nix/scripts/authenticate.in
deleted file mode 100644
index 5ce5791..0000000
--- a/nix/scripts/authenticate.in
+++ /dev/null
@@ -1,11 +0,0 @@
-#!@SHELL@
-# A shorthand for "guix authenticate", for use by the daemon.
-
-if test "x$GUIX_UNINSTALLED" = "x"
-then
- prefix="@prefix@"
- exec_prefix="@exec_prefix@"
- exec "@bindir@/guix" authenticate "$@"
-else
- exec guix authenticate "$@"
-fi
- branch master updated (7fcc2f9 -> cc98b00), guix-commits, 2019/09/08
- 02/07: daemon: Run 'guix authenticate' directly.,
guix-commits <=
- 03/07: daemon: Run 'guix perform-download' directly., guix-commits, 2019/09/08
- 06/07: daemon: Remove 'NIX_LIBEXEC_DIR'., guix-commits, 2019/09/08
- 07/07: etc: Remove references to libexec/guix* from SELinux policy., guix-commits, 2019/09/08
- 04/07: daemon: Run 'guix offload' directly., guix-commits, 2019/09/08
- 05/07: daemon: Run 'guix substitute' directly and assume a single substituter., guix-commits, 2019/09/08
- 01/07: daemon: Invoke 'guix gc --list-busy' instead of 'list-runtime-roots'., guix-commits, 2019/09/08