From 8f02115e50573be0a5c6653f2a4a2bb6d7459911 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 20 Feb 2022 02:45:55 +0000 Subject: added file lookup --- src/install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/install.sh') diff --git a/src/install.sh b/src/install.sh index 432af27..6c02fab 100644 --- a/src/install.sh +++ b/src/install.sh @@ -15,10 +15,18 @@ install_package () { local checksum="$installed_dir/checksum" mkdir -p "$installed_dir" + [ -f $files ] && mv $files $files.old extract $1 > $files cp $info_file $info md5sum $pkg_file | cut -d' ' -f1 > $checksum + + if [ -f "$files.old" ]; then + for file in $(diff $files $files.old | grep ^\> | cut -d' ' -f2); do + rm -f ${SYSROOT}$file + done + rm $files.old + fi } get_package_filecount() { -- cgit v1.2.1