mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 22:52:28 +02:00
[scripts] ipkg:
strip directory entries from package file list when offline installing .ipk archives, this prevents opkg from removing directories like /usr later on when trying to uninstall preinstalled packages (partial fix for #6772) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19936 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e89e75277c
commit
e3f2df6671
@ -875,7 +875,7 @@ diff -u $dest/$conffile $IPKG_TMP/$pkg/data/$conffile"
|
|||||||
rm -rf $IPKG_TMP/$pkg/data
|
rm -rf $IPKG_TMP/$pkg/data
|
||||||
rmdir $IPKG_TMP/$pkg
|
rmdir $IPKG_TMP/$pkg
|
||||||
rm -f $info_dir/$pkg.list
|
rm -f $info_dir/$pkg.list
|
||||||
$pkg_extract_stdout $filename ./data.tar.gz | zcat | tar tf - | sed -e 's/^\.//' > $info_dir/$pkg.list
|
$pkg_extract_stdout $filename ./data.tar.gz | zcat | tar tf - | sed -e '/\/$/d; s/^\.//' > $info_dir/$pkg.list
|
||||||
|
|
||||||
if [ -x "$info_dir/$pkg.postinst" ]; then
|
if [ -x "$info_dir/$pkg.postinst" ]; then
|
||||||
$info_dir/$pkg.postinst configure
|
$info_dir/$pkg.postinst configure
|
||||||
|
Loading…
Reference in New Issue
Block a user