Correct an indentation bug, add some missing modelines, and correct all the modelines...
authorChris Larson <clarson@kergoth.com>
Sun, 9 May 2004 05:51:18 +0000 (05:51 +0000)
committerChris Larson <clarson@kergoth.com>
Sun, 9 May 2004 05:51:18 +0000 (05:51 +0000)
19 files changed:
bin/oe/__init__.py
bin/oe/build.py
bin/oe/data.py
bin/oe/event.py
bin/oe/fetch.py
bin/oe/make.py
bin/oe/manifest.py
bin/oe/parse/ConfHandler.py
bin/oe/parse/OEHandler.py
bin/oe/parse/SRPMHandler.py
bin/oe/parse/__init__.py
bin/oebuild
bin/oeimage
bin/oeinstall
bin/oemake
bin/oemaked
bin/oemakepkgs
bin/oeread
bin/parse_manifest

index fc9bef6..9a3de16 100644 (file)
@@ -1,4 +1,6 @@
 #!/usr/bin/python
+# ex:ts=4:sw=4:sts=4:et
+# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
 """
 OpenEmbedded Build System Python Library
 
@@ -1060,7 +1062,7 @@ class digraph:
         self.dict={}
         #okeys = keys, in order they were added (to optimize firstzero() ordering)
         self.okeys=[]
-       self.__callback_cache=[]
+        self.__callback_cache=[]
 
     def __str__(self):
         str = ""
@@ -1164,11 +1166,11 @@ class digraph:
     def walkdown(self, item, callback, debug = None, usecache = False):
         if not self.hasnode(item):
             return 0
-           
-       if usecache:
-           if self.__callback_cache.count(item):
-               if debug:    
-                   print "hit cache for item: %s" % item
+
+        if usecache:
+            if self.__callback_cache.count(item):
+                if debug:
+                    print "hit cache for item: %s" % item
                 return 1
 
         parents = self.getparents(item)
@@ -1176,8 +1178,8 @@ class digraph:
         for p in parents:
             if p in children:
 #                print "%s is both parent and child of %s" % (p, item)
-               if usecache:
-                   self.__callback_cache.append(p)
+                if usecache:
+                    self.__callback_cache.append(p)
                 ret = callback(self, p)
                 if ret == 0:
                     return 0
@@ -1190,8 +1192,8 @@ class digraph:
             ret = self.walkdown(p, callback, debug, usecache)
             if ret == 0:
                 return 0
-       if usecache:
-           self.__callback_cache.append(item)
+        if usecache:
+            self.__callback_cache.append(item)
         return callback(self, item)
 
     def walkup(self, item, callback):
index c508b97..c7b0972 100644 (file)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# ex:ts=4:sw=4:tw=78:et
+# ex:ts=4:sw=4:sts=4:et
 # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
 """
 OpenEmbedded 'Build' implementation
index 562cd49..e6b1ee6 100644 (file)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# ex:ts=4:sw=4:tw=78:et
+# ex:ts=4:sw=4:sts=4:et
 # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
 """
 OpenEmbedded 'Data' implementations
index d963d44..47d3bd0 100644 (file)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# ex:ts=4:sw=4:tw=78:et
+# ex:ts=4:sw=4:sts=4:et
 # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
 """
 OpenEmbedded 'Event' implementation
index ecc69be..33b5099 100644 (file)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# ex:ts=4:sw=4:tw=78:et
+# ex:ts=4:sw=4:sts=4:et
 # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
 """
 OpenEmbedded 'Fetch' implementations
index 3f4e0f0..dcc44d3 100644 (file)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# ex:ts=4:sw=4:tw=78:et
+# ex:ts=4:sw=4:sts=4:et
 # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
 """
 OpenEmbedded 'Make' implementations
index b59a4c2..577c264 100644 (file)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# ex:ts=4:sw=4:tw=78:et
+# ex:ts=4:sw=4:sts=4:et
 # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
 
 import os, sys
index 0637d14..b4e299e 100644 (file)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# ex:ts=4:sw=4:tw=78:et
+# ex:ts=4:sw=4:sts=4:et
 # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
 """class for handling configuration data files
 
index 63075e8..d0ef755 100644 (file)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# ex:ts=4:sw=4:tw=78:et
+# ex:ts=4:sw=4:sts=4:et
 # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
 """class for handling .oe files
 
index 2864f67..db1b9ce 100644 (file)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# ex:ts=4:sw=4:tw=78:et
+# ex:ts=4:sw=4:sts=4:et
 # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
 """class for handling .src.rpm files
 
index c4f0cb0..5a07e67 100644 (file)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# ex:ts=4:sw=4:tw=78:et
+# ex:ts=4:sw=4:sts=4:et
 # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
 """
 OpenEmbedded Parsers
index 94240ca..753a7d3 100644 (file)
@@ -1,4 +1,6 @@
 #!/usr/bin/env python
+# ex:ts=4:sw=4:sts=4:et
+# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
 
 import os, sys, getopt, copy
 sys.path.append('/usr/share/oe')
index 2d7a5f8..8c4680c 100644 (file)
@@ -1,4 +1,6 @@
 #!/usr/bin/env python
+# ex:ts=4:sw=4:sts=4:et
+# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
 
 import sys, os, oe
 from oe import *
index 99c6708..e584a11 100644 (file)
@@ -1,4 +1,6 @@
 #!/usr/bin/env python
+# ex:ts=4:sw=4:sts=4:et
+# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
 
 import sys, os, oe
 from oe import *
index 3e8d7f8..8381723 100644 (file)
@@ -1,4 +1,6 @@
 #!/usr/bin/env python
+# ex:ts=4:sw=4:sts=4:et
+# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
 
 import sys, os, getopt, glob, copy, os.path, re
 sys.path.append('/usr/share/oe')
index bf2b494..1046e11 100644 (file)
@@ -1,4 +1,6 @@
 #!/usr/bin/env python
+# ex:ts=4:sw=4:sts=4:et
+# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
 
 import os, sys, stat, daemon, time
 
index 076a516..21f34c6 100644 (file)
@@ -1,4 +1,6 @@
 #!/usr/bin/env python
+# ex:ts=4:sw=4:sts=4:et
+# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
 
 #
 # This will become what oemake should be: a builder for packages, that
index a815508..490728a 100644 (file)
@@ -1,4 +1,6 @@
 #!/usr/bin/env python
+# ex:ts=4:sw=4:sts=4:et
+# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
 
 import sys, copy, oe, oe.parse, oe.build
 #from oe import *
index 3d3c3ea..81b551e 100644 (file)
@@ -1,4 +1,6 @@
 #!/usr/bin/env python
+# ex:ts=4:sw=4:sts=4:et
+# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
 
 import sys, oe, oe.manifest