From 9430cf5c7e87c1b99276c1c612730c486b975406 Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Sun, 27 May 2012 11:09:32 +0200 Subject: [PATCH] Automatically create srcdir if it is missing --- buildpkg.functions | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/buildpkg.functions b/buildpkg.functions index cb76c37..8437fbb 100644 --- a/buildpkg.functions +++ b/buildpkg.functions @@ -391,6 +391,11 @@ unpack() local suffix local absfile + # Create the $srcdir if it is missing + if [ ! -d $srcdir ]; then + echo "Creating $srcdir" + ${__mkdir} -p $srcdir + fi setdir $srcdir # If source contains an URL then first