Lines Matching refs:pkg
30 from pkg.client.pkgdefs import *
37 import pkg.misc as misc
76 add depend type=require fmri=pkg:/quux@1.0
82 add depend type=require fmri=pkg:/quux@1.1
88 add depend type=require fmri=pkg:/corge@1.0
94 add depend type=require fmri=pkg:/corge@1.1
112 add set name=pkg.depend.install-hold value=test
119 add set name=pkg.depend.install-hold value=test
135 add set name=pkg.depend.install-hold value=core-os
147 add set name=pkg.depend.install-hold value=core-os.osnet
148 add depend fmri=pkg:/system/resource-mgmt/dynamic-resource-pools@5.12,5.12-5.12.0.0.0.45.25345 type=incorporate
155 add depend fmri=pkg:/runtime/java/jre-7@1.7.0.51.34 type=require
161 add set name=pkg.depend.install-hold value=core-os.osnet
162 add depend fmri=pkg:/system/resource-mgmt/dynamic-resource-pools@5.12,5.12-5.12.0.0.0.46.25205 type=incorporate
169 add depend fmri=pkg:/runtime/java/jre-7@1.7.0.55.13 type=require
205 self.pkg("update -@", exit=2)
206 self.pkg("update -vq", exit=2)
216 self.pkg("install foo@1.0")
219 self.pkg("set-publisher -O {0} test2".format(self.rurl2))
220 self.pkg("install bar@1.0")
225 self.pkg("unset-publisher test2")
226 self.pkg("set-publisher -O {0} test2".format(self.rurl3))
227 self.pkg("update -nv")
232 self.pkg("unset-publisher test2")
233 self.pkg("set-publisher -O {0} test4".format(self.rurl4))
234 self.pkg("set-publisher -O {0} test5".format(self.rurl5))
235 self.pkg("update -nv")
240 self.pkg("unset-publisher test4")
241 self.pkg("update -nv")
244 self.pkg("unset-publisher test5")
256 self.pkg("set-publisher -P -O {0} test2".format(self.rurl2))
257 self.pkg("install foo@1.0")
258 self.pkg("info foo@1.0 | grep test2")
259 self.pkg("set-publisher -P test1")
260 self.pkg("update -v", exit=4)
261 self.pkg("info foo@1.1 | grep test1", exit=1)
262 self.pkg("uninstall foo")
269 self.pkg("install baz@1.0")
270 self.pkg("info baz@1.0 | grep test2")
273 self.pkg("uninstall '*'")
274 self.pkg("list", exit=1)
282 self.pkg("install foo@1.0")
285 self.pkg("set-publisher -O {0} test2".format(self.rurl2))
286 self.pkg("install bar@1.0")
289 self.pkg("update bar")
290 self.pkg("info bar@1.1 foo@1.0")
295 self.pkg("update bar@1.0")
296 self.pkg("install incorp@1.0")
298 self.pkg("update")
299 self.pkg("info bar@1.1 foo@1.1 incorp@1.1")
301 self.pkg("update *@1.0")
302 self.pkg("info bar@1.0 foo@1.0 incorp@1.0")
304 self.pkg("update '*'")
305 self.pkg("info bar@1.1 foo@1.1 incorp@1.1")
307 self.pkg("update bar@1.0 foo@1.0 incorp@1.0")
308 self.pkg("info bar@1.0 foo@1.0 incorp@1.0")
310 self.pkg("update '*@*'")
311 self.pkg("info bar@1.1 foo@1.1 incorp@1.1")
315 self.pkg("update '*@1.0'")
316 self.pkg("info bar@1.0 foo@1.0 incorp@1.0")
318 self.pkg("update '*@latest'")
319 self.pkg("info bar@1.1 foo@1.1 incorp@1.1")
327 self.pkg("install foo")
328 self.pkg("set-publisher -p {0}".format(self.rurl1))
329 self.pkg("update foo@1.1", exit=1)
349 self.pkg("change-facet {0}=False".format(facet))
350 self.pkg("update -nv", exit=EXIT_NOP)
356 self.pkg("update missing", exit=1)
357 self.pkg("update --ignore-missing missing", exit=4)
393 self.pkg("install -v {0}".format(elf1))
394 self.pkg("contents -m {0}".format(elf1))
398 self.pkg("update -v elftest")
399 self.pkg("contents -m {0}".format(elf2))
402 self.pkg("uninstall elftest")
403 self.pkg("install -v {0}".format(elf1))
406 self.pkg("set-property content-update-policy when-required")
407 self.pkg("update -v elftest")
408 self.pkg("list {0}".format(elf2))
411 self.pkg("uninstall elftest")
412 self.pkg("install -v {0}".format(elf1))
415 self.pkg("set-property content-update-policy always")
416 self.pkg("update -v elftest")
417 self.pkg("list {0}".format(elf2))
421 self.pkg("set-property content-update-policy when-required")
422 self.pkg("update -v {0}".format(elf1))
423 self.pkg("list {0}".format(elf1))
426 self.pkg("uninstall elftest")
427 self.pkg("install -v {0}".format(elf2))
430 self.pkg("set-property content-update-policy always")
431 self.pkg("update -v {0}".format(elf1))
432 self.pkg("list {0}".format(elf1))
442 self.pkg("change-facet "
444 self.pkg("install entire@5.12-5.12.0.0.0.45.0 "
454 self.pkg("update -nv", exit=1, assert_solution=False)
459 self.pkg("update -nv osnet-incorporation@latest", exit=1)
464 self.pkg("update -nv osnet-incorporation", exit=4)
466 # A pkg update (with no arguments) should not fail if we are a
469 self.pkg("attach-linked --linked-md-only -p system:foo "
471 self.pkg("update -nv", exit=4)
479 open pkg://test/management/em-sysmgmt-ecpc/em-oc-common@12.2.2.1103,5.11-0.1:20160225T115559Z
480 add set name=pkg.description value="test package"
483 open pkg://test/management/em-sysmgmt-ecpc/em-oc-common@12.2.2.1103,5.11-0.1.1697.1:20160225T115610Z
484 add set name=pkg.description value="test package"
488 open pkg://test/management/em-sysmgmt-ecpc/em-oc-common@12.2.2.1103,5.11-0.1:20160225T115616Z
489 add set name=pkg.description value="test package"
492 open pkg://test/management/em-sysmgmt-ecpc/em-oc-common@12.3.2.906,5.11-0.1:20160225T115622Z
493 add set name=pkg.description value="test package"
496 open pkg://test/management/em-sysmgmt-ecpc/opscenter-ecpc-incorporation@12.2.2.1103,5.11-0.1:20141203T103418Z
497 add set name=pkg.description value="This incorporation constrains packages for the opscenter enterprise and proxy controller."
502 open pkg://test/idr1697@1
503 add set name=pkg.description value="idr package"
519 self.pkg("install opscenter-ecpc-incorporation")
520 self.pkg("list -afv em-oc-common")
523 self.pkg("install pkg://test/management/em-sysmgmt-ecpc/em-oc-common@12.2.2.1103,5.11-0.1:20160225T115559Z")
524 self.pkg("install pkg://test/management/em-sysmgmt-ecpc/em-oc-common@12.2.2.1103,5.11-0.1:20160225T115616Z")
527 self.pkg("install pkg://test/management/em-sysmgmt-ecpc/em-oc-common")
528 self.pkg("list -afv em-oc-common")
531 self.pkg("update --reject pkg://test/idr1697@1 "
532 "pkg://test/management/em-sysmgmt-ecpc/em-oc-common@12.2.2.1103,5.11-0.1:20160225T115616Z")
542 open pkg://pub2/a@1.0,5.11-0
554 open pkg://pub2/a@2.0,5.11-0
592 self.pkg("update a@1.1 a@2", exit=1)
601 self.pkg("list aa@2.0 a@1.1")
606 self.pkg("list aa@2.0 a@1.1")
613 self.pkg("set-publisher -P test")
618 self.pkg("update '*' 'pkg://pub2/a@1'")
619 self.pkg("list -Hv pkg://pub2/a@1 pkg://test/aa@2")
625 self.pkg("update 'pkg://pub2/*@1'")
626 self.pkg("list -Hv pkg://pub2/a@1 pkg://test/aa@1")
632 self.pkg("update 'a@1' 'pkg://pub2/a@1'")
633 self.pkg("list -Hv pkg://pub2/a@1")
634 self.pkg("update 'a@2' '//test/a@2'")
635 self.pkg("list -Hv pkg://test/a@2")
639 self.pkg("update 'a@1' 'pkg://pub2/a@2'", exit=1)
645 self.pkg("update '*' 'pkg://pub2/*@1'")
646 self.pkg("list -Hv pkg://pub2/a@1 pkg://test/aa@2")
652 self.pkg("update '*' 'pkg://pub2/*@1' 'a@2'")
653 self.pkg("list -Hv pkg://test/a@2 pkg://test/aa@2")
658 self.pkg("update '*' 'pkg://pub2/a@1' 'pkg://test/a@2'", exit=1)
659 self.pkg("update '*' 'pkg://pub2/*@1' 'pkg://test/*@2'", exit=1)