/pkg/src/tests/api/ |
H A D | t_solver.py | 44 def cnf_test(lines): 47 for l in lines:
|
H A D | t_catalog.py | 111 lines = misc.force_text( 131 lines += "set name=pkg.depend.install-hold value=test\n" 132 lines += "set name=pkg.renamed value=true\n" 134 lines += "set name=pkg.obsolete value=true\n" 135 m.set_content(lines, signatures=True)
|
H A D | t_pkglint.py | 3635 lines = [] # giant string of all input lines 3644 lines.append(data) 3651 manifest.set_content("\n".join(lines))
|
H A D | t_api_search.py | 642 lines = fh.readlines() 643 return lines 1941 additional lines."""
|
/pkg/src/modules/actions/ |
H A D | driver.py | 188 lines = [] 194 lines.append(fields + "\n") 200 (name, len(lines))) 201 lines.append("{0} \"{1}\"\n".format(*fields)) 262 lines[line] = comment + lines[line] 288 f.writelines(lines) 429 lines = dcf.readlines() 435 for i, l in enumerate(lines): 440 del lines[ [all...] |
/pkg/src/tests/cli/ |
H A D | t_pkg_info.py | 271 lines = self.output.split("\n") 272 self.assertEqual(lines[1], " Description: Short desc") 273 self.assertEqual(lines[2], 276 lines = self.output.split("\n") 277 self.assertEqual(lines[1], 280 self.assertEqual(lines[2], " WARNING: Proper system update and correct package selection") 281 self.assertEqual(lines[3], " depend on the presence of this incorporation. Removing this") 282 self.assertEqual(lines[4], " package will result in an unsupported system.") 283 self.assertEqual(lines[5], " State: Not installed")
|
H A D | t_pkg_history.py | 332 lines = self.output.splitlines() 333 nentries = len([l for l in lines if l.find("Operation:") >= 0]) 583 lines = p.stdout.readlines() 585 locale_list = [force_str(i.rstrip()) for i in lines]
|
H A D | t_pkg_nasty.py | 144 lines = log.readlines() 145 self.debug("".join(lines[-50:]))
|
H A D | t_pkg_install.py | 3607 lines = pwdfile.readlines() 3608 for i, l in enumerate(lines): 3610 lines[i] = lines[i].replace("& User", 3613 pwdfile.writelines(lines) 5641 # check # lines beginning w/ 'muppets' in group file 6003 lines = pwd_file.readlines() 6004 lines[lineno:lineno] = garbage 6007 pwd_file.writelines(lines) 6013 lines [all...] |
H A D | t_pkg_publisher.py | 1539 lines = self.output.splitlines() 1540 self.assertEqual(lines[0].split()[0], "another-pub") 1541 self.assertEqual(lines[1].split()[0], "test1") 1542 self.assertEqual(lines[2].split()[0], "test2")
|
H A D | t_pkgdep.py | 1104 lines = fh.read() 1106 return lines 1889 lines = open(mpath + ".res", "r").readlines() 1892 for l in lines: 3077 lines = self.__read_file(dependency_res_p) 3084 ), lines) 3085 lines = self.__read_file(provider_res_p) 3086 self.check_res("", lines)
|
H A D | t_pkg_depotd.py | 259 lines = content.splitlines() 274 for line in lines:
|
/pkg/src/modules/flavor/ |
H A D | python.py | 109 def __init__(self, cmd, lines): 110 self.lines = "\n".join(lines) 114 return _("The command {cmd} produced the following lines " 115 "which cannot be understood:\n{lines}").format(
|
/pkg/src/modules/client/transport/ |
H A D | fileobj.py | 194 """Read lines from the remote host, returning an 195 array of the lines that were read. sizehint specifies 197 as lines, that should be returned to the caller.""" 203 lines = [] 208 lines.append(l) 213 return lines
|
/pkg/src/util/publish/ |
H A D | pkglint.py | 233 lines = [] # giant string of all input lines 250 lines.append(data) 257 manifest.set_content(content="\n".join(lines))
|
H A D | pkgfmt.py | 50 # 4) Actions are limited to 80 chars; continuation lines are accepted 130 """Generates the lines in the file as tuples containing 131 (action, prepended macro, list of prepended comment lines); 132 handles continuation lines, transforms, etc.""" 208 # we know that all lines that reach here have actions 504 # If wrapping only resulted in two lines, and the second line 517 # Force 'dir' actions to use four spaces at beginning of lines 683 lines = [] 704 lines.append(tp) 707 lines [all...] |
/pkg/src/modules/client/ |
H A D | printengine.py | 214 splitlines() the buffer and see if there are any complete lines that we 231 the _logger when full lines are available.""" 234 lines = self._stringio.getvalue().splitlines(True) 236 for line in lines:
|
H A D | progress.py | 1181 partially printed lines were present, and flush e.g. stdout.""" 2179 lines = output.splitlines() 2180 nlines = len(lines) 2181 for linenum, line in enumerate(lines): 2186 if lines[linenum].strip() != "": 2573 lines = output.splitlines() 2574 return lines 3107 lines = output.splitlines() 3108 nlines = len(lines) 3109 for linenum, line in enumerate(lines) [all...] |
/pkg/src/modules/ |
H A D | cfgfiles.py | 86 """ given self, return list of lines to be printed. 88 lines = [[self.index[l][2],self.index[l][0]] for l in self.index] 89 lines.sort() 90 return [l[1] for l in lines]
|
H A D | mogrify.py | 601 """ return the lines in the file as a list of tuples containing 718 lines = [] 720 lines.extend(read_file(f, ignoreincludes, 722 lines.append((None, f[0], None)) 727 for line, filename, lineno in lines:
|
/pkg/src/ |
H A D | publish.py | 359 lines = "" # giant string of all input files concatenated together 369 lines += data 377 m.set_content(content=lines) 513 lines = [] # giant string of all input files concatenated together 523 lines.append(data) 530 m.set_content(content="\n".join(lines))
|
H A D | pkgrepo.py | 1162 lines = misc.list_actions_by_attrs(actionlist, attrs) variable 1163 for line in lines: 1601 lines = textwrap.wrap(reason["err"]) 1602 if len(lines) != 1: 1603 for line in lines: 1607 reason["err"] = lines[0]
|
H A D | client.py | 2992 lines = list(misc.list_actions_by_attrs(unprocessed_res, 2995 if not lines: 2998 widths = calc_widths(lines, attrs, widths) 3006 for line in lines: 3097 def calc_widths(lines, attrs, widths=None): 3098 """Given a set of lines and a set of attributes, calculate the minimum 3103 for l in lines: 3219 lines = list(misc.list_actions_by_attrs(actionlist, attrs)) 3220 widths = calc_widths(lines, attrs) 3238 line_gen = sorted(lines, ke [all...] |
/pkg/src/tests/ |
H A D | pkg5unittest.py | 538 lines = content.splitlines() 539 if lines == []: 540 lines = [""] 541 if len(lines) > 1: 542 ins = " [+{0:d} lines...]".format(len(lines) - 1) 545 if isinstance(lines[0], six.text_type): 546 lines[0] = lines[0].encode("utf-8") 548 "echo '{0}{1}' > {2}".format(lines[ [all...] |
/pkg/src/modules/server/ |
H A D | repository.py | 3895 lines = igfd.readlines() 3896 return lines 3918 lines = self.__read_ignored_dep_file(igf) 3919 for le in lines:
|