summaryrefslogtreecommitdiff
path: root/openwrt/target
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
commit39b95c064ade69b384e80419b566ff7a08da8479 (patch)
tree204ed438d1bb03f2606352a747a1a8901c9a9aae /openwrt/target
parent6efe56b1466e6eb5633986204c8d70ac41601c5f (diff)
downloadmtk-20170518-39b95c064ade69b384e80419b566ff7a08da8479.zip
mtk-20170518-39b95c064ade69b384e80419b566ff7a08da8479.tar.gz
mtk-20170518-39b95c064ade69b384e80419b566ff7a08da8479.tar.bz2
Allow use of the offline_root option
SVN-Revision: 311
Diffstat (limited to 'openwrt/target')
-rwxr-xr-xopenwrt/target/default/target_skeleton/bin/ipkg3
1 files changed, 2 insertions, 1 deletions
diff --git a/openwrt/target/default/target_skeleton/bin/ipkg b/openwrt/target/default/target_skeleton/bin/ipkg
index bf275d8..1945419 100755
--- a/openwrt/target/default/target_skeleton/bin/ipkg
+++ b/openwrt/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}\\