gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject cvs commit: jakarta-gump/python/gump context.py
Date Sun, 26 Oct 2003 18:38:05 GMT
ajack       2003/10/26 10:38:05

  Modified:    python/gump context.py
  Log:
  Count 'alias' projects
  
  Revision  Changes    Path
  1.30      +13 -14    jakarta-gump/python/gump/context.py
  
  Index: context.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/context.py,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- context.py	26 Oct 2003 17:00:25 -0000	1.29
  +++ context.py	26 Oct 2003 18:38:05 -0000	1.30
  @@ -306,20 +306,19 @@
       def addState(self,pair):            
           status=pair.status
           # Stand up and be counted
  -        if not stateUnset(status):
  -            if stateOk(status):
  -                self.successes+=1
  -            elif STATUS_PREREQ_FAILURE == status:
  -                self.prereqs+=1
  -            elif STATUS_FAILED == status:
  -                self.failures+=1
  -            elif STATUS_NONE == status:
  -                self.noworks+=1
  -            elif STATUS_COMPLETE == status:
  -                # :TODO: Accurate?
  -                self.packages+=1
  -            else:
  -                self.others+=1
  +        if stateOk(status):
  +            self.successes+=1
  +        elif STATUS_PREREQ_FAILURE == status:
  +            self.prereqs+=1
  +        elif STATUS_FAILED == status:
  +            self.failures+=1
  +        elif STATUS_NONE == status:
  +            self.noworks+=1
  +        elif STATUS_COMPLETE == status:
  +            # :TODO: Accurate?
  +            self.packages+=1
  +        else:
  +            self.others+=1
                   
           # One more project...
           self.projects += 1
  
  
  

Mime
View raw message