summaryrefslogtreecommitdiff
path: root/db-functions
diff options
context:
space:
mode:
authorFrancois Charette <francois@archlinux.org>2009-07-20 09:47:08 -0700
committerAaron Griffin <aaronmgriffin@gmail.com>2009-07-20 09:47:08 -0700
commitce9a9b1951cefbdf6b2df93b07eb9120295bec7a (patch)
treecad2922e67e348fef08d3e88c156eee6e1328aff /db-functions
parente53a4351d72d2a175d5342b71c1f19304840cd8e (diff)
Minor syntactic improvements in db-update
* also added error msg for repo_lock in db-functions [Aaron: keep quotes around $WORKDIR] Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'db-functions')
-rw-r--r--db-functions3
1 files changed, 3 insertions, 0 deletions
diff --git a/db-functions b/db-functions
index 8111c6d..6d84d31 100644
--- a/db-functions
+++ b/db-functions
@@ -40,6 +40,9 @@ repo_lock () { #repo_lock repo-name arch
exit 1
else
/bin/touch "$LOCKFILE"
+ if [ ! -f "$LOCKFILE" ]; then
+ echo "error: could not create repo lock... something went wrong!"
+ fi
set_umask
fi
}