Lines Matching defs:ptch

265 def diffData(base, ptch, d1, d2) :
269 tmpFile2 = tmpDir2 + os.path.basename(ptch) + t.getName()
360 # arguments, the paths to the base (old), ptch (new) proto areas
493 # Examine all files in base, ptch
496 # a list of new files (files found only in ptch) and
499 def protoCatalog(base, ptch) :
513 ptchFilesList = list(findFiles(ptch))
514 ptchStringLength = len(ptch)
568 # a list of new files (files found only in ptch) and
571 def flistCatalog(base, ptch, flist) :
597 # to $ROOT or to the base/ptch directory specified on
609 if not os.path.exists(ptch + fn) :
612 if os.path.exists(ptch + f) :
614 elif os.path.exists(ptch + "root_" + arch + "/" + f) :
621 if os.path.islink(ptch + fn) :
632 os.path.islink(ptch + fn) :
825 def compareElfs(base, ptch, quiet) :
836 ptch_header = get_elfheader(ptch)
863 base + " but not in " + ptch + \
879 ptch + " but not in " + base + \
905 s2 = extract_elf_section(ptch, sect);
912 data = diff_elf_section(base, ptch, \
953 def compareArchives(base, ptch, fileType) :
964 if compareBasic(base, ptch, True, fileType) == 0 :
987 ptchCmd = "cp -fp " + ptch + " " + ArchTmpDir2
1016 # Trim leading path off base/ptch file lists
1061 def compareBasic(base, ptch, quiet, fileType) :
1065 if quiet and os.stat(base)[ST_SIZE] != os.stat(ptch)[ST_SIZE] :
1074 ptchFile = open(ptch)
1076 error("could not open " + ptch)
1107 diffs = diffData(base, ptch, baseData, ptchData)
1121 def compareByDumping(base, ptch, quiet, fileType) :
1126 tmpFile2 = tmpDir2 + os.path.basename(ptch) + t.getName()
1133 ptchCmd = lintdump_cmd + " -ir " + ptch + \
1140 ptchCmd = "echo .dump | " + sqlite_cmd + ptch + " > " + \
1227 ptch = ptchRoot + fn
1229 compareOneFile(base, ptch, False)
1237 def compareOneFile(base, ptch, quiet) :
1242 ptype = getTheFileType(ptch)
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)