aboutsummaryrefslogtreecommitdiffstats
path: root/target/default
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2005-03-06 10:58:48 +0000
committerNicolas Thill <nico@openwrt.org>2005-03-06 10:58:48 +0000
commit9fb03b3c626c5360e9fa77c95768641040774838 (patch)
treee6c7dc9c758bb4d9eee5bf1edeb27bc47f35d2a3 /target/default
parent8ac779107270a29070cb013068ef2e5485e484a6 (diff)
downloadmaster-187ad058-9fb03b3c626c5360e9fa77c95768641040774838.tar.gz
master-187ad058-9fb03b3c626c5360e9fa77c95768641040774838.tar.bz2
master-187ad058-9fb03b3c626c5360e9fa77c95768641040774838.zip
Allow use of the offline_root option
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@311 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/default')
-rwxr-xr-xtarget/default/target_skeleton/bin/ipkg3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/default/target_skeleton/bin/ipkg b/target/default/target_skeleton/bin/ipkg
index bf275d842d..19454192b8 100755
--- a/target/default/target_skeleton/bin/ipkg
+++ b/target/default/target_skeleton/bin/ipkg
@@ -882,7 +882,8 @@ diff -u $dest/$conffile $IPKG_TMP/$pkg/data/$conffile"
if [ -n "$new_conffiles" ]; then
new_conffiles='Conffiles: '`echo $new_conffiles | ipkg_protect_slashes`
fi
- local sed_safe_root="`echo $dest | sed -e "s/^${IPKG_OFFLINE_ROOT}//" | ipkg_protect_slashes`"
+ local sed_safe_offline_root="`echo ${IPKG_OFFLINE_ROOT} | ipkg_protect_slashes`"
+ local sed_safe_root="`echo $dest | sed -e "s/^${sed_safe_offline_root}//" | ipkg_protect_slashes`"
sed -e "s/\(Package:.*\)/\1\\
Status: install ok installed\\
Root: ${sed_safe_root}\\