/pkg/src/tests/api/ |
H A D | t_pkg_api_revert.py | 77 (str(entry[0]), str(entry[1])) 78 for entry in plan.plan_desc
|
H A D | t_history.py | 195 for entry in sorted(os.listdir(h.path)): 196 # Load the history entry. 198 filename=entry) 227 for entry in sorted(os.listdir(h.path)): 228 # Load the history entry. 230 filename=entry) 240 history entry. 249 # Now load all operation data to verify that only an entry 252 for entry in sorted(os.listdir(h.path)): 253 # Load the history entry [all...] |
H A D | t_catalog.py | 276 for (pub, stem, ver), entry, actions in nc.entry_actions( 338 # Verify that retrieving a single entry's actions works as well. 601 (apub, astem, aver), entry = a 602 (bpub, bstem, bver), entry = b 747 # for each entry are correct. 796 entry = cat.get_entry(p2_fmri) 797 self.assertEqual(entry["metadata"], { "foo": True }) 936 for f, entry in nc.entries(info_needed=[nc.DEPENDENCY, 938 self.assertTrue("metadata" not in entry) 945 returned = sorted(entry["action [all...] |
/pkg/src/ |
H A D | rad-invoke.py | 34 import pkg.client.rad_pkg as entry namespace 56 return {"status": entry.ERROR, "errors": [{"reason": text}]} 81 prog_delay = entry.PROG_DELAY 111 return entry.rad_pkg(pargs[0], pargs_json=pargs_json,
|
/pkg/src/modules/ |
H A D | catalog.py | 419 'last' is a boolean value that indicates only the last entry 452 (pub, stem, entry) 454 for entry in reversed(self.__data[pub][stem]) 457 (pub, stem, entry) 459 for entry in self.__data[pub][stem] 464 """Add a catalog entry for a given FMRI or FMRI components. 469 The dict representing the entry is returned to callers, 488 for entry in ver_list: 489 if entry["version"] == ver: 498 entry [all...] |
H A D | p5i.py | 168 for entry in source: 173 if isinstance(entry, fmri.PkgFmri): 174 dest.append(entry.get_fmri( 177 dest.append(str(entry))
|
H A D | misc.py | 858 # the entry format is (<ctype>, <repeat count>, <name>) 865 # the entry format is: (<ctype>, <repeat count>, <name>) 911 # the entry format is: <structure name>: \ 1437 the list entry is a tuple it must conform to the format oulined above. 1481 for entry in opts_table: 1483 if type(entry) != tuple: 1485 if len(entry) == 2: 1486 opt, default = entry 1487 elif len(entry) == 3: 1488 opt, default, dummy_valid_args = entry [all...] |
/pkg/src/modules/server/ |
H A D | feed.py | 139 def add_transaction(request, doc, feed, entry, first): 140 """Each transaction is an entry. We have non-trivial content, so we 144 e = doc.createElement("entry") 146 pfmri, op_type, op_time, metadata = entry 148 # Generate a 'tag' uri, to uniquely identify the entry, using the fmri. 156 # the entry title and content. 174 # Now add a title for our entry. 181 # Indicate when the entry was last updated (in this case, when the 266 # Cache the first entry in the catalog for any given package stem found 295 for entry i [all...] |
H A D | repository.py | 158 """Used to indicate an invalid entry in the ignored dependency 161 def __init__(self, filename, entry): 164 self.entry = entry 167 return _("The entry in ignored-dependency file: {fn} is " 168 "invalid.\n'{entry}'.").format(fn=self.filename, 169 entry=self.entry) 173 """Used to indicate an unknown attribute for an ignored dep entry.""" 175 def __init__(self, etype, entry [all...] |
H A D | api.py | 178 entry 180 for entry in sorted(allowed[name], key=sort_ver, 725 for entry in self._request.headers.elements("Accept-Language"): 726 alist.append(str(entry).split(";")[0])
|
/pkg/src/modules/client/ |
H A D | plandesc.py | 626 (entry for entry in self._preserved["moved"]), 627 ((entry[0], None) for entry in self._preserved["removed"]), 628 ((None, entry[0]) 629 for entry in self._preserved["installed"]), 630 ((entry[0], entry[0]) 631 for entry in self._preserved["updated"]), 686 for lid, entry i [all...] |
H A D | pkgplan.py | 205 """Adds a license status entry for the given src and dest 451 entry). Where 'entry' is a dict containing the license status 454 for lic, entry in six.iteritems(self._license_status): 455 yield lic, entry 458 """Sets the license status for the given license entry. 475 entry = self._license_status[plicense] 477 entry["accepted"] = accepted 479 entry["displayed"] = displayed 532 for lic, entry i [all...] |
H A D | history.py | 602 for entry in self.client_args: 606 d.createCDATASection(str(entry))) 666 for entry in self.operation_errors: 670 d.createCDATASection(str(entry))) 746 entry to record that this purge occurred. 815 for entry, val in six.iteritems(error_results): 816 if isinstance(error, entry):
|
H A D | image.py | 809 for entry in os.listdir(self.imgdir): 810 if entry == "ssl": 814 epath = os.path.join(self.imgdir, entry) 1288 Each entry contains a tuple of search order index starting at 2060 entry = kcat.get_entry(pfmri) 2061 mdata = entry.get("metadata", {}) 2093 # This entry is no longer available and has no 2120 entry = mdata = states = None 2132 entry = kcat.get_entry(pfmri) 2133 if not entry [all...] |
H A D | client_api.py | 133 for entry in options.pkg_op_opts[pkg_op]: 134 if type(entry) != tuple: 136 if len(entry) == 4: 138 schema = entry 690 entry = {} 692 entry["pub"] = pub 693 entry["pkg"] = stem 694 entry["version"] = ver 695 entry["summary"] = summ 703 entry["state [all...] |
H A D | imageplan.py | 1778 # Since every entry returned by verify might not be 2561 for entry in pp_needs_trimming.values(): 2562 p = entry["plan"] 2563 trim = entry["trim"] 2745 entry = actions[0][0] 2746 if not entry.refcountable and \ 2747 entry.globally_identical and \ 2852 entry = actions[0][0] 2853 if not entry.refcountable and entry [all...] |
H A D | publisher.py | 1756 for entry in os.listdir(self.__origin_root): 1757 opath = os.path.join(self.__origin_root, entry) 1759 if entry in ohashes: 1793 for entry in os.listdir(self.catalog_root): 1794 if entry == "attrs" or entry == "catalog" or \ 1795 entry.startswith("catalog."): 1798 self.catalog_root, entry)) 1805 opaths = [entry for entry i [all...] |
H A D | rad_pkg.py | 34 import pkg.client.client_api as entry namespace 81 return entry._get_pkg_input_schema(pkg_cmd, opts_mapping) 87 return entry._get_pkg_output_schema(pkg_cmd) 110 ret_json = entry._pkg_invoke(subcommand=subcommand,
|
/pkg/src/tests/cli/ |
H A D | t_pkg_intent.py | 96 an intent entry.""" 122 intent entry was found.""" 123 for entry in entries: 124 if entry == expected:
|
H A D | t_pkg_info.py | 765 entry = json.load(open(path))["test"]["bronze"][0]["metadata"] 767 entry["last-install"]).strftime("%c") 773 entry = json.load(open(path))["test"]["bronze"][0]["metadata"] 775 entry["last-install"]).strftime("%c") 781 entry["last-update"]).strftime("%c")
|
H A D | t_pkgsend.py | 87 for entry in expected.splitlines(): 88 a = fromstr(entry) 693 for entry in contents_dict: 694 ftype, mode = contents_dict[entry][:2] 696 dirname = os.path.dirname(entry) 702 fpath = os.path.join(pkgroot, entry) 704 f.write("test" + entry) 708 contents_dict[entry][4] = \ 714 os.makedirs(os.path.join(pkgroot, entry), mode) 847 for entry i [all...] |
H A D | t_pkg_list.py | 716 entry = cat.get_entry(pfmri) 717 entry["signature-sha-1"] = manifest.Manifest.hash_create( 723 entry = dpart.get_entry(pfmri) 724 entry["actions"].append(unsupp_content)
|
/pkg/src/util/publish/ |
H A D | pkgmerge.py | 169 entry 170 for entry in pub.catalog.fmris_by_version(name) 403 for entry in processdict: 406 for a in processdict[entry] 414 patterns=processdict[entry])) 489 for entry in processdict: 491 processdict[entry], variant_list, variants)
|
/pkg/src/modules/actions/ |
H A D | group.py | 86 # if so, rewrite entry using existing defs but new group entry 192 _("{entry}: '{found}' should be '{expected}'").format( 193 entry=a, found=cur_attrs[a],
|
/pkg/src/modules/bundle/ |
H A D | SolarisPackageDirBundle.py | 152 for entry in self._walk_bundle(): 153 yield entry[-1]
|