From 65643c1681e1ca1f3abb0c3a1f2b67cdf7d6dffd Mon Sep 17 00:00:00 2001
From: Philipp Felix Hoefler
Date: Mon, 22 Feb 2016 14:12:07 +0100
Subject: [PATCH] scripts/unpack: creates empty build-dir for packages without
sources so deepmd5 works
---
scripts/unpack | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/scripts/unpack b/scripts/unpack
index d1576bc92b..43a46f054d 100755
--- a/scripts/unpack
+++ b/scripts/unpack
@@ -94,6 +94,10 @@ if [ -d "$PKG_DIR/sources" ]; then
cp -PRf $PKG_DIR/sources/* $BUILD/${PKG_NAME}-${PKG_VERSION}
fi
+if [ -z "$PKG_URL" ]; then
+ mkdir -p "${BUILD}/${PKG_NAME}-${PKG_VERSION}"
+fi
+
if [ "$(type -t post_unpack)" = "function" ]; then
post_unpack
fi