aboutsummaryrefslogtreecommitdiff
path: root/trunk/lib/common.sh
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-27 20:21:51 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-27 20:21:51 +0000
commitbe95baed1c9f7088840dda2473c41f0bf0b9bacb (patch)
treee9350935aadf3a56078422f59571cdd51f0677d7 /trunk/lib/common.sh
parentc198e50ec6d47017216add051edeed6b807440f5 (diff)
downloadsimplepkg-be95baed1c9f7088840dda2473c41f0bf0b9bacb.tar.gz
simplepkg-be95baed1c9f7088840dda2473c41f0bf0b9bacb.tar.bz2
fixes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@551 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/lib/common.sh')
-rw-r--r--trunk/lib/common.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index 944e39a..2059e34 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -793,7 +793,8 @@ function update_md5_checksum {
else
# remove the old entry and add a new one
sed -i "/ \.*\/*$(regexp_slash $file)$/d" CHECKSUMS.md5
- md5sum $file >> CHECKSUMS.md5
+ file="`echo $file | sed -e 's/\.*\/*//'`"
+ md5sum ./$file >> CHECKSUMS.md5
fi
cat CHECKSUMS.md5 | gzip -9 -c - > CHECKSUMS.md5.gz