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)

SVN-Revision: 19936
This commit is contained in:
Jo-Philipp Wich 2010-03-01 18:01:33 +00:00
parent 0cd5b9983f
commit e2e39dae90

View file

@ -875,7 +875,7 @@ diff -u $dest/$conffile $IPKG_TMP/$pkg/data/$conffile"
rm -rf $IPKG_TMP/$pkg/data
rmdir $IPKG_TMP/$pkg
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
$info_dir/$pkg.postinst configure