From fbcdbde679ce38c611c8faf46c500e23e271cade Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 22 Dec 2008 06:27:34 +0100 Subject: [PATCH] install_funcs.sh: a meta-template needs $destdir. --HG-- extra : convert_revision : 176760b9d895a32c95f48078a28ca85598de95a3 --- shutils/install_funcs.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shutils/install_funcs.sh b/shutils/install_funcs.sh index 4f77ab9e6e5..e139a62e00f 100644 --- a/shutils/install_funcs.sh +++ b/shutils/install_funcs.sh @@ -36,8 +36,12 @@ install_src_phase() [ -z $pkg ] && [ -z $pkgname ] && return 1 # # There's nothing we can do if we are a meta template. + # Just creating the dir is enough to write the package metadata. # - [ "$build_style" = "meta-template" ] && return 0 + if [ "$build_style" = "meta-template" ]; then + mkdir -p $XBPS_DESTDIR/$pkgname-$version + return 0 + fi [ ! -d $wrksrc ] && msg_error "unexistent build directory [$wrksrc]"