summaryrefslogtreecommitdiff
path: root/src/install.sh
diff options
context:
space:
mode:
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() {