]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
fixes
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Thu, 27 Nov 2008 20:21:51 +0000 (20:21 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Thu, 27 Nov 2008 20:21:51 +0000 (20:21 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@551 04377dda-e619-0410-9926-eae83683ac58

trunk/lib/common.sh

index 944e39a0c6df8482b0ec5b1676d0f534a55ca48a..2059e34bc6c96181a21b304c2efdb2433c75b22b 100644 (file)
@@ -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