From 84de458ba8c6499dd63c6d7e7c67087df339e371 Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Sat, 6 Jun 2015 06:38:58 -0500 Subject: profiles: Search for ghc conf files only if package db exists. This avoids having 'find-files' report warnings about searching in non-existent directories. * guix/profiles.scm (ghc-package-cache-file)[conf-files]: Only search for *.conf files if the search directory exists. --- guix/profiles.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/guix/profiles.scm b/guix/profiles.scm index 28150affb6..33a0511a3a 100644 --- a/guix/profiles.scm +++ b/guix/profiles.scm @@ -500,7 +500,10 @@ (define db-dir (string-append #$output "/" db-subdir)) (define (conf-files top) - (find-files (string-append top "/" db-subdir) "\\.conf$")) + (let ((db (string-append top "/" db-subdir))) + (if (file-exists? db) + (find-files db "\\.conf$") + '()))) (define (copy-conf-file conf) (let ((base (basename conf))) -- cgit v1.2.3