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

Dan Williams dcbw at redhat.com
Sat Jun 3 04:07:19 UTC 2006


On Fri, 2006-06-02 at 22:42 +0200, Michael Schwendt wrote:
> 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:

Thanks, fixed in CVS HEAD and STABLE_4, and on extras64 as well.

Dan

> --- 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)
>  
> 
> --
> Fedora-buildsys-list mailing list
> Fedora-buildsys-list at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-buildsys-list




More information about the Fedora-buildsys-list mailing list