[PATCH] Re: Adding a lock file to plague server Repo.py _update_repo()

Michael Schwendt bugs.michael at gmx.net
Fri Jun 2 20:42:54 UTC 2006


On Fri, 02 Jun 2006 12:38:40 -0400, Dan Williams wrote:

> Patch is applied to the Extras buildsys build server now too, so feel
> free to use the lockfile stuff in scripts and whatever on extras64.

Great. Found a bug, though:

--- Repo.py.~1.26.~	2006-06-02 17:45:30.000000000 +0200
+++ Repo.py	2006-06-02 22:40:36.000000000 +0200
@@ -207,7 +207,7 @@
         # Try to open the lockfile, creating it if it doesn't exist
         try:
             lockfile = open(self._lockfile_path, 'w')
-        except OSError, (errno, strerr):
+        except IOError, (errno, strerr):
             print "Repo Error (%s): opening lockfile %s failed.  Output: (errno %d) '%s'" % (target_string,
                     self._lockfile_path, errno, strerr)
 




More information about the Fedora-buildsys-list mailing list