summaryrefslogtreecommitdiff
path: root/openwrt/scripts/ipkg
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-08-20 15:23:07 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-08-20 15:23:07 +0000
commitaf6b2d58bc063e73c667afe08e3c73f4d4201529 (patch)
treefd7d0cd3b153889f04650e0bae91f6d4d02e7fec /openwrt/scripts/ipkg
parent61ce9414b02b9f9b11c8500d41476255c78b749d (diff)
downloadmtk-20170518-af6b2d58bc063e73c667afe08e3c73f4d4201529.zip
mtk-20170518-af6b2d58bc063e73c667afe08e3c73f4d4201529.tar.gz
mtk-20170518-af6b2d58bc063e73c667afe08e3c73f4d4201529.tar.bz2
add ipkg fix from whiterussian
SVN-Revision: 1704
Diffstat (limited to 'openwrt/scripts/ipkg')
-rwxr-xr-xopenwrt/scripts/ipkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/openwrt/scripts/ipkg b/openwrt/scripts/ipkg
index efbeb7d..6cd1cb4 100755
--- a/openwrt/scripts/ipkg
+++ b/openwrt/scripts/ipkg
@@ -121,6 +121,8 @@ Valid destinations are directories or one of the dest names from $IPKG_CONF:" >&
IPKG_TMP=$IPKG_ROOT/tmp/ipkg
fi
+ [ -e "$IPKG_TMP" ] || mkdir -p $IPKG_TMP
+
# Destination specific ipkg meta-data directory
IPKG_STATE_DIR=$IPKG_ROOT/$IPKG_DIR_PREFIX
@@ -690,8 +692,6 @@ Status: install ok not-installed" | ipkg_status_update_sd $sd $pkg
return 1;
fi
- [ -e "$IPKG_TMP" ] || mkdir -p $IPKG_TMP
-
echo ""
local tmp_pkg_file="$IPKG_TMP/"`ipkg_file_part $filename`
if ! ipkg_download `ipkg_src_byname $src`/$filename $tmp_pkg_file; then