summaryrefslogtreecommitdiff
path: root/src/install.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-02-20 02:45:55 +0000
committerdavidovski <david@davidovski.xyz>2022-02-20 02:45:55 +0000
commit8f02115e50573be0a5c6653f2a4a2bb6d7459911 (patch)
treec1c8fb3335bf9f940abd6aae8b2713e4443319db /src/install.sh
parente5bc87ffc368799685b9c9bf0e01db35ee974540 (diff)
added file lookup
Diffstat (limited to 'src/install.sh')
-rw-r--r--src/install.sh8
1 files changed, 8 insertions, 0 deletions
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() {