diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2014-11-20 14:25:50 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-11-21 08:05:09 +0700 |
commit | 3316d3b4eaac80d464e703a4be3cc237c9347955 (patch) | |
tree | aaec0a7b6cb1af8da75597cc6e048327e4a38b36 /system/slpkg/doinst.sh | |
parent | c24f33c37b99186d6522cafc28c60fddf06caf8a (diff) | |
download | slackbuilds-3316d3b4eaac80d464e703a4be3cc237c9347955.tar.gz |
system/slpkg: Updated for version 2.0.6.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'system/slpkg/doinst.sh')
-rw-r--r-- | system/slpkg/doinst.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/system/slpkg/doinst.sh b/system/slpkg/doinst.sh index 5fb28930db..236b3a62a7 100644 --- a/system/slpkg/doinst.sh +++ b/system/slpkg/doinst.sh @@ -1,3 +1,15 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + rm $NEW + fi +} + +config /etc/slpkg/slpkg.conf.new + if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi |