Lines Matching refs:entry

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 = metadata
500 entry = {}
501 entry["version"] = ver
503 ver_list.append(entry)
511 return entry
522 (fmri, entry) as it iterates over the contents of the catalog
523 part (where entry is the related catalog entry for the fmri).
527 each package. It must accept two arguments: 'pkg' and 'entry'.
528 'pkg' is an FMRI object and 'entry' is the dictionary structure
529 of the catalog entry for the package. If the callback returns
530 False, then the entry will not be included in the results.
532 'last' is a boolean value that indicates only the last entry
551 for pub, stem, entry in self.__iter_entries(last=last,
554 version=entry["version"])
555 if cb is None or cb(f, entry):
556 yield f, entry
561 (fmri, entry) where entry is the catalog entry for the
573 for entry in ver_list:
574 sver = entry["version"]
580 entries[sver].append((pfmri, entry))
611 for pub, stem, entry in self.__iter_entries(last=last,
614 version=entry["version"])
617 for pub, stem, entry in self.__iter_entries(last=last,
620 stem, entry["version"])
640 for entry in ver_list:
641 sver = entry["version"]
653 """Returns the catalog part entry for the given package FMRI or
674 for entry in ver_list:
675 if entry["version"] == ver:
676 return entry
765 for entry in sorted(pkg_list, key=pub_sort):
766 stem, pub = entry.split("!", 1)
796 for i, entry in enumerate(ver_list):
797 if entry["version"] == ver:
903 (pub, stem, entry["version"])
904 for pub, stem, entry in self.__iter_entries(last=last,
910 stem, version), entry) as it iterates over the contents of the
911 catalog part (where entry is the related catalog entry for the
916 each package. It must accept two arguments: 'pkg' and 'entry'.
917 'pkg' is an FMRI tuple and 'entry' is the dictionary structure
918 of the catalog entry for the package. If the callback returns
919 False, then the entry will not be included in the results.
921 'last' is a boolean value that indicates only the last entry
939 for pub, stem, entry in self.__iter_entries(last=last,
941 t = (pub, stem, entry["version"])
942 if cb is None or cb(t, entry):
943 yield t, entry
1019 entry = metadata
1021 entry = {}
1022 entry["op-time"] = datetime_to_basic_ts(op_time)
1023 entry["op-type"] = operation
1024 entry["version"] = str(pfmri.version)
1025 ver_list.append(entry)
1087 def get_update(pub, stem, entry):
1089 for key in entry:
1091 mdata[key] = entry[key]
1092 op_time = basic_ts_to_datetime(entry["op-time"])
1094 version=entry["version"])
1095 return (pfmri, entry["op-type"], op_time, mdata)
1099 for entry in self.__data[pub][stem]:
1100 yield get_update(pub, stem, entry)
1450 for f, entry in self.__entries(cb=cb, info_needed=info_needed,
1454 yield f, self.__gen_actions(f, entry["actions"],
1476 # For each entry in the 'src' catalog, add its BASE entry to the
1480 entry = src_base.get_entry(pfmri)
1481 if entry is None:
1484 entries = [(pfmri, entry)]
1489 for f, entry in entries:
1493 nentry = copy.deepcopy(entry)
1495 merge, mdata = cb(src, f, entry)
1528 entry = part.get_entry(pfmri)
1529 if entry is None:
1532 entries = [(pfmri, entry)]
1537 for f, entry in entries:
1546 nentry = copy.deepcopy(entry)
1594 entry = part.get_entry(pub=pub,
1596 if entry is None:
1600 for k, v in six.iteritems(entry):
1614 entry = part.get_entry(f)
1615 if entry is None:
1619 for k, v in six.iteritems(entry):
1879 entry = attrs.updates[name] = {
1883 entry["signature-{0}".format(n)] = v
1902 entry = attrs.parts[name] = {
1906 entry["signature-{0}".format(n)] = v
2029 entry, it will return an empty iterator.
2037 two arguments: 'pkg' and 'entry'. 'pkg' is an FMRI object and
2038 'entry' is the dictionary structure of the catalog entry for the
2039 package. If the callback returns False, then the entry will not
2056 'last' is a boolean value that indicates only the last entry
2145 entry = {}
2147 entry["metadata"] = metadata
2150 entry["signature-{0}".format(k)] = v
2152 entries[part.name] = part.add(pfmri, metadata=entry,
2180 entry = { "actions": acts }
2182 pfmri, metadata=entry,
2198 an FMRI, and entry. Where 'src' is the source catalog the
2199 FMRI's entry is being copied from, and entry is the source
2200 catalog entry. It must return a tuple of the form (append,
2433 'last' is a boolean value that indicates only the last entry
2534 entry = part.get_entry(f)
2535 if entry is None:
2539 merge_entry(entry, mdata)
2546 ((pub, stem, version), entry, actions) as it iterates over
2552 entry, it will return an empty iterator.
2560 two arguments: 'pkg' and 'entry'. 'pkg' is an FMRI object and
2561 'entry' is the dictionary structure of the catalog entry for the
2562 package. If the callback returns False, then the entry will not
2579 'last' is a boolean value that indicates only the last entry
2599 for r, entry in self.__entries(cb=cb, info_needed=info_needed,
2603 yield (r, entry,
2604 self.__gen_actions(r, entry["actions"],
2607 yield r, entry, EmptyI
2738 # Always attempt to retrieve the BASE entry as FMRIs
2764 entry = part.get_entry(pfmri)
2765 if entry is None:
2769 merge_entry(entry, mdata)
2775 over the catalog entry of the specified FMRI corresponding to
2777 any action data for the package entry, it will return an empty
2807 entry = self.get_entry(pfmri, info_needed=info_needed,
2809 if entry is None:
2813 return self.__gen_actions(pfmri, entry["actions"],
2825 entry = self.get_entry(pfmri, info_needed=info_needed)
2826 if entry is None:
2830 actions = self.__gen_actions(pfmri, entry["actions"])
2850 entry = self.get_entry(pfmri)
2851 if entry is None:
2855 for k, v in six.iteritems(entry)
2955 for t, entry, actions in self.entry_actions(cat_info,
3015 # entry.
3035 # If this entry matched at least one
3046 # must be tested for every entry. This
3396 # Add a new entry to the catalog attributes for this new
3667 entry = sigs[name] = {}
3671 entry[sig] = items[name][k]
3673 # Not a signature entry.
3709 ((pub, stem, version), entry, actions) as it iterates over
3737 'last' is a boolean value that indicates only the last entry
3776 'pfmri' is the FMRI of the package to update the entry for.
3797 # get_entry returns the actual catalog entry, so updating it
3799 entry = base.get_entry(pfmri=pfmri, pub=pub, stem=stem, ver=ver)
3800 if entry is None:
3806 if "metadata" in entry:
3807 del entry["metadata"]
3809 entry["metadata"] = metadata