/pkg/src/tests/api/ |
H A D | t_version.py | 33 import pkg.version as version namespace 40 self.d1 = version.DotSequence("1.1.3") 41 self.d2 = version.DotSequence("1.1.3") 42 self.d3 = version.DotSequence("5.4") 43 self.d4 = version.DotSequence("5.6") 44 self.d5 = version.DotSequence("5.4.1") 45 self.d6 = version.DotSequence("5.5.1") 46 self.d7 = version.DotSequence("6.5.1") 48 self.v1 = version [all...] |
H A D | t_api_list.py | 44 import pkg.version as version namespace 83 aver = version.Version(aver) 84 bver = version.Version(bver) 127 # Compare with newest version entry for this stem. 128 if ver != str(self.dlist1[6].version): 131 # Compare with newest version entry for this stem. 132 if ver != str(self.dlist1[10].version): 135 # Compare with newest version entry for this stem. 136 nver = str(self.dlist1[12].version) [all...] |
H A D | t_catalog.py | 88 # a package with the exact same name and version as another 221 return misc.cmp(a.version, b.version) * -1 546 vers[f.pkg_name].append(f.version) 549 fmris[f.pkg_name].setdefault(str(f.version), []) 550 fmris[f.pkg_name][str(f.version)].append(f) 585 return misc.cmp(a.version, b.version) * -1 596 aver = version.Version(aver) 597 bver = version [all...] |
H A D | t_config.py | 1132 self.assertEqual(conf.version, exp_version) 1166 # No version definitions to compare. 1181 version = 0 1214 version = 1 1237 # Verify no definitions, overrides, or version. 1242 # Same as above, but with version. 1243 conf = cfg.Config(version=1) 1257 # Verify with no overrides and no version (max version found in 1262 # Verify with no overrides and with version [all...] |
/pkg/src/modules/ |
H A D | fmri.py | 31 from pkg.version import Version, VersionError 41 # For is_same_publisher(), we need a version of this constant with the 87 the fmri since version information is missing.""" 90 return _("FMRI '{0}' is missing version information.").format( 109 __slots__ = ["version", "publisher", "pkg_name", "_hash", "__weakref__"] 112 name=None, version=None): 128 self.version = Version( 136 self.version = None 138 # pkg_name and version must be explicitly set. 140 if version [all...] |
H A D | mediator.py | 29 import pkg.version as version namespace 44 string is a valid mediator version for a link mediation. 'valid' is 50 version.Version(value) 52 except version.VersionError as e: 56 return False, _("'{value}' is not a valid mediator-version: " 58 return False, _("'{0}' is not a valid mediator-version").format(value) 62 returns a tuple of (name, version) where 'name' is a string containing 63 the name of the implementation and 'version' is None or a pkg.version [all...] |
H A D | api_common.py | 137 version=None, build_release=None, branch=None, packaging_date=None, 149 self.version = version 174 pub, name, version = f.tuple() 177 version=version.release, 178 build_release=version.build_release, branch=version.branch, 179 packaging_date=version.get_timestamp().strftime("%c"),
|
H A D | p5p.py | 51 if sys.version > '3': 60 supported or recognized by this version of the pkg(7) ArchiveIndex 102 version = None variable in class:ArchiveIndex 107 def __init__(self, name, mode="r", version=None): 117 'version' is an optional integer value specifying the version 119 current version is assumed. 123 if version is None: 124 version = self.CURRENT_VERSION 125 if version no 300 version = None variable in class:Archive [all...] |
H A D | config.py | 67 import pkg.version namespace 867 if isinstance(value, pkg.version.Version): 871 nvalue = pkg.version.Version(value) 1039 version=None): 1043 by configuration version defining the initial set of property 1051 'version' is an integer value that will be used to determine 1053 newest version found in 'definitions' will be used. 1056 assert version is None or isinstance(version, int) 1060 if version i 1429 def version(self): member in class:Config [all...] |
H A D | catalog.py | 51 import pkg.version namespace 423 also be the newest version of the package. 427 be in descending version order. If False, results will be 428 in a ascending version order on a per-publisher, per-stem 489 if entry["version"] == ver: 501 entry["version"] = ver 536 also be the newest version of the package. 540 be in descending version order. If False, results will be 541 in a ascending version order on a per-publisher, per-stem 547 Results are always in catalog version orde 1351 version = property(__get_version, __set_version) variable in class:CatalogAttrs 3863 version = property(__get_version, __set_version) variable in class:Catalog [all...] |
/pkg/src/tests/perf/ |
H A D | membench.py | 35 import pkg.version as version namespace 41 return version.DotSequence("5.111111") 44 return version.DotSequence("5.{0:d}".format(num)) 47 return version.Version("0.5.11-0.111:20090428T172804Z") 50 return version.Version("0.5.11,5.11-0.{0:d}:{1:0=8d}T172804Z".format(num, num))
|
H A D | fmribench.py | 36 import pkg.version as version namespace 44 """import pkg.version as version""", 45 """v1 = version.DotSequence("0.72.1")""" 49 """import pkg.version as version 50 v1 = version.DotSequence("0.72.1") 51 v2 = version.DotSequence("0.73.1")""", 56 """import pkg.version a [all...] |
/pkg/src/modules/actions/ |
H A D | depend.py | 41 import pkg.version namespace 70 optional - optional dependency on minimum version of other package. In 72 version level. 74 require - dependency on minimum version of other package is needed 77 conditional - dependency on minimum version of specified package 78 if predicate package is installed at specified version or newer. 80 require-any - dependency on minimum version of any of the specified 83 origin - specified package must be at this version or newer 85 on version installed in / rather than image being modified. 87 parent - dependency on same version o [all...] |
H A D | attribute.py | 104 str(fmri_obj.version.build_release), 105 str(fmri_obj.version.release), 106 str(fmri_obj.version.timestr)
|
H A D | signature.py | 70 if "version" not in self.attrs: 71 self.attrs["version"] = \ 217 def sig_str(self, a, version): 230 if version != generic.Action.sig_version: 231 raise apx.UnsupportedSignatureVersion(version, sig=self) 317 return generic.Action.sig_str(tmp_a, tmp_a, version) 319 def actions_to_str(self, acts, version): 327 (b.sig_str(self, version) for b in acts) 420 ver = int(self.attrs["version"]) 421 # If this signature is tagged with variants, if the version i [all...] |
/pkg/src/modules/portable/ |
H A D | util.py | 31 Return a standardized, lower case version of the "type" of OS family. 45 Return a standardized, lower case version of the name of the OS. This is 67 Return a standardized, sanitized version string, consisting of a 68 dot-separated list of integers representing the release version of 79 release = platform.version()
|
/pkg/src/modules/server/ |
H A D | api.py | 43 import pkg.version as version namespace 103 be in descending version order. If False, results will be 104 in a ascending version order on a per-publisher, per-stem 119 are returned ordered by stem and descending version. State 197 iver = ifmri.version 206 pkg.version.CONSTRAINT_AUTO): 245 version - (string) the version of the package 252 descending version orde 592 def version(self): member in class:CatalogInterface [all...] |
H A D | repository.py | 67 import pkg.version namespace 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 [all...] |
/pkg/src/modules/lint/ |
H A D | engine.py | 35 from pkg.version import DotSequence, Version 84 except pkg.version.IllegalDotSequence: 109 pub_name, name, version = item[0] 112 version) 119 # take a bit more time building up the latest version 125 pub_name, name, version = item[0] 128 version) 132 branch = Version(version, None).branch 141 # publisher, then sorted by version. We may find 161 """ A generator function to return the latest version o [all...] |
/pkg/src/util/publish/ |
H A D | pkgmerge.py | 401 # check to make sure all fmris are at same version modulo 653 if new_fmri is None or pfmri.version > new_fmri.version: 670 # the merged version. 887 fmri.version = \ 888 pkg.version.MatchingVersion(pat_ver) 890 fmri.version = \ 891 pkg.version.Version(pat_ver) 894 getattr(fmri.version, "match_latest", None): 898 versions.append(fmri.version) [all...] |
/pkg/src/modules/client/ |
H A D | pkg_solver.py | 47 import pkg.version as version namespace 66 _TRIM_DEP_MISSING = 0 # no matching pkg version found for dep 69 _TRIM_FIRMWARE = 3 # firmware version requirement 73 _TRIM_INSTALLED_NEWER = 7 # newer version installed already 74 _TRIM_INSTALLED_ORIGIN = 8 # installed version in image too old 75 _TRIM_INSTALLED_ROOT_ORIGIN = 9 # installed version in root image too old 77 _TRIM_PARENT_NEWER = 11 # parent image has newer version 78 _TRIM_PARENT_OLDER = 12 # parent image has older version 82 _TRIM_PROPOSED_VER = 16 # didn't match requested version [all...] |
H A D | image.py | 75 import pkg.version namespace 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' i [all...] |
/pkg/src/tests/ |
H A D | pkg5testenv.py | 92 sys.version[0:3]))
|
/pkg/src/modules/client/transport/ |
H A D | exception.py | 404 def __init__(self, url, operation=None, version=None, reason=None, 410 self.version = version 421 if self.version is not None: 422 s += " version {0}".format(self.version) 428 return (self.url, self.operation, self.version,
|
/pkg/src/tests/cli/ |
H A D | t_pkgmerge.py | 206 add link path=aardvark target=1 mediator=version mediator-version=1 pkg.merge.blend=arch 207 add link path=aardvark target=2 mediator=version mediator-version=2 pkg.merge.blend=arch 208 add link path=aardvark target=3 mediator=version mediator-version=3 pkg.merge.blend=arch 209 add link path=aardvark target=4 mediator=version mediator-version=4 pkg.merge.blend=arch 219 add link path=aardvark target=5 mediator=version mediator-version [all...] |