phase1: remove isChangeBuiltin() handling
authorJo-Philipp Wich <jo@mein.io>
Fri, 4 Nov 2016 14:58:46 +0000 (15:58 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 4 Nov 2016 14:58:52 +0000 (15:58 +0100)
The builtin file detection logic is stubbed since quite a while already so
simply drop it now.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
phase1/master.cfg

index 4ff4ced47dc6ac2fda8286e5006d4db6a761e02f..6030def4622d8117b90af1329f8795ba437c2be3 100644 (file)
@@ -159,50 +159,6 @@ def IsAffected(pattern):
                return False
        return CheckAffected
 
-def isPathBuiltin(path):
-       incl = {}
-       pkgs = {}
-       conf = open(".config", "r")
-
-       while True:
-               line = conf.readline()
-               if line == '':
-                       break
-               m = re.match("^(CONFIG_PACKAGE_.+?)=y", line)
-               if m:
-                       incl[m.group(1)] = True
-
-       conf.close()
-
-       deps = open("tmp/.packagedeps", "r")
-
-       while True:
-               line = deps.readline()
-               if line == '':
-                       break
-               m = re.match("^package-\$\((CONFIG_PACKAGE_.+?)\) \+= (\S+)", line)
-               if m and incl.get(m.group(1)) == True:
-                       pkgs["package/%s" % m.group(2)] = True
-
-       deps.close()
-
-       while path != '':
-               if pkgs.get(path) == True:
-                       return True
-               path = os.path.dirname(path)
-
-       return False
-
-def isChangeBuiltin(change):
-       return True
-#      for request in change.build.requests:
-#              for source in request.sources:
-#                      for change in source.changes:
-#                              for file in change.files:
-#                                      if isPathBuiltin(file):
-#                                              return True
-#      return False
-
 
 c['builders'] = []
 
@@ -449,7 +405,6 @@ EOT''' %(ts[0], ts[0], ts[1]) ))
                name = "pkginstall",
                description = "Installing packages",
                command=["make", WithProperties("-j%(nproc:~4)s"), "package/install", "V=s"],
-               doStepIf = isChangeBuiltin,
                haltOnFailure = True
        ))
 
@@ -465,7 +420,6 @@ EOT''' %(ts[0], ts[0], ts[1]) ))
                name = "images",
                description = "Building images",
                command=["make", WithProperties("-j%(nproc:~4)s"), "target/install", "V=s"],
-               doStepIf = isChangeBuiltin,
                haltOnFailure = True
        ))
 
@@ -473,7 +427,6 @@ EOT''' %(ts[0], ts[0], ts[1]) ))
                name = "checksums",
                description = "Calculating checksums",
                command=["make", "-j1", "checksum", "V=s"],
-               doStepIf = isChangeBuiltin,
                haltOnFailure = True
        ))