diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-08-20 15:23:07 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-08-20 15:23:07 +0000 |
commit | d112e969ed429512a3f38da74bc499748f7bc9be (patch) | |
tree | a8d9a2d47890e58f15165e57f76efe796a04cfbe | |
parent | 553c37710ee38deba3faeb36c2a7471a15475be6 (diff) | |
download | upstream-d112e969ed429512a3f38da74bc499748f7bc9be.tar.gz upstream-d112e969ed429512a3f38da74bc499748f7bc9be.tar.bz2 upstream-d112e969ed429512a3f38da74bc499748f7bc9be.zip |
add ipkg fix from whiterussian
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1704 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-x | scripts/ipkg | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/ipkg b/scripts/ipkg index efbeb7dd58..6cd1cb440a 100755 --- a/scripts/ipkg +++ b/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 |