Lines Matching refs:ptch
536 def protoCatalog(base, ptch) : argument
550 ptchFilesList = list(findFiles(ptch))
551 ptchStringLength = len(ptch)
608 def flistCatalog(base, ptch, flist) : argument
646 if not os.path.exists(ptch + fn) :
649 if os.path.exists(ptch + f) :
651 elif os.path.exists(ptch + "root_" + arch + "/" + f) :
658 if os.path.islink(ptch + fn) :
669 os.path.islink(ptch + fn)) :
929 def compareElfs(base, ptch, quiet) : argument
941 ptch_header = get_elfheader(ptch)
969 base + " but not in " + ptch +
985 ptch + " but not in " + base +
1011 s2 = extract_elf_section(ptch, sect);
1018 data = diff_elf_section(base, ptch,
1064 def compareArchives(base, ptch, fileType) : argument
1075 if compareBasic(base, ptch, True, fileType) == 0 :
1094 ptchCmd = "cp -fp " + ptch + " " + ArchTmpDir2
1166 def compareBasic(base, ptch, quiet, fileType) : argument
1170 if quiet and os.stat(base)[ST_SIZE] != os.stat(ptch)[ST_SIZE] :
1181 with open(ptch, 'rb') as fh:
1184 error("could not open " + ptch)
1192 diffs = diffFileData(base, ptch)
1206 def compareByDumping(base, ptch, quiet, fileType) : argument
1211 tmpFile2 = tmpDir2 + os.path.basename(ptch) + t.name
1218 ptchCmd = (lintdump_cmd + " -ir " + ptch +
1225 ptchCmd = ("echo .dump | " + sqlite_cmd + ptch + " > " +
1299 ptch = ptchRoot + fn
1301 compareOneFile(base, ptch, False)
1309 def compareOneFile(base, ptch, quiet) : argument
1314 ptype = getTheFileType(ptch)
1330 return compareElfs(base, ptch, quiet)
1333 return compareArchives(base, ptch, fileType)
1336 return compareBasic(base, ptch, quiet, fileType)
1339 return compareByDumping(base, ptch, quiet, fileType)
1342 return compareByDumping(base, ptch, quiet, fileType)
1346 return compareBasic(base, ptch, quiet, fileType)