[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/06: graph: Use absolute file name canonicalization.
From: |
Ludovic Courtès |
Subject: |
01/06: graph: Use absolute file name canonicalization. |
Date: |
Fri, 20 May 2016 23:35:46 +0000 (UTC) |
civodul pushed a commit to branch master
in repository guix.
commit 3cabdead6fbe080d9466bb3130a2b36dd4b07090
Author: Ludovic Courtès <address@hidden>
Date: Thu May 19 23:24:50 2016 +0200
graph: Use absolute file name canonicalization.
* guix/scripts/graph.scm (guix-graph): Wrap in 'with-fluids'.
---
guix/scripts/graph.scm | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/guix/scripts/graph.scm b/guix/scripts/graph.scm
index ba63780..1623421 100644
--- a/guix/scripts/graph.scm
+++ b/guix/scripts/graph.scm
@@ -356,15 +356,18 @@ Emit a Graphviz (dot) representation of the dependencies
of PACKAGE...\n"))
(_ #f))
opts)))
(with-store store
- (run-with-store store
- ;; XXX: Since grafting can trigger unsolicited builds, disable it.
- (mlet %store-monad ((_ (set-grafting #f))
- (nodes (mapm %store-monad
- (node-type-convert type)
- packages)))
- (export-graph (concatenate nodes)
- (current-output-port)
- #:node-type type))))))
+ ;; Ask for absolute file names so that .drv file names passed from the
+ ;; user to 'read-derivation' are absolute when it returns.
+ (with-fluids ((%file-port-name-canonicalization 'absolute))
+ (run-with-store store
+ ;; XXX: Since grafting can trigger unsolicited builds, disable it.
+ (mlet %store-monad ((_ (set-grafting #f))
+ (nodes (mapm %store-monad
+ (node-type-convert type)
+ packages)))
+ (export-graph (concatenate nodes)
+ (current-output-port)
+ #:node-type type)))))))
#t)
;;; graph.scm ends here
- branch master updated (3c9a718 -> ece6864), Ludovic Courtès, 2016/05/20
- 01/06: graph: Use absolute file name canonicalization.,
Ludovic Courtès <=
- 04/06: substitute: Gracefully handle invalid store file names., Ludovic Courtès, 2016/05/20
- 03/06: graph: Allow store file names for 'derivation' and 'references' graphs., Ludovic Courtès, 2016/05/20
- 05/06: grafts: Preserve empty directories when grafting., Ludovic Courtès, 2016/05/20
- 06/06: grafts: Rename files whose name matches a graft., Ludovic Courtès, 2016/05/20
- 02/06: derivations: 'derivation' sorts items in the resulting object., Ludovic Courtès, 2016/05/20