profiles: Handle packages without a 'share/info' directory.
authorLudovic Courtès <ludo@gnu.org>
Mon, 25 Aug 2014 08:27:20 +0000 (10:27 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 25 Aug 2014 08:27:37 +0000 (10:27 +0200)
Reported by Mark H. Weaver.

* guix/profiles.scm (info-dir-file): Handle the case where 'scandir'
  returns #f.

guix/profiles.scm

index bf86624..a2c73fd 100644 (file)
@@ -393,7 +393,7 @@ MANIFEST."
         (define (info-files top)
           (let ((infodir (string-append top "/share/info")))
             (map (cut string-append infodir "/" <>)
-                 (scandir infodir info-file?))))
+                 (or (scandir infodir info-file?) '()))))
 
         (define (install-info info)
           (zero?