From c8088cf4d74fb8f48e8acf1784912727cdbc53fb Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 18 Oct 2007 14:09:27 -0400 Subject: [PATCH] add changelog entry and use mkdir -p --- debian/changelog | 1 + mr | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 8b8fdcc..7a56883 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,7 @@ mr (0.4) UNRELEASED; urgency=low is used to register a sibdirectory. * Signal handling for commands run by mr, including handling of SIGINT to stop mr. + * Ensure parent dir exists prior to checkout. (madduck) -- Joey Hess Thu, 18 Oct 2007 13:57:41 -0400 diff --git a/mr b/mr index b2cb388..8e845a9 100755 --- a/mr +++ b/mr @@ -428,9 +428,10 @@ sub action { #{{{ } $dir=~s/^(.*)\/[^\/]+\/?$/$1/; + if (! -d $dir) { print "mr $action: creating parent directory $dir\n" if $verbose; - mkdir $dir; + my $ret=system("mkdir", "-p", $dir); } } elsif ($action eq 'update') { -- 2.39.5