Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=82cc33d6ed5536ebdac2d81bce65abd5bdf3bb68

commit 82cc33d6ed5536ebdac2d81bce65abd5bdf3bb68
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date:   Thu Jun 12 21:26:03 2008 +0200

repoman server: fix 4 lock leaks (on error)

diff --git a/repoman b/repoman
index 6900e1a..fb1e4ec 100755
--- a/repoman
+++ b/repoman
@@ -190,10 +190,12 @@ server()
fi
if ! cd source/$group/$pkg; then
echo "There is no package with this group!"
+                       rm -f .git/lock
return
fi
if ! source FrugalBuild; then
echo "Failed to parse the FrugalBuid!"
+                       rm -f .git/lock
return
fi
cd - >/dev/null
@@ -240,10 +242,12 @@ server()
if ! _check_nobuild; then
if [ ! -e $fdb ]; then
echo "No package database to clean from!"
+                                       rm -f .git/lock
return
else
if ! arch=$arch updatesync del $fdb $pkg; then
echo "updatesync failed!"
+                                               rm -f .git/lock
return
fi
fi
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to