aboutsummaryrefslogtreecommitdiff
path: root/trunk/lib
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-27 20:06:56 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-27 20:06:56 +0000
commit81c2c0ef6e6223349a07d26f420dcc140f0337de (patch)
tree7b902fa8d494d216e661d26affac7b2568c26e32 /trunk/lib
parent353fd93a94a3a24c1c9ed24d4c5b696fb008ee35 (diff)
downloadsimplepkg-81c2c0ef6e6223349a07d26f420dcc140f0337de.tar.gz
simplepkg-81c2c0ef6e6223349a07d26f420dcc140f0337de.tar.bz2
fixes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@547 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/lib')
-rw-r--r--trunk/lib/common.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index 2fc49c9..8ff4eb2 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -778,10 +778,13 @@ function update_md5_checksum {
# update CHECKSUMS.md5
# usage: update_md5_checksums <folder> <file>
- if [ -z "$2" ] || [ ! -d "$1" ] || [ ! -f "$file" ]; then
+ if [ -z "$2" ] || [ ! -d "$1" ] || [ ! -f "$1/$2" ]; then
return 1
fi
+ CWD="`pwd`"
+ cd $1
+
if ! echo $2 | grep -q -e "^\.\/"; then
# add ./ in front of the file name
file="./$1"
@@ -802,6 +805,8 @@ function update_md5_checksum {
svn_add CHECKSUMS.md5
svn_add CHECKSUMS.md5.gz
+ cd $CWD
+
}
function gen_meta {