Lines Matching defs:version

67 import pkg.version
318 current format (version).
321 def __init__(self, location, version, current_version):
324 self.version = version
328 return("The repository at '{location}' is version "
329 "'{version}'; only versions up to {current_version} are"
335 (version).
338 def __init__(self, location, version, supported):
341 self.version = version
345 return("The repository at '{location}' is version "
346 "'{version}'; only version {supported} repositories are"
393 # version.
487 """Private version; caller responsible for repository
496 """Private version; caller responsible for repository
544 v = pkg.version.Version(unquote(ver), None)
546 f.version = v
660 "package-version-count": pkg_ver_count,
750 """Private version; caller responsible for repository
797 pkg.version.VersionError) as e:
833 """Private version; caller responsible for repository
863 """Private version; caller responsible for repository
870 # Determine location and version of catalog data.
892 """Private function to determine version and location of
897 'allow_invalid', if True, will assume the catalog is version 1
946 # assume version 1. This will allow pkgrepo rebuild,
1034 # Set catalog version.
1035 self.catalog_version = self.catalog.version
2180 # If there is more than one version in the manifest dir,
2530 if not pfmri.version:
2544 if not pfmri.version:
2546 if not pfmri.version.timestr:
2603 self.version = -1
2649 self.version = int(self.cfg.get_property("repository",
2650 "version"))
2652 # If version couldn't be read from configuration,
2654 self.version = -1
2656 if self.version <= 0 and self.root:
2657 # If version doesn't exist, attempt to determine version
2662 (self.cfg.version > 3 and
2667 self.version = 4
2673 self.version = 2
2675 # Assume version 3 otherwise.
2676 self.version = 3
2684 version=self.version)
2691 self.cfg.set_property("repository", "version",
2692 self.version)
2693 elif self.version <= 0 and self.file_root:
2694 # If only file root specified, treat as version 4
2696 self.version = 4
2706 if self.version > CURRENT_REPO_VERSION:
2708 self.version, CURRENT_REPO_VERSION)
2709 if self.version == 4:
2723 get_property("image", "version")) >= 3):
2731 if self.version == 4:
2790 if self.version >= 3 and not self.read_only:
2921 if self.version >= 4:
2922 # For version 4 and newer repositories, assume a V1
2955 configuration information. Only supported for version 4 and
2963 if not self.pub_root or self.version < 4:
3000 if not self.pub_root or self.version < 4:
3192 assert self.version < 4
3225 if self.version < 4:
3253 "version": self.version, # Version of repository.
3255 "version": 1, # Version of status structure.
3615 operation is supported at the given version.
3633 for version 4 and later repositories.
3640 if not self.pub_root or self.version < 4:
3679 if self.cfg.get_property("repository", "version") != 4:
3681 self.cfg.get_property("repository", "version"), 4)
3739 # publisher and version, then find matched stem
3742 not pfmri.version:
3751 if pfmri.version:
3757 if not rf.version.is_successor(
3758 pfmri.version,
3759 pkg.version.CONSTRAINT_AUTO):
3763 # version is less than
3766 if not rf.version.is_successor(
3767 pfmri.version,
3768 pkg.version.CONSTRAINT_NONE) \
3769 and rf.version != pfmri.version:
3800 afmri.version.is_successor(
3801 minfmri.version,
3802 pkg.version.CONSTRAINT_NONE) \
3803 or afmri.version.is_successor(
3804 minfmri.version,
3805 pkg.version.CONSTRAINT_AUTO)):
3810 maxfmri.version.is_successor(
3811 afmri.version,
3812 pkg.version.CONSTRAINT_NONE) \
3813 or afmri.version.is_successor(
3814 maxfmri.version,
3815 pkg.version.CONSTRAINT_AUTO)):
3829 # If there is no version specified
3833 if not ifmri.version:
3836 # If there is no version for pfmri but
3839 if not pfmri.version:
3842 elif pfmri.version.is_successor(
3843 ifmri.version,
3844 pkg.version.CONSTRAINT_AUTO):
4088 if self.cfg.get_property("repository", "version") != 4:
4090 self.cfg.get_property("repository", "version"), 4)
4163 'version' is an integer value specifying the set of configuration data
4164 to use for the operation. If not provided, the version will be based
4165 on the target if supported. If a version cannot be determined, the
4166 newest version will be assumed.
4170 # groups for a repository configuration indexed by version.
4243 cfg.PropInt("version"),
4252 def __new__(cls, target=None, overrides=misc.EmptyDict, version=None):
4255 overrides=overrides, version=version)
4258 overrides=overrides, version=version)
4260 overrides=overrides, version=version)
4263 def repository_create(repo_uri, properties=misc.EmptyDict, version=None):
4278 if version is not None and (version < 3 or
4279 version > CURRENT_REPO_VERSION):
4300 if version == 3: