guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

226/376: Add --force-name support for --set in nix-env, to support nix-i


From: Ludovic Courtès
Subject: 226/376: Add --force-name support for --set in nix-env, to support nix-install-package --set
Date: Wed, 28 Jan 2015 22:05:14 +0000

civodul pushed a commit to tag 1.8
in repository guix.

commit cf72a61af2975979bbfda773cc17ef617d61cdac
Author: Shell Turner <address@hidden>
Date:   Tue Sep 16 18:34:59 2014 +0100

    Add --force-name support for --set in nix-env, to support 
nix-install-package --set
---
 src/nix-env/nix-env.cc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/nix-env/nix-env.cc b/src/nix-env/nix-env.cc
index c24165d..f5e8ee0 100644
--- a/src/nix-env/nix-env.cc
+++ b/src/nix-env/nix-env.cc
@@ -700,6 +700,9 @@ static void opSet(Globals & globals, Strings opFlags, 
Strings opArgs)
 
     DrvInfo & drv(elems.front());
 
+    if (globals.forceName != "")
+        drv.name = globals.forceName;
+
     if (drv.queryDrvPath() != "") {
         PathSet paths = singleton<PathSet>(drv.queryDrvPath());
         printMissing(*store, paths);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]