Lines Matching defs:version

75 import pkg.version
180 self.version = -1
556 version = None
557 if self.version > -1:
558 # Configuration version is currently 3
560 version = 3
563 self.root, version=version,
714 def mkdirs(self, root=None, version=None):
721 'version' is an optional integer value indicating the version
723 version is the default.
728 if not version:
729 version = self.version
731 if version == self.CURRENT_VERSION:
799 # Force a reset of version.
800 self.version = -1
802 # Assume version 4+ configuration location.
823 # Determine if the version 4 configuration file exists.
833 self.version = int(self.cfg.get_property("image",
834 "version"))
836 # If version couldn't be read from
839 self.version = -1
841 if self.version <= 0:
842 # If version doesn't exist, attempt to determine version
847 self.version = self.CURRENT_VERSION
852 if self.version > self.CURRENT_VERSION or self.version < 4:
856 # Ensure image version matches determined one; this must
857 # be set *after* the version checks above.
858 self.cfg.set_property("image", "version", self.version)
1005 if self.version == self.CURRENT_VERSION:
1190 # For images newer than version 3, file data can be stored
1676 """Private version of add_publisher(); caller is responsible
1683 if self.version < 4:
1811 "version")
1815 med_version = act.attrs.get("mediator-version")
1817 med_version = pkg.version.Version(
1923 # per-stem and version, so that transitions between package
1996 """return manifest; uses cached version if available.
2033 if self.version < 4:
2502 if self.version < 4:
2561 # matches the newest version in the catalog. This is quite
2572 if f.version > nver:
2573 newest[f.pkg_name] = (f.version,
2574 str(f.version))
2671 f_ver = frozen_pkgs[stem].version
2673 pkg.version.Version(ver
2676 pkg.version.CONSTRAINT_AUTO):
2776 f_ver = frozen_pkgs[stem].version
2778 pkg.version.Version(ver
2781 pkg.version.CONSTRAINT_AUTO):
2796 publisher=pub, version=ver))
2843 if self.version < 4:
3294 # If we recognize neither file's version or their timestamps
3352 version = fh.readline().rstrip()
3353 if version != "VERSION 1":
3677 # have an installed version.
3975 provided version and implementation values. This is a helper
3997 # Validate mediator, provided version, implementation,
4003 med_version = new_values.get("version")
4008 new_mediators[m]["version"] = \
4009 pkg.version.Version(med_version)
4011 invalid_mediations[m]["version"] = \
4019 invalid_mediations[m]["version"] = \
4125 version known to be available for this image."""
4130 # to say whatever image appears to contain the version of the
4192 # If no version of the package system is installed or a
4193 # newer version isn't available, then the client is
4205 # Find the version at which package/pkg is incorporated.
4214 act.attrs["fmri"]).version
4220 if ver != pfmri.version and \
4222 pkg.version.CONSTRAINT_AUTO):
4225 # No version is newer than installed and
4240 # format is (version, dict((pkg stem, "avoid", "implicit-avoid" or
4264 version, d = json.load(f)
4275 assert version == self.__AVOID_SET_VERSION
4339 # format is (version, dict((pkg stem, (fmri, comment, timestamp))))
4360 version, d = json.load(f)
4365 if version != self.__FROZEN_DICT_VERSION:
4367 version, self.__FROZEN_DICT_VERSION,