summaryrefslogtreecommitdiff
path: root/guix/scripts/graph.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2016-01-02 22:22:57 +0100
committerLudovic Courtès <ludo@gnu.org>2016-01-02 22:25:41 +0100
commit51385362f76e2f823ac8d8cf720d06c386504069 (patch)
tree7d665f8b57fce9c165f03581dc3450203d1ab3d3 /guix/scripts/graph.scm
parentf88282af38dfe805034686e88bab734c582ef74d (diff)
downloadguix-patches-51385362f76e2f823ac8d8cf720d06c386504069.tar
guix-patches-51385362f76e2f823ac8d8cf720d06c386504069.tar.gz
graph: %BAG-WITH-ORIGINS-NODE-TYPE includes the origin's guile.
Before that it would include #f for most origins since that the default value of 'origin-patch-guile'. * guix/scripts/graph.scm (bag-node-edges): When 'origin-patch-guile' returns #f, use (default-guile). * tests/graph.scm ("bag DAG, including origins"): Check for an edge from O to (default-guile).
Diffstat (limited to 'guix/scripts/graph.scm')
-rw-r--r--guix/scripts/graph.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/scripts/graph.scm b/guix/scripts/graph.scm
index 9d9eb2236c..dcc4701779 100644
--- a/guix/scripts/graph.scm
+++ b/guix/scripts/graph.scm
@@ -113,7 +113,7 @@ Dependencies may include packages, origin, and file names."
(((labels things . outputs) ...)
things)))
((origin? thing)
- (cons (origin-patch-guile thing)
+ (cons (or (origin-patch-guile thing) (default-guile))
(if (or (pair? (origin-patches thing))
(origin-snippet thing))
(match (origin-patch-inputs thing)