From d2d8779b2175b48dca7005a4b9de45cf84e0826a Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Sun, 6 Apr 2014 19:46:16 -0400 Subject: Work around behavior of old 'scandir' in Guile 2.0.5. Problem reported by John Darrington . * guix/nar.scm (write-file): Filter out "." and ".." from the result of 'scandir'. Previously we did this by passing a suitable predicate. --- guix/nar.scm | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'guix/nar.scm') diff --git a/guix/nar.scm b/guix/nar.scm index b6421434e9..5b602df90b 100644 --- a/guix/nar.scm +++ b/guix/nar.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2012, 2013, 2014 Ludovic Courtès +;;; Copyright © 2014 Mark H Weaver ;;; ;;; This file is part of GNU Guix. ;;; @@ -177,13 +178,18 @@ sub-directories of FILE as needed." ((directory) (write-string "type" p) (write-string "directory" p) - (let* ((select? (negate (cut member <> '("." "..")))) - - ;; 'scandir' defaults to 'string-locale '("." ".."))) + ;; 'scandir' defaults to 'string-locale