Lines Matching defs:base
265 def diffData(base, ptch, d1, d2) :
268 tmpFile1 = tmpDir1 + os.path.basename(base) + t.getName()
302 # e.g. proto.base/root_sparc/usr/src/cmd/prstat => usr/src/cmd/prstat
360 # arguments, the paths to the base (old), ptch (new) proto areas
493 # Examine all files in base, ptch
497 # a list of deleted files (files found only in base)
499 def protoCatalog(base, ptch) :
507 debug("Getting the list of files in the base area");
508 baseFilesList = list(findFiles(base))
509 baseStringLength = len(base)
517 # Inventory files in the base proto area
518 debug("Determining the list of regular files in the base area");
537 # Deleted files appear in the base area, but not the patch area
545 # in both the base and patch proto areas
555 # New files appear in the patch area, but not the base
569 # a list of deleted files (files found only in base)
571 def flistCatalog(base, ptch, flist) :
597 # to $ROOT or to the base/ptch directory specified on
601 if os.path.exists(base + f) :
603 elif os.path.exists(base + "root_" + arch + "/" + f) :
619 if os.path.islink(base + fn) : # ignore links
631 if os.path.islink(base + fn) and \
825 def compareElfs(base, ptch, quiet) :
830 base_header = get_elfheader(base)
843 fileName = fnFormat(base)
863 base + " but not in " + ptch + \
879 ptch + " but not in " + base + \
900 s1 = extract_elf_section(base, sect);
912 data = diff_elf_section(base, ptch, \
953 def compareArchives(base, ptch, fileType) :
955 fileName = fnFormat(base)
957 ArchTmpDir1 = tmpDir1 + os.path.basename(base) + t.getName()
958 ArchTmpDir2 = tmpDir2 + os.path.basename(base) + t.getName()
964 if compareBasic(base, ptch, True, fileType) == 0 :
980 baseCmd = "cp -fp " + base + " " + ArchTmpDir1
1016 # Trim leading path off base/ptch file lists
1061 def compareBasic(base, ptch, quiet, fileType) :
1063 fileName = fnFormat(base);
1065 if quiet and os.stat(base)[ST_SIZE] != os.stat(ptch)[ST_SIZE] :
1069 baseFile = open(base)
1071 error("could not open " + base)
1107 diffs = diffData(base, ptch, baseData, ptchData)
1121 def compareByDumping(base, ptch, quiet, fileType) :
1123 fileName = fnFormat(base);
1125 tmpFile1 = tmpDir1 + os.path.basename(base) + t.getName()
1129 baseCmd = lintdump_cmd + " -ir " + base + \
1138 baseCmd = "echo .dump | " + sqlite_cmd + base + " > " + \
1226 base = baseRoot + fn
1229 compareOneFile(base, ptch, False)
1237 def compareOneFile(base, ptch, quiet) :
1241 btype = getTheFileType(base)
1247 fileName = fnFormat(base)
1257 return compareElfs(base, ptch, quiet)
1260 return compareArchives(base, ptch, fileType)
1263 return compareBasic(base, ptch, quiet, fileType)
1266 return compareByDumping(base, ptch, quiet, fileType)
1269 return compareByDumping(base, ptch, quiet, fileType)
1273 return compareBasic(base, ptch, quiet, fileType)
1392 # validate the base and patch paths
1433 # either from the specified base and patch proto areas, or from