From: Michael Tremer Date: Thu, 26 Nov 2009 21:10:43 +0000 (+0100) Subject: naoki: Throw a warning when package is tried to be decompressed but was not built... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb84cec10e39a6e9314eac7a2e1a327169b67258;p=ipfire-3.x.git naoki: Throw a warning when package is tried to be decompressed but was not built, yet. --- diff --git a/tools/common-package-functions b/tools/common-package-functions index 6d08db5c9..078d187bb 100644 --- a/tools/common-package-functions +++ b/tools/common-package-functions @@ -411,6 +411,10 @@ function package_decompress() { local file local pkg for pkg in $@; do + if ! package_is_built ${pkg}; then + log WARNING "Cannot extract package \"${pkg}\". It has not been built, yet." + continue + fi for file in $(package_packages ${pkg}); do PATH=${TOOLS_DIR}/sbin:${TOOLS_DIR}/bin:${PATH} \ ${BASEDIR}/src/pakfire/decompressor --root=${BUILD_DIR} \