extras-buildsys/server Repo.py,1.16.2.3.4.4,1.16.2.3.4.5
Michael Schwendt
mschwendt at fedoraproject.org
Mon Sep 29 10:44:16 UTC 2008
Author: mschwendt
Update of /cvs/fedora/extras-buildsys/server
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv16839
Modified Files:
Tag: Plague-0_4_5
Repo.py
Log Message:
use try...finally in _update_repo_with_pushlock
Index: Repo.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/server/Repo.py,v
retrieving revision 1.16.2.3.4.4
retrieving revision 1.16.2.3.4.5
diff -u -r1.16.2.3.4.4 -r1.16.2.3.4.5
--- Repo.py 4 Sep 2008 20:24:55 -0000 1.16.2.3.4.4
+++ Repo.py 29 Sep 2008 10:44:15 -0000 1.16.2.3.4.5
@@ -102,14 +102,10 @@
try:
self._update_repo()
- except:
+ finally:
if lockfile:
fcntl.flock(lockfile, fcntl.LOCK_UN)
lockfile.close()
- raise
- if lockfile:
- fcntl.flock(lockfile, fcntl.LOCK_UN)
- lockfile.close()
def _update_repo(self):
""" Copy new RPMS to each repo, and update each repo at the end """
More information about the fedora-extras-commits
mailing list