[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fedora-extras-commits
Subject:    extras-buildsys/builder builder.py,1.44.2.1,1.44.2.2
From:       "Daniel Williams" (dcbw) <fedora-extras-commits () redhat ! com>
Date:       2005-10-31 17:02:18
Message-ID: 200510311702.j9VH2nWV007266 () cvs-int ! fedora ! redhat ! com
[Download RAW message or body]

Author: dcbw

Update of /cvs/fedora/extras-buildsys/builder
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7220/builder

Modified Files:
      Tag: STABLE_0_4
	builder.py 
Log Message:
2005-10-31  Dan Williams  <dcbw@redhat.com>

    Patch from Alexandr Kanevskiy <kad@crystalowl.net>
    * builder/builder.py
        - (_status_prepping): catch mock failure case earlier




Index: builder.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/builder/builder.py,v
retrieving revision 1.44.2.1
retrieving revision 1.44.2.2
diff -u -r1.44.2.1 -r1.44.2.2
--- builder.py	25 Oct 2005 04:48:27 -0000	1.44.2.1
+++ builder.py	31 Oct 2005 17:02:16 -0000	1.44.2.2
@@ -352,6 +352,10 @@
     def _status_prepping(self):
         self._watch_mock('failed', 'failed')
 
+        # Check that mock didn't failed already
+        if self._status != 'prepping':
+               return
+
         # We need to make sure that mock has dumped the status file withing a certain
         # amount of time, otherwise we can't tell what it's doing
         mockstatusfile = os.path.join(self._state_dir, 'status')

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic