]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
naoki: Throw a warning when package is tried to be decompressed but was not built...
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 26 Nov 2009 21:10:43 +0000 (22:10 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 26 Nov 2009 21:10:43 +0000 (22:10 +0100)
tools/common-package-functions

index 6d08db5c9bec9b7f9eeeb85fd4768cf2ee9b28d9..078d187bbac2f98efc1cc07f4683d2d6afd8cdb9 100644 (file)
@@ -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} \