From 1be165c939bbfa7bb287eae3ef1a989ef6086355 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Fri, 15 Oct 2010 16:45:49 +0000 Subject: [PATCH] Fix boot; it was failing if darcs-all or validate were missing (which is the case in sdists) --- boot | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/boot b/boot index aa3b82d..f47bdf6 100644 --- a/boot +++ b/boot @@ -72,6 +72,8 @@ foreach $dir (".", glob("libraries/*/")) { # Alas, darcs doesn't handle file permissions, so fix a few of them. for my $file ("boot", "darcs-all", "validate") { - chmod 0755, $file if -f $file - or die "Can't chmod 0755 $file: $!"; + if (-f $file) { + chmod 0755, $file + or die "Can't chmod 0755 $file: $!"; + } } -- 1.7.10.4