Lines Matching refs:cmd

42   def WordWrap(cmd, linelen=80):  argument
47 indent = cmd.index("(")+1
55 m = x.search(cmd)
57 parts = cmd.split("\0", 1)
62 cmd = parts[1]
65 cmd = cmd[m.end():]
80 cmd = ('file_getprop("/oem/oem.prop", "{name}") == "{value}" || '
85 self.script.append(cmd)
91 cmd = (' ||\n '.join([('getprop("ro.build.fingerprint") == "%s"') % i
96 self.script.append(cmd)
102 cmd = (' ||\n '.join([('getprop("ro.build.thumbprint") == "%s"') % i
107 self.script.append(cmd)
120 cmd = ('getprop("ro.product.device") == "%s" || '
124 self.script.append(cmd)
128 cmd = ("assert(" +
132 self.script.append(self.WordWrap(cmd))
243 cmd = "delete(" + ",\0".join(['"%s"' % (i,) for i in file_list]) + ");"
244 self.script.append(self.WordWrap(cmd))
251 cmd = ('sha1_check(read_file("{name}"), "{sha1}") || '
253 self.script.append(self.WordWrap(cmd))
266 cmd = ('sha1_check(read_file("%s"), %s) ||' % (tgtfile, tgtsha1))
267 self.script.append(self.WordWrap(cmd))
275 cmd = ['apply_patch("%s",\0"%s",\0%s,\0%d'
278 cmd.append(',\0%s, package_extract_file("%s")' % patchpairs[i:i+2])
279 cmd.append(');')
280 cmd = "".join(cmd)
281 self.script.append(self.WordWrap(cmd))
315 cmd = 'set_metadata("%s", "uid", %d, "gid", %d, "mode", 0%o, ' \
318 cmd += ', "selabel", "%s"' % selabel
319 cmd += ');'
320 self.script.append(cmd)
331 cmd = 'set_metadata_recursive("%s", "uid", %d, "gid", %d, ' \
335 cmd += ', "selabel", "%s"' % selabel
336 cmd += ');'
337 self.script.append(cmd)
346 cmd = ('symlink("%s", ' % (dest,) +
348 self.script.append(self.WordWrap(cmd))