remove ipkg list file before creating a new one (for squashfs)
authorFelix Fietkau <nbd@openwrt.org>
Sun, 10 Apr 2005 21:20:25 +0000 (21:20 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 10 Apr 2005 21:20:25 +0000 (21:20 +0000)
SVN-Revision: 614

openwrt/target/default/target_skeleton/bin/ipkg

index c05c2d13e55b7a4426350c8d9d66a614e11b23c1..dd44dd609e8abae3b7af03980dc423af55e88201 100755 (executable)
@@ -874,6 +874,7 @@ diff -u $dest/$conffile $IPKG_TMP/$pkg/data/$conffile"
        (cd $IPKG_TMP/$pkg/data/; tar cf - . | (cd $owd; cd $dest; tar xf -))
        rm -rf $IPKG_TMP/$pkg/data
        rmdir $IPKG_TMP/$pkg
+       rm -f $info_dir/$pkg.list
        $pkg_extract_stdout $filename ./data.tar.gz | tar tzf - | sed -e 's/^\.//' > $info_dir/$pkg.list
 
        if [ -x "$info_dir/$pkg.postinst" ]; then