author | Yiteng Zhang <yiteng.zhang@oracle.com> |
Wed, 09 Mar 2016 11:27:23 -0800 | |
changeset 3321 | 52e8eec3014c |
parent 3193 | 618a7acf5f09 |
child 3336 | 5dddd93baf64 |
permissions | -rw-r--r-- |
3193
618a7acf5f09
18687070 pkg install and update times in pkg info output desired
Chao Pan <chao.pan@oracle.com>
parents:
3146
diff
changeset
|
1 |
Version 82: |
618a7acf5f09
18687070 pkg install and update times in pkg info output desired
Chao Pan <chao.pan@oracle.com>
parents:
3146
diff
changeset
|
2 |
Compatible with clients using versions 72-81. |
618a7acf5f09
18687070 pkg install and update times in pkg info output desired
Chao Pan <chao.pan@oracle.com>
parents:
3146
diff
changeset
|
3 |
|
618a7acf5f09
18687070 pkg install and update times in pkg info output desired
Chao Pan <chao.pan@oracle.com>
parents:
3146
diff
changeset
|
4 |
pkg.client.api.PackageInfo has changed as follows: |
618a7acf5f09
18687070 pkg install and update times in pkg info output desired
Chao Pan <chao.pan@oracle.com>
parents:
3146
diff
changeset
|
5 |
* added a new field 'last_install' to record the package last install time |
618a7acf5f09
18687070 pkg install and update times in pkg info output desired
Chao Pan <chao.pan@oracle.com>
parents:
3146
diff
changeset
|
6 |
* added a new field 'last_update' to record the package last update time |
618a7acf5f09
18687070 pkg install and update times in pkg info output desired
Chao Pan <chao.pan@oracle.com>
parents:
3146
diff
changeset
|
7 |
|
3110
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
8 |
Version 81: |
3193
618a7acf5f09
18687070 pkg install and update times in pkg info output desired
Chao Pan <chao.pan@oracle.com>
parents:
3146
diff
changeset
|
9 |
Compatible with clients using versions 72-80. |
3110
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
10 |
|
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
11 |
pkg.client.api.ImageInterface has changed as follows: |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
12 |
* Introduced new non-linked image interfaces: |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
13 |
gen_plan_dehydrate() |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
14 |
gen_plan_rehydrate() |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
15 |
gen_plan_fix() |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
16 |
|
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
17 |
* Added a new function to get the list of dehydrated publishers: |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
18 |
get_dehydrated_publishers() |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
19 |
|
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
20 |
pkg.client.api_errors has changed as follows: |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
21 |
* Added a no_repo_pubs property to PlanCreationException |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
22 |
that contains a list of publishers that have no package |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
23 |
repository configured. |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
24 |
|
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
25 |
pkg.client.api.PlanDescription has changed as follows: |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
26 |
* Added methods: |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
27 |
add_item_message() |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
28 |
extend_item_messages() |
3146
bdb5fb2c676d
19212406 pkg verify should be moved into the api
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3110
diff
changeset
|
29 |
gen_item_messages() |
3110
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
30 |
|
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
31 |
pkg.client.progress has changed as follows: |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
32 |
* Removed methods from ProgressTracker: |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
33 |
verify_start() |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
34 |
verify_start_pkg() |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
35 |
verify_add_progress() |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
36 |
verify_yield_error() |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
37 |
verify_yield_warning() |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
38 |
verify_yield_info() |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
39 |
verify_end_pkg() |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
40 |
verify_done() |
5590234ea9b2
19190899 pkg needs subcommands to dehydrate/rehydrate image
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
3070
diff
changeset
|
41 |
|
3070
f9c4a67f0ded
18552803 pkg needs optional and debug facets that default to false
Shawn Walker <shawn.walker@oracle.com>
parents:
3047
diff
changeset
|
42 |
Version 80: |
f9c4a67f0ded
18552803 pkg needs optional and debug facets that default to false
Shawn Walker <shawn.walker@oracle.com>
parents:
3047
diff
changeset
|
43 |
Compatible with clients using versions 72-79. |
f9c4a67f0ded
18552803 pkg needs optional and debug facets that default to false
Shawn Walker <shawn.walker@oracle.com>
parents:
3047
diff
changeset
|
44 |
|
f9c4a67f0ded
18552803 pkg needs optional and debug facets that default to false
Shawn Walker <shawn.walker@oracle.com>
parents:
3047
diff
changeset
|
45 |
pkg.client.api.ImageInterface has changed as follows: |
f9c4a67f0ded
18552803 pkg needs optional and debug facets that default to false
Shawn Walker <shawn.walker@oracle.com>
parents:
3047
diff
changeset
|
46 |
|
f9c4a67f0ded
18552803 pkg needs optional and debug facets that default to false
Shawn Walker <shawn.walker@oracle.com>
parents:
3047
diff
changeset
|
47 |
* Added optional 'implicit' parameter to gen_facets() and |
f9c4a67f0ded
18552803 pkg needs optional and debug facets that default to false
Shawn Walker <shawn.walker@oracle.com>
parents:
3047
diff
changeset
|
48 |
gen_variants() methods to get effective value of facets and |
f9c4a67f0ded
18552803 pkg needs optional and debug facets that default to false
Shawn Walker <shawn.walker@oracle.com>
parents:
3047
diff
changeset
|
49 |
boolean variants. |
f9c4a67f0ded
18552803 pkg needs optional and debug facets that default to false
Shawn Walker <shawn.walker@oracle.com>
parents:
3047
diff
changeset
|
50 |
|
3047
81228d686e73
17457046 pkg should display list of new / modified editable files for operation
Shawn Walker <shawn.walker@oracle.com>
parents:
3025
diff
changeset
|
51 |
Version 79: |
81228d686e73
17457046 pkg should display list of new / modified editable files for operation
Shawn Walker <shawn.walker@oracle.com>
parents:
3025
diff
changeset
|
52 |
Compatible with clients using versions 72-78. |
81228d686e73
17457046 pkg should display list of new / modified editable files for operation
Shawn Walker <shawn.walker@oracle.com>
parents:
3025
diff
changeset
|
53 |
|
81228d686e73
17457046 pkg should display list of new / modified editable files for operation
Shawn Walker <shawn.walker@oracle.com>
parents:
3025
diff
changeset
|
54 |
pkg.client.api.PlanDescription has changed as follows: |
81228d686e73
17457046 pkg should display list of new / modified editable files for operation
Shawn Walker <shawn.walker@oracle.com>
parents:
3025
diff
changeset
|
55 |
|
81228d686e73
17457046 pkg should display list of new / modified editable files for operation
Shawn Walker <shawn.walker@oracle.com>
parents:
3025
diff
changeset
|
56 |
* Added get_editable_changes() function to return the list of |
81228d686e73
17457046 pkg should display list of new / modified editable files for operation
Shawn Walker <shawn.walker@oracle.com>
parents:
3025
diff
changeset
|
57 |
"editable" files that will be moved, removed, installed, or |
81228d686e73
17457046 pkg should display list of new / modified editable files for operation
Shawn Walker <shawn.walker@oracle.com>
parents:
3025
diff
changeset
|
58 |
updated during the planned operation. |
81228d686e73
17457046 pkg should display list of new / modified editable files for operation
Shawn Walker <shawn.walker@oracle.com>
parents:
3025
diff
changeset
|
59 |
|
3025
c2f7cdceff60
15722809 need support for recursive linked image operations
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
3014
diff
changeset
|
60 |
Version 78: |
c2f7cdceff60
15722809 need support for recursive linked image operations
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
3014
diff
changeset
|
61 |
Compatible with clients using versions 72-77. |
c2f7cdceff60
15722809 need support for recursive linked image operations
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
3014
diff
changeset
|
62 |
|
c2f7cdceff60
15722809 need support for recursive linked image operations
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
3014
diff
changeset
|
63 |
pkg.client.api.ImageInterface has changed as follows: |
c2f7cdceff60
15722809 need support for recursive linked image operations
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
3014
diff
changeset
|
64 |
|
c2f7cdceff60
15722809 need support for recursive linked image operations
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
3014
diff
changeset
|
65 |
* Added 'li_recurse' parameter to |
c2f7cdceff60
15722809 need support for recursive linked image operations
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
3014
diff
changeset
|
66 |
- gen_plan_update() |
c2f7cdceff60
15722809 need support for recursive linked image operations
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
3014
diff
changeset
|
67 |
- gen_plan_uninstall() |
c2f7cdceff60
15722809 need support for recursive linked image operations
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
3014
diff
changeset
|
68 |
- gen_plan_install() |
c2f7cdceff60
15722809 need support for recursive linked image operations
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
3014
diff
changeset
|
69 |
- gen_plan_change_varcets() |
c2f7cdceff60
15722809 need support for recursive linked image operations
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
3014
diff
changeset
|
70 |
|
c2f7cdceff60
15722809 need support for recursive linked image operations
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
3014
diff
changeset
|
71 |
These allow to run the above operations recursively in linked images. |
c2f7cdceff60
15722809 need support for recursive linked image operations
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
3014
diff
changeset
|
72 |
|
c2f7cdceff60
15722809 need support for recursive linked image operations
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
3014
diff
changeset
|
73 |
* Added 'ignore_missing' parameter to |
c2f7cdceff60
15722809 need support for recursive linked image operations
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
3014
diff
changeset
|
74 |
- gen_plan_uninstall() |
c2f7cdceff60
15722809 need support for recursive linked image operations
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
3014
diff
changeset
|
75 |
- gen_plan_update() |
c2f7cdceff60
15722809 need support for recursive linked image operations
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
3014
diff
changeset
|
76 |
|
c2f7cdceff60
15722809 need support for recursive linked image operations
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
3014
diff
changeset
|
77 |
This changes the behavior of uninstall and update to not fail if a |
c2f7cdceff60
15722809 need support for recursive linked image operations
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
3014
diff
changeset
|
78 |
package for the requested operation is not found. |
c2f7cdceff60
15722809 need support for recursive linked image operations
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
3014
diff
changeset
|
79 |
|
3014
a88a867e3a9d
17318601 pkg needs a synchronous option for service actuators
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
2925
diff
changeset
|
80 |
Version 77: |
a88a867e3a9d
17318601 pkg needs a synchronous option for service actuators
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
2925
diff
changeset
|
81 |
Compatible with clients using versions 72-76. |
a88a867e3a9d
17318601 pkg needs a synchronous option for service actuators
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
2925
diff
changeset
|
82 |
|
a88a867e3a9d
17318601 pkg needs a synchronous option for service actuators
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
2925
diff
changeset
|
83 |
pkg.client.api.ImageInterface has changed as follows: |
a88a867e3a9d
17318601 pkg needs a synchronous option for service actuators
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
2925
diff
changeset
|
84 |
|
a88a867e3a9d
17318601 pkg needs a synchronous option for service actuators
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
2925
diff
changeset
|
85 |
* Added 'act_timeout' parameter to |
a88a867e3a9d
17318601 pkg needs a synchronous option for service actuators
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
2925
diff
changeset
|
86 |
- gen_plan_update() |
a88a867e3a9d
17318601 pkg needs a synchronous option for service actuators
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
2925
diff
changeset
|
87 |
- gen_plan_uninstall() |
a88a867e3a9d
17318601 pkg needs a synchronous option for service actuators
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
2925
diff
changeset
|
88 |
- gen_plan_install() |
a88a867e3a9d
17318601 pkg needs a synchronous option for service actuators
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
2925
diff
changeset
|
89 |
- gen_plan_change_varcets() |
a88a867e3a9d
17318601 pkg needs a synchronous option for service actuators
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
2925
diff
changeset
|
90 |
|
a88a867e3a9d
17318601 pkg needs a synchronous option for service actuators
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
2925
diff
changeset
|
91 |
These allow to use synchronous SMF actuators including a timeout. |
a88a867e3a9d
17318601 pkg needs a synchronous option for service actuators
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
2925
diff
changeset
|
92 |
|
a88a867e3a9d
17318601 pkg needs a synchronous option for service actuators
Erik Trauschke <Erik.Trauschke@oracle.com>
parents:
2925
diff
changeset
|
93 |
|
2925
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
94 |
Version 76: |
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
95 |
Compatible with clients using versions 72-75 [1]. |
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
96 |
|
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
97 |
pkg.client.api.ImageInterface has changed as follows: |
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
98 |
|
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
99 |
* The generator functions 'gen_facets()' has been updated to |
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
100 |
give more information about what facets are changing. |
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
101 |
Previously a 2 value tuple was returned, now a 4 value tuple |
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
102 |
is returned. |
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
103 |
|
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
104 |
* [1] This is actually an incompatible change to the old |
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
105 |
'gen_facets()' behavior, but since gen_facets was only |
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
106 |
introduced in the previous version of the client API it's |
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
107 |
unlikely that anyone outside of the pkg gate has adopted it's |
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
108 |
use. But since we'd like to avoid an incompatible client API |
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
109 |
change we're going to ignore this issue. |
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
110 |
|
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
111 |
* The parsable package plan output format for facet changes has |
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
112 |
been changed. Previously a tuple with 2 values was returned; |
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
113 |
now a tuple with 6 values is returned. |
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
114 |
|
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
115 |
* Added 'li_parent_sync' parameter to 'gen_plan_uninstall()'. |
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
116 |
|
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
117 |
* Added 'li_md_only' and 'li_pkg_updates' parameters to |
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
118 |
'gen_plan_detach()' and 'detach_linked_children()' |
3e1fbeb31067
15743323 linked images should propagate incorporation facet version locks
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2910
diff
changeset
|
119 |
|
2910
2bb9f6ffdff9
15654935 pkg facet/variant should also display those implicitly set
Shawn Walker <shawn.walker@oracle.com>
parents:
2708
diff
changeset
|
120 |
Version 75: |
2bb9f6ffdff9
15654935 pkg facet/variant should also display those implicitly set
Shawn Walker <shawn.walker@oracle.com>
parents:
2708
diff
changeset
|
121 |
Compatible with clients using versions 72-74. |
2bb9f6ffdff9
15654935 pkg facet/variant should also display those implicitly set
Shawn Walker <shawn.walker@oracle.com>
parents:
2708
diff
changeset
|
122 |
|
2bb9f6ffdff9
15654935 pkg facet/variant should also display those implicitly set
Shawn Walker <shawn.walker@oracle.com>
parents:
2708
diff
changeset
|
123 |
pkg.client.api.ImageInterface has changed as follows: |
2bb9f6ffdff9
15654935 pkg facet/variant should also display those implicitly set
Shawn Walker <shawn.walker@oracle.com>
parents:
2708
diff
changeset
|
124 |
|
2bb9f6ffdff9
15654935 pkg facet/variant should also display those implicitly set
Shawn Walker <shawn.walker@oracle.com>
parents:
2708
diff
changeset
|
125 |
* New generator functions 'gen_variants()' and 'gen_facets()' to |
2bb9f6ffdff9
15654935 pkg facet/variant should also display those implicitly set
Shawn Walker <shawn.walker@oracle.com>
parents:
2708
diff
changeset
|
126 |
retrieve the current list of facets or variants currently |
2bb9f6ffdff9
15654935 pkg facet/variant should also display those implicitly set
Shawn Walker <shawn.walker@oracle.com>
parents:
2708
diff
changeset
|
127 |
(implicitly or explicitly) set in the image. See 'pydoc |
2bb9f6ffdff9
15654935 pkg facet/variant should also display those implicitly set
Shawn Walker <shawn.walker@oracle.com>
parents:
2708
diff
changeset
|
128 |
pkg.client.api' for details. |
2bb9f6ffdff9
15654935 pkg facet/variant should also display those implicitly set
Shawn Walker <shawn.walker@oracle.com>
parents:
2708
diff
changeset
|
129 |
|
2708
4dac3e277ccf
7137406 pkg image-update could display release notes (or pointer to)
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2701
diff
changeset
|
130 |
Version 74: |
2910
2bb9f6ffdff9
15654935 pkg facet/variant should also display those implicitly set
Shawn Walker <shawn.walker@oracle.com>
parents:
2708
diff
changeset
|
131 |
Compatible with clients using versions 72-74. |
2708
4dac3e277ccf
7137406 pkg image-update could display release notes (or pointer to)
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2701
diff
changeset
|
132 |
The PlanDescription now has interfaces to |
4dac3e277ccf
7137406 pkg image-update could display release notes (or pointer to)
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2701
diff
changeset
|
133 |
determine whether or not release notes were generated |
4dac3e277ccf
7137406 pkg image-update could display release notes (or pointer to)
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2701
diff
changeset
|
134 |
for this operation, whether or not they must be displayed, |
4dac3e277ccf
7137406 pkg image-update could display release notes (or pointer to)
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2701
diff
changeset
|
135 |
and a method of retrieving the release notes line by |
4dac3e277ccf
7137406 pkg image-update could display release notes (or pointer to)
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2701
diff
changeset
|
136 |
line. |
4dac3e277ccf
7137406 pkg image-update could display release notes (or pointer to)
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2701
diff
changeset
|
137 |
|
2701
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
138 |
Version 73: |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
139 |
Compatible with clients using version 72. |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
140 |
|
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
141 |
A per-origin/mirror property has been added, and the transport |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
142 |
updated to allow for multiple paths to a given URI. |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
143 |
|
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
144 |
pkg.client.publisher.RepositoryURI has changed as follows: |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
145 |
|
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
146 |
* proxies attribute has been added, allowing origins |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
147 |
and mirrors to be specified with individual HTTP proxies, |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
148 |
each represented by a pkg.client.publisher.ProxyURI object. |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
149 |
Multiple proxies for the same URI may not be configured |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
150 |
at present. |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
151 |
|
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
152 |
* proxy attribute is now deprecated, and attempts to set |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
153 |
both 'proxies' and 'proxy' in the constructor will result |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
154 |
in an error. |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
155 |
|
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
156 |
pkg.client.api_errors has changed as follows: |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
157 |
|
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
158 |
* UnknownRepositoryOrigin and UnknownRepositoryMirror |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
159 |
exceptions have been changed to include a message |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
160 |
when a RepositoryURI with a proxy is being used, |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
161 |
printing that proxy. |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
162 |
|
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
163 |
* The Exceptions DuplicateSyspubOrigin and |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
164 |
DuplicateSyspubMirror have been added for cases where we |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
165 |
attempt to add a user-origin or user-mirror that is already |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
166 |
provided by the system publisher. |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
167 |
|
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
168 |
* The Exceptions RemoveSyspubOrigin and RemoveSyspubMirror |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
169 |
have been added for cases where we attempt to remove origins |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
170 |
or mirrors that are proxied by the system publisher. |
55bf0cb749ae
7136244 granular configuration of http_proxy option
Tim Foster <tim.s.foster@oracle.com>
parents:
2690
diff
changeset
|
171 |
|
2690
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
172 |
Version 72: |
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
173 |
Incompatible with clients using versions 0-71. |
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
174 |
|
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
175 |
pkg.client.api.ImageInterface has changed as follows: |
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
176 |
|
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
177 |
* New functions added: img_plandir(), is_active_liveroot_be(), |
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
178 |
isparent(), linked_publisher_check(), load_plan(), set_alt_repos() |
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
179 |
* Functions removed: set_stage() |
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
180 |
* Removed "runid" parameter from: __init__() |
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
181 |
* Removed "accept" parameter from: gen_plan_*() |
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
182 |
* Removed "show_licenses" parameter from: gen_plan_*() |
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
183 |
* Added "pubcheck" parameter to: |
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
184 |
gen_plan_sync(), gen_plan_update() |
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
185 |
|
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
186 |
pkg.client.api.PlanDescription has changed as follows: |
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
187 |
* Removed __init__() parameters: img, backup_be, backup_be_name, |
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
188 |
new_be, be_activate, be_name |
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
189 |
* Added __init__() parameters: op |
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
190 |
* Removed methods: get_parsable_mediators(), get_parsable_varcets(), |
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
191 |
get_salvaged(), get_services() |
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
192 |
* Removed properties: is_active_root_be |
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
193 |
* Added methods: getstate(), setstate(), fromstate() |
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
194 |
* Added properties: executed, services, mediators, varcets, |
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
195 |
plan_desc, salvaged, plan_type, update_index |
11a8cae074e0
7140224 package downloaded messages displayed twice for each zone
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2612
diff
changeset
|
196 |
|
2612
7bf2387ebd19
18958 Error message concerning /var/pkg/lock & lack of privileges could be improved
Saurabh Vyas <saurabh.vyas@oracle.com>
parents:
2550
diff
changeset
|
197 |
Version 71: |
7bf2387ebd19
18958 Error message concerning /var/pkg/lock & lack of privileges could be improved
Saurabh Vyas <saurabh.vyas@oracle.com>
parents:
2550
diff
changeset
|
198 |
Compatible with clients using versions 66-70. |
7bf2387ebd19
18958 Error message concerning /var/pkg/lock & lack of privileges could be improved
Saurabh Vyas <saurabh.vyas@oracle.com>
parents:
2550
diff
changeset
|
199 |
|
7bf2387ebd19
18958 Error message concerning /var/pkg/lock & lack of privileges could be improved
Saurabh Vyas <saurabh.vyas@oracle.com>
parents:
2550
diff
changeset
|
200 |
pkg.client.api_errors has changed as follows: |
7bf2387ebd19
18958 Error message concerning /var/pkg/lock & lack of privileges could be improved
Saurabh Vyas <saurabh.vyas@oracle.com>
parents:
2550
diff
changeset
|
201 |
|
7bf2387ebd19
18958 Error message concerning /var/pkg/lock & lack of privileges could be improved
Saurabh Vyas <saurabh.vyas@oracle.com>
parents:
2550
diff
changeset
|
202 |
* Added UnprivilegedUserError to indicate when the current user |
7bf2387ebd19
18958 Error message concerning /var/pkg/lock & lack of privileges could be improved
Saurabh Vyas <saurabh.vyas@oracle.com>
parents:
2550
diff
changeset
|
203 |
does not have sufficient privileges to modify the image. |
7bf2387ebd19
18958 Error message concerning /var/pkg/lock & lack of privileges could be improved
Saurabh Vyas <saurabh.vyas@oracle.com>
parents:
2550
diff
changeset
|
204 |
|
2550
71fe32689f17
18914 pkg warns about image modification even if image is not liveroot
Shawn Walker <shawn.walker@oracle.com>
parents:
2547
diff
changeset
|
205 |
Version 70: |
71fe32689f17
18914 pkg warns about image modification even if image is not liveroot
Shawn Walker <shawn.walker@oracle.com>
parents:
2547
diff
changeset
|
206 |
Compatible with clients using versions 66-69. |
71fe32689f17
18914 pkg warns about image modification even if image is not liveroot
Shawn Walker <shawn.walker@oracle.com>
parents:
2547
diff
changeset
|
207 |
|
71fe32689f17
18914 pkg warns about image modification even if image is not liveroot
Shawn Walker <shawn.walker@oracle.com>
parents:
2547
diff
changeset
|
208 |
pkg.client.api.ImageInterface has changed as follows: |
71fe32689f17
18914 pkg warns about image modification even if image is not liveroot
Shawn Walker <shawn.walker@oracle.com>
parents:
2547
diff
changeset
|
209 |
* A new boolean property named is_liveroot has been added to |
71fe32689f17
18914 pkg warns about image modification even if image is not liveroot
Shawn Walker <shawn.walker@oracle.com>
parents:
2547
diff
changeset
|
210 |
allow API consumers to determine if the image to be modified |
71fe32689f17
18914 pkg warns about image modification even if image is not liveroot
Shawn Walker <shawn.walker@oracle.com>
parents:
2547
diff
changeset
|
211 |
is for the live system root. |
71fe32689f17
18914 pkg warns about image modification even if image is not liveroot
Shawn Walker <shawn.walker@oracle.com>
parents:
2547
diff
changeset
|
212 |
|
2547
032eaff05522
17801 contents -r should return only highest-ranked match by default
Shawn Walker <shawn.walker@oracle.com>
parents:
2524
diff
changeset
|
213 |
Version 69: |
032eaff05522
17801 contents -r should return only highest-ranked match by default
Shawn Walker <shawn.walker@oracle.com>
parents:
2524
diff
changeset
|
214 |
Compatible with clients using versions 66-68. |
032eaff05522
17801 contents -r should return only highest-ranked match by default
Shawn Walker <shawn.walker@oracle.com>
parents:
2524
diff
changeset
|
215 |
|
032eaff05522
17801 contents -r should return only highest-ranked match by default
Shawn Walker <shawn.walker@oracle.com>
parents:
2524
diff
changeset
|
216 |
pkg.client.api.ImageInterface has changed as follows: |
032eaff05522
17801 contents -r should return only highest-ranked match by default
Shawn Walker <shawn.walker@oracle.com>
parents:
2524
diff
changeset
|
217 |
* get_pkg_list() and info() now have an optional boolean |
032eaff05522
17801 contents -r should return only highest-ranked match by default
Shawn Walker <shawn.walker@oracle.com>
parents:
2524
diff
changeset
|
218 |
parameter named 'ranked' that controls whether only |
032eaff05522
17801 contents -r should return only highest-ranked match by default
Shawn Walker <shawn.walker@oracle.com>
parents:
2524
diff
changeset
|
219 |
packages for the highest-ranked matching publisher should |
032eaff05522
17801 contents -r should return only highest-ranked match by default
Shawn Walker <shawn.walker@oracle.com>
parents:
2524
diff
changeset
|
220 |
be returned. See 'pydoc pkg.client.api' for details. |
032eaff05522
17801 contents -r should return only highest-ranked match by default
Shawn Walker <shawn.walker@oracle.com>
parents:
2524
diff
changeset
|
221 |
|
2524
0c32a79b1684
17252 pkg.client.api should provide history management interface
Shawn Walker <shawn.walker@oracle.com>
parents:
2517
diff
changeset
|
222 |
Version 68: |
0c32a79b1684
17252 pkg.client.api should provide history management interface
Shawn Walker <shawn.walker@oracle.com>
parents:
2517
diff
changeset
|
223 |
Compatible with clients using versions 66-67. |
0c32a79b1684
17252 pkg.client.api should provide history management interface
Shawn Walker <shawn.walker@oracle.com>
parents:
2517
diff
changeset
|
224 |
|
0c32a79b1684
17252 pkg.client.api should provide history management interface
Shawn Walker <shawn.walker@oracle.com>
parents:
2517
diff
changeset
|
225 |
pkg.client.api.ImageInterface has changed as follows: |
0c32a79b1684
17252 pkg.client.api should provide history management interface
Shawn Walker <shawn.walker@oracle.com>
parents:
2517
diff
changeset
|
226 |
|
0c32a79b1684
17252 pkg.client.api should provide history management interface
Shawn Walker <shawn.walker@oracle.com>
parents:
2517
diff
changeset
|
227 |
* New functions for managing client history have been added: |
0c32a79b1684
17252 pkg.client.api should provide history management interface
Shawn Walker <shawn.walker@oracle.com>
parents:
2517
diff
changeset
|
228 |
abort(), gen_history(), clear_history(), and purge_history(). |
0c32a79b1684
17252 pkg.client.api should provide history management interface
Shawn Walker <shawn.walker@oracle.com>
parents:
2517
diff
changeset
|
229 |
See 'pydoc pkg.client.api' for details. |
0c32a79b1684
17252 pkg.client.api should provide history management interface
Shawn Walker <shawn.walker@oracle.com>
parents:
2517
diff
changeset
|
230 |
|
0c32a79b1684
17252 pkg.client.api should provide history management interface
Shawn Walker <shawn.walker@oracle.com>
parents:
2517
diff
changeset
|
231 |
* New constants for decoding history entries have been added |
0c32a79b1684
17252 pkg.client.api should provide history management interface
Shawn Walker <shawn.walker@oracle.com>
parents:
2517
diff
changeset
|
232 |
named after the pattern RESULT_*. See 'pydoc pkg.client.api' |
0c32a79b1684
17252 pkg.client.api should provide history management interface
Shawn Walker <shawn.walker@oracle.com>
parents:
2517
diff
changeset
|
233 |
for details. |
0c32a79b1684
17252 pkg.client.api should provide history management interface
Shawn Walker <shawn.walker@oracle.com>
parents:
2517
diff
changeset
|
234 |
|
0c32a79b1684
17252 pkg.client.api should provide history management interface
Shawn Walker <shawn.walker@oracle.com>
parents:
2517
diff
changeset
|
235 |
pkg.client.api_errors has changed as follows: |
0c32a79b1684
17252 pkg.client.api should provide history management interface
Shawn Walker <shawn.walker@oracle.com>
parents:
2517
diff
changeset
|
236 |
|
0c32a79b1684
17252 pkg.client.api should provide history management interface
Shawn Walker <shawn.walker@oracle.com>
parents:
2517
diff
changeset
|
237 |
* New exceptions for bad history requests or history parsing |
0c32a79b1684
17252 pkg.client.api should provide history management interface
Shawn Walker <shawn.walker@oracle.com>
parents:
2517
diff
changeset
|
238 |
errors have been added. (HistoryLoadException, etc.) |
0c32a79b1684
17252 pkg.client.api should provide history management interface
Shawn Walker <shawn.walker@oracle.com>
parents:
2517
diff
changeset
|
239 |
|
2517
8f26a1d7100c
18827 pkg(1) should provide interfaces to control backup BE creation
Shawn Walker <shawn.walker@oracle.com>
parents:
2500
diff
changeset
|
240 |
Version 67: |
8f26a1d7100c
18827 pkg(1) should provide interfaces to control backup BE creation
Shawn Walker <shawn.walker@oracle.com>
parents:
2500
diff
changeset
|
241 |
Compatible with clients using version 66. |
8f26a1d7100c
18827 pkg(1) should provide interfaces to control backup BE creation
Shawn Walker <shawn.walker@oracle.com>
parents:
2500
diff
changeset
|
242 |
|
8f26a1d7100c
18827 pkg(1) should provide interfaces to control backup BE creation
Shawn Walker <shawn.walker@oracle.com>
parents:
2500
diff
changeset
|
243 |
pkg.client.api.ImageInterface has changed as follows: |
8f26a1d7100c
18827 pkg(1) should provide interfaces to control backup BE creation
Shawn Walker <shawn.walker@oracle.com>
parents:
2500
diff
changeset
|
244 |
|
8f26a1d7100c
18827 pkg(1) should provide interfaces to control backup BE creation
Shawn Walker <shawn.walker@oracle.com>
parents:
2500
diff
changeset
|
245 |
* planning functions such as gen_plan_install that allow |
8f26a1d7100c
18827 pkg(1) should provide interfaces to control backup BE creation
Shawn Walker <shawn.walker@oracle.com>
parents:
2500
diff
changeset
|
246 |
specifying a be_name now also support specifying a |
8f26a1d7100c
18827 pkg(1) should provide interfaces to control backup BE creation
Shawn Walker <shawn.walker@oracle.com>
parents:
2500
diff
changeset
|
247 |
backup_be_name, and the ability to create a backup BE |
8f26a1d7100c
18827 pkg(1) should provide interfaces to control backup BE creation
Shawn Walker <shawn.walker@oracle.com>
parents:
2500
diff
changeset
|
248 |
by setting backup_be=True. |
8f26a1d7100c
18827 pkg(1) should provide interfaces to control backup BE creation
Shawn Walker <shawn.walker@oracle.com>
parents:
2500
diff
changeset
|
249 |
|
8f26a1d7100c
18827 pkg(1) should provide interfaces to control backup BE creation
Shawn Walker <shawn.walker@oracle.com>
parents:
2500
diff
changeset
|
250 |
pkg.client.api.PlanDescription has changed as follows: |
8f26a1d7100c
18827 pkg(1) should provide interfaces to control backup BE creation
Shawn Walker <shawn.walker@oracle.com>
parents:
2500
diff
changeset
|
251 |
|
8f26a1d7100c
18827 pkg(1) should provide interfaces to control backup BE creation
Shawn Walker <shawn.walker@oracle.com>
parents:
2500
diff
changeset
|
252 |
* New properties named 'backup_be' and 'backup_be_name' have been |
8f26a1d7100c
18827 pkg(1) should provide interfaces to control backup BE creation
Shawn Walker <shawn.walker@oracle.com>
parents:
2500
diff
changeset
|
253 |
added to allow callers to determine whether a backup BE will be |
8f26a1d7100c
18827 pkg(1) should provide interfaces to control backup BE creation
Shawn Walker <shawn.walker@oracle.com>
parents:
2500
diff
changeset
|
254 |
created and what name was specified for it. |
8f26a1d7100c
18827 pkg(1) should provide interfaces to control backup BE creation
Shawn Walker <shawn.walker@oracle.com>
parents:
2500
diff
changeset
|
255 |
|
8f26a1d7100c
18827 pkg(1) should provide interfaces to control backup BE creation
Shawn Walker <shawn.walker@oracle.com>
parents:
2500
diff
changeset
|
256 |
* The new property 'is_active_root_be' has been added to allow |
8f26a1d7100c
18827 pkg(1) should provide interfaces to control backup BE creation
Shawn Walker <shawn.walker@oracle.com>
parents:
2500
diff
changeset
|
257 |
consumers to determine if the image being modified is for the |
8f26a1d7100c
18827 pkg(1) should provide interfaces to control backup BE creation
Shawn Walker <shawn.walker@oracle.com>
parents:
2500
diff
changeset
|
258 |
live, active root BE. |
8f26a1d7100c
18827 pkg(1) should provide interfaces to control backup BE creation
Shawn Walker <shawn.walker@oracle.com>
parents:
2500
diff
changeset
|
259 |
|
2500
a63fead21404
18439 pkg commands that modify the image should have a parsable output option
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2493
diff
changeset
|
260 |
Version 66: |
a63fead21404
18439 pkg commands that modify the image should have a parsable output option
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2493
diff
changeset
|
261 |
Incompatible with clients using versions 0-63. |
a63fead21404
18439 pkg commands that modify the image should have a parsable output option
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2493
diff
changeset
|
262 |
|
a63fead21404
18439 pkg commands that modify the image should have a parsable output option
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2493
diff
changeset
|
263 |
The incompatible change is that attach_linked_child, audit_linked, |
a63fead21404
18439 pkg commands that modify the image should have a parsable output option
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2493
diff
changeset
|
264 |
audit_linked_children, and detach_linked_children now return a tuple |
a63fead21404
18439 pkg commands that modify the image should have a parsable output option
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2493
diff
changeset
|
265 |
containing the return value, any errors, and either None or a dictionary |
a63fead21404
18439 pkg commands that modify the image should have a parsable output option
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2493
diff
changeset
|
266 |
representing the parsable output for the operation. All the *_rvdict2rv |
a63fead21404
18439 pkg commands that modify the image should have a parsable output option
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2493
diff
changeset
|
267 |
functions have been changed similar except they return a list of |
a63fead21404
18439 pkg commands that modify the image should have a parsable output option
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2493
diff
changeset
|
268 |
dictionaries. |
a63fead21404
18439 pkg commands that modify the image should have a parsable output option
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2493
diff
changeset
|
269 |
|
a63fead21404
18439 pkg commands that modify the image should have a parsable output option
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2493
diff
changeset
|
270 |
The following are the compatible changes: |
a63fead21404
18439 pkg commands that modify the image should have a parsable output option
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2493
diff
changeset
|
271 |
pkg.client.api.ImageInterface has changed as follows: |
a63fead21404
18439 pkg commands that modify the image should have a parsable output option
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2493
diff
changeset
|
272 |
* gen_plan_* now takes an optional argument, parsable version, which is |
a63fead21404
18439 pkg commands that modify the image should have a parsable output option
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2493
diff
changeset
|
273 |
either None or contains the version of parsable output to generate. |
a63fead21404
18439 pkg commands that modify the image should have a parsable output option
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2493
diff
changeset
|
274 |
|
a63fead21404
18439 pkg commands that modify the image should have a parsable output option
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2493
diff
changeset
|
275 |
pkg.client.api.PlanDescription has changed as follows: |
a63fead21404
18439 pkg commands that modify the image should have a parsable output option
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2493
diff
changeset
|
276 |
|
a63fead21404
18439 pkg commands that modify the image should have a parsable output option
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2493
diff
changeset
|
277 |
* get_parsable_mediators and get_parsable_varcets have been added as |
a63fead21404
18439 pkg commands that modify the image should have a parsable output option
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2493
diff
changeset
|
278 |
functions which return the raw structures for mediators, variants, and |
a63fead21404
18439 pkg commands that modify the image should have a parsable output option
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2493
diff
changeset
|
279 |
facets rather than the formatted strings which get_mediators and |
a63fead21404
18439 pkg commands that modify the image should have a parsable output option
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2493
diff
changeset
|
280 |
get_varcets do. |
a63fead21404
18439 pkg commands that modify the image should have a parsable output option
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2493
diff
changeset
|
281 |
|
2493
5db1603f0c3f
18609 support for a human-readable version string
Danek Duvall <danek.duvall@oracle.com>
parents:
2488
diff
changeset
|
282 |
Version 65: |
5db1603f0c3f
18609 support for a human-readable version string
Danek Duvall <danek.duvall@oracle.com>
parents:
2488
diff
changeset
|
283 |
Incompatible with clients using versions 0-64. |
5db1603f0c3f
18609 support for a human-readable version string
Danek Duvall <danek.duvall@oracle.com>
parents:
2488
diff
changeset
|
284 |
|
5db1603f0c3f
18609 support for a human-readable version string
Danek Duvall <danek.duvall@oracle.com>
parents:
2488
diff
changeset
|
285 |
pkg.client.api.ImageInterface has changed as follows: |
5db1603f0c3f
18609 support for a human-readable version string
Danek Duvall <danek.duvall@oracle.com>
parents:
2488
diff
changeset
|
286 |
* get_pkg_list() yields five values instead of four; the fifth is a |
5db1603f0c3f
18609 support for a human-readable version string
Danek Duvall <danek.duvall@oracle.com>
parents:
2488
diff
changeset
|
287 |
dictionary of package attributes. |
5db1603f0c3f
18609 support for a human-readable version string
Danek Duvall <danek.duvall@oracle.com>
parents:
2488
diff
changeset
|
288 |
|
5db1603f0c3f
18609 support for a human-readable version string
Danek Duvall <danek.duvall@oracle.com>
parents:
2488
diff
changeset
|
289 |
pkg.client.api.PackageInfo has changed as follows: |
5db1603f0c3f
18609 support for a human-readable version string
Danek Duvall <danek.duvall@oracle.com>
parents:
2488
diff
changeset
|
290 |
* added get_attr_values() to return the values of named package |
5db1603f0c3f
18609 support for a human-readable version string
Danek Duvall <danek.duvall@oracle.com>
parents:
2488
diff
changeset
|
291 |
attributes. |
5db1603f0c3f
18609 support for a human-readable version string
Danek Duvall <danek.duvall@oracle.com>
parents:
2488
diff
changeset
|
292 |
|
2488
010931d9cabe
18688 pkg clients shouldn't attempt to find an image at startup
Shawn Walker <shawn.walker@oracle.com>
parents:
2453
diff
changeset
|
293 |
Version 64: |
010931d9cabe
18688 pkg clients shouldn't attempt to find an image at startup
Shawn Walker <shawn.walker@oracle.com>
parents:
2453
diff
changeset
|
294 |
Incompatible with clients using versions 0-63. |
010931d9cabe
18688 pkg clients shouldn't attempt to find an image at startup
Shawn Walker <shawn.walker@oracle.com>
parents:
2453
diff
changeset
|
295 |
|
010931d9cabe
18688 pkg clients shouldn't attempt to find an image at startup
Shawn Walker <shawn.walker@oracle.com>
parents:
2453
diff
changeset
|
296 |
pkg.client.api_errors has changed as follows: |
010931d9cabe
18688 pkg clients shouldn't attempt to find an image at startup
Shawn Walker <shawn.walker@oracle.com>
parents:
2453
diff
changeset
|
297 |
* The ImageLocationAmbiguous exception has been removed. The client |
010931d9cabe
18688 pkg clients shouldn't attempt to find an image at startup
Shawn Walker <shawn.walker@oracle.com>
parents:
2453
diff
changeset
|
298 |
API no longer requires the image to be found at '/' on Solaris. |
010931d9cabe
18688 pkg clients shouldn't attempt to find an image at startup
Shawn Walker <shawn.walker@oracle.com>
parents:
2453
diff
changeset
|
299 |
Clients are free to enforce whatever restrictions on image root |
010931d9cabe
18688 pkg clients shouldn't attempt to find an image at startup
Shawn Walker <shawn.walker@oracle.com>
parents:
2453
diff
changeset
|
300 |
they desire. |
010931d9cabe
18688 pkg clients shouldn't attempt to find an image at startup
Shawn Walker <shawn.walker@oracle.com>
parents:
2453
diff
changeset
|
301 |
|
2453
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
302 |
Version 63: |
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
303 |
Compatible with clients using version 62. |
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
304 |
|
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
305 |
pkg.client.api.ImageInterface has changed as follows: |
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
306 |
* added new 'mediators' property has been added |
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
307 |
to get a dictionary of the configured mediation |
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
308 |
information. |
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
309 |
|
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
310 |
* added gen_available_mediators() to get the list of |
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
311 |
available mediations for installed packages. |
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
312 |
|
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
313 |
* added gen_plan_set_mediators() for planning an |
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
314 |
operation to set link mediation. |
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
315 |
|
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
316 |
pkg.client.api.PlanDescription has changed as follows: |
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
317 |
* added get_mediators() method to get a list of |
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
318 |
strings describing the mediation changes for a plan. |
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
319 |
|
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
320 |
pkg.client.api_errors has changed as follows: |
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
321 |
* added an invalid_mediations property to PlanCreationException |
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
322 |
that contains a dictionary of any mediations found to be |
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
323 |
invalid for the plan with a key set for each aspect that was |
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
324 |
faulty. |
330443795456
18619 link mediation support needed
Shawn Walker <shawn.walker@oracle.com>
parents:
2446
diff
changeset
|
325 |
|
2446
ba222bc0b1ce
18625 new disk space information needs improved formatting, wording
Shawn Walker <shawn.walker@oracle.com>
parents:
2407
diff
changeset
|
326 |
Version 62: |
ba222bc0b1ce
18625 new disk space information needs improved formatting, wording
Shawn Walker <shawn.walker@oracle.com>
parents:
2407
diff
changeset
|
327 |
Incompatible with clients using versions 0-61. |
ba222bc0b1ce
18625 new disk space information needs improved formatting, wording
Shawn Walker <shawn.walker@oracle.com>
parents:
2407
diff
changeset
|
328 |
|
ba222bc0b1ce
18625 new disk space information needs improved formatting, wording
Shawn Walker <shawn.walker@oracle.com>
parents:
2407
diff
changeset
|
329 |
pkg.client.api.PackageInfo has changed as follows: |
ba222bc0b1ce
18625 new disk space information needs improved formatting, wording
Shawn Walker <shawn.walker@oracle.com>
parents:
2407
diff
changeset
|
330 |
* the 'fmri' property is now a PkgFmri object instead of a |
ba222bc0b1ce
18625 new disk space information needs improved formatting, wording
Shawn Walker <shawn.walker@oracle.com>
parents:
2407
diff
changeset
|
331 |
string. |
ba222bc0b1ce
18625 new disk space information needs improved formatting, wording
Shawn Walker <shawn.walker@oracle.com>
parents:
2407
diff
changeset
|
332 |
|
ba222bc0b1ce
18625 new disk space information needs improved formatting, wording
Shawn Walker <shawn.walker@oracle.com>
parents:
2407
diff
changeset
|
333 |
pkg.client.api.PlanDescription has changed as follows: |
ba222bc0b1ce
18625 new disk space information needs improved formatting, wording
Shawn Walker <shawn.walker@oracle.com>
parents:
2407
diff
changeset
|
334 |
* get_services() now returns a list of tuples of strings, |
ba222bc0b1ce
18625 new disk space information needs improved formatting, wording
Shawn Walker <shawn.walker@oracle.com>
parents:
2407
diff
changeset
|
335 |
see pkg.client.api for details. |
ba222bc0b1ce
18625 new disk space information needs improved formatting, wording
Shawn Walker <shawn.walker@oracle.com>
parents:
2407
diff
changeset
|
336 |
|
2407
a831f1491c86
1769 pkg(5) doesn't check for disk space
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2382
diff
changeset
|
337 |
Version 61: |
a831f1491c86
1769 pkg(5) doesn't check for disk space
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2382
diff
changeset
|
338 |
Compatible with clients using version 60. |
a831f1491c86
1769 pkg(5) doesn't check for disk space
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2382
diff
changeset
|
339 |
pkg.client.api.PlanDescription has changed as follows: |
a831f1491c86
1769 pkg(5) doesn't check for disk space
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2382
diff
changeset
|
340 |
* Added the following new interfaces |
a831f1491c86
1769 pkg(5) doesn't check for disk space
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2382
diff
changeset
|
341 |
get_bytes_added() |
2488
010931d9cabe
18688 pkg clients shouldn't attempt to find an image at startup
Shawn Walker <shawn.walker@oracle.com>
parents:
2453
diff
changeset
|
342 |
get_cbytes_added() |
2407
a831f1491c86
1769 pkg(5) doesn't check for disk space
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2382
diff
changeset
|
343 |
get_bytes_avail() |
a831f1491c86
1769 pkg(5) doesn't check for disk space
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2382
diff
changeset
|
344 |
get_cbytes_avail() |
a831f1491c86
1769 pkg(5) doesn't check for disk space
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2382
diff
changeset
|
345 |
pkg.client.api.prepare has changed as follows: |
a831f1491c86
1769 pkg(5) doesn't check for disk space
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2382
diff
changeset
|
346 |
* may now raise api_errors.ImageInsufficientSpace exception |
a831f1491c86
1769 pkg(5) doesn't check for disk space
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2382
diff
changeset
|
347 |
|
a831f1491c86
1769 pkg(5) doesn't check for disk space
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2382
diff
changeset
|
348 |
pkg.client.api.execute has changed as follows: |
a831f1491c86
1769 pkg(5) doesn't check for disk space
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2382
diff
changeset
|
349 |
* may now raise api_errors.ImageInsufficientSpace exception |
a831f1491c86
1769 pkg(5) doesn't check for disk space
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2382
diff
changeset
|
350 |
|
2382
b91a97e46434
18413 recursive uninstall functionality should be removed
Shawn Walker <shawn.walker@oracle.com>
parents:
2339
diff
changeset
|
351 |
Version 60: |
b91a97e46434
18413 recursive uninstall functionality should be removed
Shawn Walker <shawn.walker@oracle.com>
parents:
2339
diff
changeset
|
352 |
Incompatible with clients using versions 0-59. |
b91a97e46434
18413 recursive uninstall functionality should be removed
Shawn Walker <shawn.walker@oracle.com>
parents:
2339
diff
changeset
|
353 |
|
b91a97e46434
18413 recursive uninstall functionality should be removed
Shawn Walker <shawn.walker@oracle.com>
parents:
2339
diff
changeset
|
354 |
pkg.client.api.ImageInterface has changed as follows: |
b91a97e46434
18413 recursive uninstall functionality should be removed
Shawn Walker <shawn.walker@oracle.com>
parents:
2339
diff
changeset
|
355 |
|
b91a97e46434
18413 recursive uninstall functionality should be removed
Shawn Walker <shawn.walker@oracle.com>
parents:
2339
diff
changeset
|
356 |
* Uninstall no longer supports recursive removal. As such, |
b91a97e46434
18413 recursive uninstall functionality should be removed
Shawn Walker <shawn.walker@oracle.com>
parents:
2339
diff
changeset
|
357 |
the recursive_removal parameter of plan_uninstall and |
b91a97e46434
18413 recursive uninstall functionality should be removed
Shawn Walker <shawn.walker@oracle.com>
parents:
2339
diff
changeset
|
358 |
gen_plan_uninstall has been removed. |
b91a97e46434
18413 recursive uninstall functionality should be removed
Shawn Walker <shawn.walker@oracle.com>
parents:
2339
diff
changeset
|
359 |
|
2339
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
360 |
Version 59: |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
361 |
Compatible with clients using versions 57-59. |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
362 |
|
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
363 |
pkg.client.api.ImageInterface has changed as follows: |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
364 |
* introduced new linked image interfaces: |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
365 |
attach_linked_child() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
366 |
audit_linked() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
367 |
audit_linked_children() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
368 |
audit_linked_rvdict2rv() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
369 |
detach_linked_children() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
370 |
detach_linked_rvdict2rv() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
371 |
gen_plan_attach() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
372 |
gen_plan_detach() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
373 |
gen_plan_sync() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
374 |
get_linked_name() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
375 |
get_linked_props() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
376 |
ischild() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
377 |
list_linked() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
378 |
parse_linked_name() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
379 |
parse_linked_name_list() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
380 |
sync_linked_children() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
381 |
sync_linked_rvdict2rv() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
382 |
* introduced new non-linked image interfaces: |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
383 |
gen_plan_change_varcets() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
384 |
gen_plan_install() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
385 |
gen_plan_revert() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
386 |
gen_plan_uninstall() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
387 |
gen_plan_update() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
388 |
solaris_image() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
389 |
* deprecated: |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
390 |
plan_change_varcets() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
391 |
plan_install() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
392 |
plan_revert() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
393 |
plan_uninstall() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
394 |
plan_update() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
395 |
plan_update_all() |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
396 |
|
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
397 |
pkg.client.api_errors has changed as follows: |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
398 |
* introduced LinkedImageException |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
399 |
* updated PlanCreationException |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
400 |
|
2319
247375ff5e19
14165 pkg operations should provide option to skip BE activation
Shawn Walker <shawn.walker@oracle.com>
parents:
2310
diff
changeset
|
401 |
Version 58: |
247375ff5e19
14165 pkg operations should provide option to skip BE activation
Shawn Walker <shawn.walker@oracle.com>
parents:
2310
diff
changeset
|
402 |
Compatible with clients using version 57: |
247375ff5e19
14165 pkg operations should provide option to skip BE activation
Shawn Walker <shawn.walker@oracle.com>
parents:
2310
diff
changeset
|
403 |
|
247375ff5e19
14165 pkg operations should provide option to skip BE activation
Shawn Walker <shawn.walker@oracle.com>
parents:
2310
diff
changeset
|
404 |
pkg.client.api.ImageInterface has changed as follows: |
247375ff5e19
14165 pkg operations should provide option to skip BE activation
Shawn Walker <shawn.walker@oracle.com>
parents:
2310
diff
changeset
|
405 |
|
247375ff5e19
14165 pkg operations should provide option to skip BE activation
Shawn Walker <shawn.walker@oracle.com>
parents:
2310
diff
changeset
|
406 |
* added a 'be_activate' parameter to all plan_*() functions to |
247375ff5e19
14165 pkg operations should provide option to skip BE activation
Shawn Walker <shawn.walker@oracle.com>
parents:
2310
diff
changeset
|
407 |
allow clients to control whether any new BE created during |
247375ff5e19
14165 pkg operations should provide option to skip BE activation
Shawn Walker <shawn.walker@oracle.com>
parents:
2310
diff
changeset
|
408 |
operations is set as the active one on next boot. |
247375ff5e19
14165 pkg operations should provide option to skip BE activation
Shawn Walker <shawn.walker@oracle.com>
parents:
2310
diff
changeset
|
409 |
|
247375ff5e19
14165 pkg operations should provide option to skip BE activation
Shawn Walker <shawn.walker@oracle.com>
parents:
2310
diff
changeset
|
410 |
pkg.client.api.PlanDescription has changed as follows: |
247375ff5e19
14165 pkg operations should provide option to skip BE activation
Shawn Walker <shawn.walker@oracle.com>
parents:
2310
diff
changeset
|
411 |
|
247375ff5e19
14165 pkg operations should provide option to skip BE activation
Shawn Walker <shawn.walker@oracle.com>
parents:
2310
diff
changeset
|
412 |
* added 'activate_be' boolean property so clients can determine |
247375ff5e19
14165 pkg operations should provide option to skip BE activation
Shawn Walker <shawn.walker@oracle.com>
parents:
2310
diff
changeset
|
413 |
whether be activation was requested at planning time. |
247375ff5e19
14165 pkg operations should provide option to skip BE activation
Shawn Walker <shawn.walker@oracle.com>
parents:
2310
diff
changeset
|
414 |
|
2310
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
415 |
Version 57: |
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
416 |
Incompatible with clients using versions 0-56: |
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
417 |
pkg.client.api.ImageInterface has changed as follows: |
2339
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
418 |
* get_preferred_publisher has been replaced with |
2310
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
419 |
get_highest_ranked_publisher |
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
420 |
|
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
421 |
* set_pub_search_after has been removed |
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
422 |
|
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
423 |
* set_pub_search_before has been removed |
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
424 |
|
2339
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
425 |
* search_after, search_before, and search_first have been added as |
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
426 |
options to add_publisher and update_publisher |
2310
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
427 |
|
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
428 |
* The write_syspub_0 function has been added. |
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
429 |
|
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
430 |
pkg.client.publisher.RepositoryURI has changed as follows: |
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
431 |
* proxy and system attributes have been added |
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
432 |
|
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
433 |
* The get_host function has been added. |
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
434 |
|
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
435 |
* The change_scheme function has been added. |
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
436 |
|
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
437 |
pkg.client.publisher.Repository has changed as follows: |
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
438 |
* a proxy attribute has been added and may be set during initialization |
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
439 |
|
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
440 |
pkg.client.publisher.Publisher has changed as follows: |
2339
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
441 |
* The repositories attribute which contained a list of Repository |
2310
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
442 |
objects has been replaced by the repository attribute which contains a |
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
443 |
single Repository object. |
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
444 |
|
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
445 |
* The selected_repository attribute has been removed. |
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
446 |
|
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
447 |
* A sys_pub attribute has been added which indicates whether a publisher |
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
448 |
is a system publisher. |
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
449 |
|
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
450 |
* The add_repository function has been replaced with the set_repository |
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
451 |
function. |
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
452 |
|
2339
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
453 |
* The has_configuration function has been added which attempts to |
2310
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
454 |
determine whether a publisher has been configured by a user. |
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
455 |
|
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
456 |
* The remove_repository function has had its arguments removed. |
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
457 |
|
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
458 |
* The set_selected_repository function has been removed. |
ce10607d5332
11684 desire option to not propagate certs to non-global zones
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2293
diff
changeset
|
459 |
|
2293
631000734928
3679 modified preserve=true files should be backed up during uninstall
Shawn Walker <shawn.walker@oracle.com>
parents:
2286
diff
changeset
|
460 |
Version 56: |
631000734928
3679 modified preserve=true files should be backed up during uninstall
Shawn Walker <shawn.walker@oracle.com>
parents:
2286
diff
changeset
|
461 |
Compatible with clients using version 55: |
631000734928
3679 modified preserve=true files should be backed up during uninstall
Shawn Walker <shawn.walker@oracle.com>
parents:
2286
diff
changeset
|
462 |
|
631000734928
3679 modified preserve=true files should be backed up during uninstall
Shawn Walker <shawn.walker@oracle.com>
parents:
2286
diff
changeset
|
463 |
pkg.client.api.ImageInterface has changed as follows: |
631000734928
3679 modified preserve=true files should be backed up during uninstall
Shawn Walker <shawn.walker@oracle.com>
parents:
2286
diff
changeset
|
464 |
|
631000734928
3679 modified preserve=true files should be backed up during uninstall
Shawn Walker <shawn.walker@oracle.com>
parents:
2286
diff
changeset
|
465 |
* added a get_salvaged() method to the PlanDescription class to |
631000734928
3679 modified preserve=true files should be backed up during uninstall
Shawn Walker <shawn.walker@oracle.com>
parents:
2286
diff
changeset
|
466 |
get the list of files or directories that were salvaged during |
631000734928
3679 modified preserve=true files should be backed up during uninstall
Shawn Walker <shawn.walker@oracle.com>
parents:
2286
diff
changeset
|
467 |
the executed package operation |
631000734928
3679 modified preserve=true files should be backed up during uninstall
Shawn Walker <shawn.walker@oracle.com>
parents:
2286
diff
changeset
|
468 |
|
2286
938fbb350ad2
16867 pkgsign should handle existing signatures better
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2228
diff
changeset
|
469 |
Version 55: |
938fbb350ad2
16867 pkgsign should handle existing signatures better
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2228
diff
changeset
|
470 |
Incompatible with clients using versions 0-54: |
938fbb350ad2
16867 pkgsign should handle existing signatures better
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2228
diff
changeset
|
471 |
|
938fbb350ad2
16867 pkgsign should handle existing signatures better
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2228
diff
changeset
|
472 |
pkg.client.publisher.Publisher has changed as follows: |
938fbb350ad2
16867 pkgsign should handle existing signatures better
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2228
diff
changeset
|
473 |
|
2339
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
474 |
* The following functions have been removed: |
2286
938fbb350ad2
16867 pkgsign should handle existing signatures better
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2228
diff
changeset
|
475 |
get_intermediate_certs |
2339
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
476 |
verify_ca_certs |
2286
938fbb350ad2
16867 pkgsign should handle existing signatures better
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2228
diff
changeset
|
477 |
|
938fbb350ad2
16867 pkgsign should handle existing signatures better
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2228
diff
changeset
|
478 |
* verify_chain has had the mandatory parameter cur_pathlen added which |
2339
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
479 |
indicates how many certificates exist between cert and the leaf cert. |
2286
938fbb350ad2
16867 pkgsign should handle existing signatures better
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2228
diff
changeset
|
480 |
|
938fbb350ad2
16867 pkgsign should handle existing signatures better
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2228
diff
changeset
|
481 |
* approve_ca_cert has had the 'manual' parameter removed as only the |
938fbb350ad2
16867 pkgsign should handle existing signatures better
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2228
diff
changeset
|
482 |
user can approve a certificate now. |
938fbb350ad2
16867 pkgsign should handle existing signatures better
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2228
diff
changeset
|
483 |
|
2228
5319ee47781d
2774 new depend action behavior: follow if possible
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2219
diff
changeset
|
484 |
Version 54: |
5319ee47781d
2774 new depend action behavior: follow if possible
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2219
diff
changeset
|
485 |
Compatible with clients using versions 53-54: |
5319ee47781d
2774 new depend action behavior: follow if possible
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2219
diff
changeset
|
486 |
|
5319ee47781d
2774 new depend action behavior: follow if possible
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2219
diff
changeset
|
487 |
pkg.client.api.ImageInterface has changed as follows: |
2293
631000734928
3679 modified preserve=true files should be backed up during uninstall
Shawn Walker <shawn.walker@oracle.com>
parents:
2286
diff
changeset
|
488 |
* added avoid_pkgs, get_avoid_list functions to client |
631000734928
3679 modified preserve=true files should be backed up during uninstall
Shawn Walker <shawn.walker@oracle.com>
parents:
2286
diff
changeset
|
489 |
interface to manage group dependency behavior. |
2228
5319ee47781d
2774 new depend action behavior: follow if possible
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2219
diff
changeset
|
490 |
|
5319ee47781d
2774 new depend action behavior: follow if possible
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2219
diff
changeset
|
491 |
|
2219
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
492 |
Version 53: |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
493 |
Incompatible with clients using versions 0-52: |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
494 |
|
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
495 |
General changes: |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
496 |
* Support for pkg(5) archives has been added; a file URI |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
497 |
containing the location of an archive can be used anywhere |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
498 |
that a repository location is (except for search). |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
499 |
|
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
500 |
* Publishers are no longer required to have origins or mirrors |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
501 |
so that sticky state and search order can be retained when |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
502 |
installing packages from temporary sources. |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
503 |
|
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
504 |
* The client API now supports the use of temporary sources of |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
505 |
package during during operations. |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
506 |
|
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
507 |
pkg.client.api.ImageInterface has changed as follows: |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
508 |
* get_pkg_list() is now a locking operation and cannot be used |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
509 |
at the same time as other functions (such as a multi-threaded |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
510 |
scenario) |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
511 |
|
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
512 |
* get_pkg_categories() is now a locking operation and cannot be |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
513 |
used at the same time as other functions (such as a multi- |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
514 |
threaded scenario) |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
515 |
|
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
516 |
* add_publisher() now permits publishers with no repository |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
517 |
origins or mirrors to be added. |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
518 |
|
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
519 |
* update_publisher() now permits publishers to be updated even |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
520 |
if the new object has no origins or mirrors. |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
521 |
|
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
522 |
* info(), get_pkg_categories(), get_pkg_list(), get_manifest(), |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
523 |
plan_install(), plan_update(), plan_update_all(), and |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
524 |
plan_change_varcets() now have a 'repos' parameter for |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
525 |
specifying temporary package repositories for use during |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
526 |
the operation. |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
527 |
|
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
528 |
pkg.client.progress has changed as follows: |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
529 |
* There are new methods for tracking the progress of archive |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
530 |
creation: archive_set_goal(), archive_add_progress(), |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
531 |
and archive_done(). See 'pydoc pkg.client.progress' for |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
532 |
details. |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
533 |
|
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
534 |
pkg.client.api_errors has changed as follows: |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
535 |
* The PublisherOriginRequired exception class has been removed. |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
536 |
|
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
537 |
* The new Exception NoPublisherRepositories was added. It is |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
538 |
raised whenever an attempt to perform a transport operation |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
539 |
for a publisher with no transport configuration is made. |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
540 |
|
2215
b4355e8c5097
16856 need to check keyUsage for leaf certs
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2207
diff
changeset
|
541 |
Version 52: |
2219
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
542 |
Incompatible with clients using versions 0-51: |
2215
b4355e8c5097
16856 need to check keyUsage for leaf certs
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2207
diff
changeset
|
543 |
pkg.client.publisher.Publisher has changed as follows: |
b4355e8c5097
16856 need to check keyUsage for leaf certs
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2207
diff
changeset
|
544 |
* The following functions have been made private: |
b4355e8c5097
16856 need to check keyUsage for leaf certs
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2207
diff
changeset
|
545 |
add_cert, get_certs_by_name, get_crl, check_extensions |
b4355e8c5097
16856 need to check keyUsage for leaf certs
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2207
diff
changeset
|
546 |
* check_critical was removed. |
b4355e8c5097
16856 need to check keyUsage for leaf certs
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2207
diff
changeset
|
547 |
* verify_chain had an additional, optional, argument added to it. The |
b4355e8c5097
16856 need to check keyUsage for leaf certs
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2207
diff
changeset
|
548 |
usages paramter defines what uses the certificate needs to allow. |
b4355e8c5097
16856 need to check keyUsage for leaf certs
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2207
diff
changeset
|
549 |
If this parameter isn't set, then it's assumed that the certificate |
b4355e8c5097
16856 need to check keyUsage for leaf certs
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2207
diff
changeset
|
550 |
should be able to be used for all known uses. |
b4355e8c5097
16856 need to check keyUsage for leaf certs
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2207
diff
changeset
|
551 |
* The following constants were added to be used as values to the usages |
b4355e8c5097
16856 need to check keyUsage for leaf certs
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2207
diff
changeset
|
552 |
parameter for verify chain. |
b4355e8c5097
16856 need to check keyUsage for leaf certs
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2207
diff
changeset
|
553 |
|
2207
029ca014fced
17797 plan debugging should also display solver trim database
Shawn Walker <shawn.walker@oracle.com>
parents:
2183
diff
changeset
|
554 |
Version 51: |
029ca014fced
17797 plan debugging should also display solver trim database
Shawn Walker <shawn.walker@oracle.com>
parents:
2183
diff
changeset
|
555 |
Compatible with clients using versions 46-50: |
2339
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
556 |
|
2207
029ca014fced
17797 plan debugging should also display solver trim database
Shawn Walker <shawn.walker@oracle.com>
parents:
2183
diff
changeset
|
557 |
pkg.client.api.PlanDescription has changed as follows: |
029ca014fced
17797 plan debugging should also display solver trim database
Shawn Walker <shawn.walker@oracle.com>
parents:
2183
diff
changeset
|
558 |
* get_solver_errors() was added to allow retrieval of extended |
029ca014fced
17797 plan debugging should also display solver trim database
Shawn Walker <shawn.walker@oracle.com>
parents:
2183
diff
changeset
|
559 |
error information for plan_*() functions. See 'pydoc |
029ca014fced
17797 plan debugging should also display solver trim database
Shawn Walker <shawn.walker@oracle.com>
parents:
2183
diff
changeset
|
560 |
pkg.client.api' for details. |
029ca014fced
17797 plan debugging should also display solver trim database
Shawn Walker <shawn.walker@oracle.com>
parents:
2183
diff
changeset
|
561 |
|
2215
b4355e8c5097
16856 need to check keyUsage for leaf certs
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2207
diff
changeset
|
562 |
Version 50: |
2219
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
563 |
Compatible with clients using versions 46-49: |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
564 |
|
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
565 |
pkg.client.api.ImageInterface changed as follows: |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
566 |
* The new function plan_revert() was added to allow planning |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
567 |
an operation for reverting specific or tagged packaged |
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
568 |
files. |
2215
b4355e8c5097
16856 need to check keyUsage for leaf certs
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2207
diff
changeset
|
569 |
|
2183
21ae45e8dfcf
17581 There should be a way of removing a package as part of upgrade
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2158
diff
changeset
|
570 |
Version 49: |
21ae45e8dfcf
17581 There should be a way of removing a package as part of upgrade
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2158
diff
changeset
|
571 |
Compatible with clients using versions 46-48: |
2339
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
572 |
|
2183
21ae45e8dfcf
17581 There should be a way of removing a package as part of upgrade
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2158
diff
changeset
|
573 |
pkg.client.api.ImageInterface has changed as follows: |
2339
aa5954c06b9d
16148 need linked image support for zones, phase 1
Edward Pilatowicz <edward.pilatowicz@oracle.com>
parents:
2319
diff
changeset
|
574 |
|
2183
21ae45e8dfcf
17581 There should be a way of removing a package as part of upgrade
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2158
diff
changeset
|
575 |
* plan_install and plan_update take an optional |
21ae45e8dfcf
17581 There should be a way of removing a package as part of upgrade
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2158
diff
changeset
|
576 |
argument to reject packages in solution. |
21ae45e8dfcf
17581 There should be a way of removing a package as part of upgrade
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2158
diff
changeset
|
577 |
|
2158
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
578 |
Version 48: |
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
579 |
Compatible with clients using versions 46-47. |
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
580 |
|
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
581 |
pkg.client.api.ImageInterface has changed as follows: |
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
582 |
|
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
583 |
* The ImageInterface class constructor now accepts an |
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
584 |
exact_match parameter that allows consumers to control |
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
585 |
whether an attempt to find an image starting from the |
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
586 |
specified directory is made. See 'pydoc pkg.client.api' |
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
587 |
for detailed usage. |
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
588 |
|
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
589 |
* If the exact_match parameter of the class constructor is |
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
590 |
False, an ImageLocationAmbiguous exception will be raised |
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
591 |
on Solaris if the image is not found at '/'. Other platforms |
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
592 |
will continue to accept an image found at any location. |
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
593 |
|
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
594 |
* A new property named 'progresstracker' was added to allow |
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
595 |
consumers to change the ProgressTracker object used by the |
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
596 |
API object instance after class initialization. See 'pydoc |
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
597 |
pkg.client.api' for detailed usage. |
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
598 |
|
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
599 |
pkg.client.api_errors has changed as follows: |
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
600 |
|
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
601 |
* A new ImageLocationAmbiguous exception was added. |
5a688b5b92a3
15864 inferring image location from current working directory can be harmful
Shawn Walker <shawn.walker@oracle.com>
parents:
2144
diff
changeset
|
602 |
|
2144
2ac203b826ab
7276 /var/pkg metadata needs reorg (looks busy)
Shawn Walker <shawn.walker@oracle.com>
parents:
2092
diff
changeset
|
603 |
Version 47: |
2ac203b826ab
7276 /var/pkg metadata needs reorg (looks busy)
Shawn Walker <shawn.walker@oracle.com>
parents:
2092
diff
changeset
|
604 |
Compatible with clients using version 46. |
2ac203b826ab
7276 /var/pkg metadata needs reorg (looks busy)
Shawn Walker <shawn.walker@oracle.com>
parents:
2092
diff
changeset
|
605 |
|
2ac203b826ab
7276 /var/pkg metadata needs reorg (looks busy)
Shawn Walker <shawn.walker@oracle.com>
parents:
2092
diff
changeset
|
606 |
pkg.client.api.ImageInterface has changed as follows: |
2ac203b826ab
7276 /var/pkg metadata needs reorg (looks busy)
Shawn Walker <shawn.walker@oracle.com>
parents:
2092
diff
changeset
|
607 |
|
2ac203b826ab
7276 /var/pkg metadata needs reorg (looks busy)
Shawn Walker <shawn.walker@oracle.com>
parents:
2092
diff
changeset
|
608 |
* A new function named 'update_format' has been added to allow |
2ac203b826ab
7276 /var/pkg metadata needs reorg (looks busy)
Shawn Walker <shawn.walker@oracle.com>
parents:
2092
diff
changeset
|
609 |
clients to upgrade images in older formats to the newest one. |
2ac203b826ab
7276 /var/pkg metadata needs reorg (looks busy)
Shawn Walker <shawn.walker@oracle.com>
parents:
2092
diff
changeset
|
610 |
By default, images rooted at '/' or that are for a zone are |
2ac203b826ab
7276 /var/pkg metadata needs reorg (looks busy)
Shawn Walker <shawn.walker@oracle.com>
parents:
2092
diff
changeset
|
611 |
automatically upgraded to the newest format if the user of |
2ac203b826ab
7276 /var/pkg metadata needs reorg (looks busy)
Shawn Walker <shawn.walker@oracle.com>
parents:
2092
diff
changeset
|
612 |
the client has sufficient privileges. |
2ac203b826ab
7276 /var/pkg metadata needs reorg (looks busy)
Shawn Walker <shawn.walker@oracle.com>
parents:
2092
diff
changeset
|
613 |
|
2ac203b826ab
7276 /var/pkg metadata needs reorg (looks busy)
Shawn Walker <shawn.walker@oracle.com>
parents:
2092
diff
changeset
|
614 |
pkg.client.api_errors has changed as follows: |
2ac203b826ab
7276 /var/pkg metadata needs reorg (looks busy)
Shawn Walker <shawn.walker@oracle.com>
parents:
2092
diff
changeset
|
615 |
|
2ac203b826ab
7276 /var/pkg metadata needs reorg (looks busy)
Shawn Walker <shawn.walker@oracle.com>
parents:
2092
diff
changeset
|
616 |
* A new exception named 'ImageFormatUpdateNeeded' has been added |
2ac203b826ab
7276 /var/pkg metadata needs reorg (looks busy)
Shawn Walker <shawn.walker@oracle.com>
parents:
2092
diff
changeset
|
617 |
that may be raised by the API whenever an API operation |
2ac203b826ab
7276 /var/pkg metadata needs reorg (looks busy)
Shawn Walker <shawn.walker@oracle.com>
parents:
2092
diff
changeset
|
618 |
requires that the image be updated to a new format before |
2ac203b826ab
7276 /var/pkg metadata needs reorg (looks busy)
Shawn Walker <shawn.walker@oracle.com>
parents:
2092
diff
changeset
|
619 |
the operation can be performed. |
2ac203b826ab
7276 /var/pkg metadata needs reorg (looks busy)
Shawn Walker <shawn.walker@oracle.com>
parents:
2092
diff
changeset
|
620 |
|
2092
0ef66bf272d3
16852 pkg should look at its image for certs if active image lacks certs
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2089
diff
changeset
|
621 |
Version 46: |
0ef66bf272d3
16852 pkg should look at its image for certs if active image lacks certs
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2089
diff
changeset
|
622 |
Incompatible with clients using versions 0-45. |
0ef66bf272d3
16852 pkg should look at its image for certs if active image lacks certs
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2089
diff
changeset
|
623 |
|
0ef66bf272d3
16852 pkg should look at its image for certs if active image lacks certs
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2089
diff
changeset
|
624 |
pkg.client.api.ImageInterface has changed as follows: |
2228
5319ee47781d
2774 new depend action behavior: follow if possible
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2219
diff
changeset
|
625 |
|
5319ee47781d
2774 new depend action behavior: follow if possible
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2219
diff
changeset
|
626 |
* The actual_cmd parameter is no longer a parameter to the |
2092
0ef66bf272d3
16852 pkg should look at its image for certs if active image lacks certs
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2089
diff
changeset
|
627 |
plan_update_all function. Instead that information is stored in the |
2228
5319ee47781d
2774 new depend action behavior: follow if possible
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2219
diff
changeset
|
628 |
global_settings object. It's used when looking for the trust anchors |
2092
0ef66bf272d3
16852 pkg should look at its image for certs if active image lacks certs
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2089
diff
changeset
|
629 |
of the image from which pkg was run. |
0ef66bf272d3
16852 pkg should look at its image for certs if active image lacks certs
Brock Pytlik <brock.pytlik@oracle.com>
parents:
2089
diff
changeset
|
630 |
|
2089
c8b9d6341530
2775 pkg should provide a way to downgrade (reinstall) packages
Shawn Walker <shawn.walker@oracle.com>
parents:
2073
diff
changeset
|
631 |
Version 45: |
c8b9d6341530
2775 pkg should provide a way to downgrade (reinstall) packages
Shawn Walker <shawn.walker@oracle.com>
parents:
2073
diff
changeset
|
632 |
Compatible with clients using versions 43-44. |
c8b9d6341530
2775 pkg should provide a way to downgrade (reinstall) packages
Shawn Walker <shawn.walker@oracle.com>
parents:
2073
diff
changeset
|
633 |
|
c8b9d6341530
2775 pkg should provide a way to downgrade (reinstall) packages
Shawn Walker <shawn.walker@oracle.com>
parents:
2073
diff
changeset
|
634 |
pkg.client.api.ImageInterface has changed as follows: |
c8b9d6341530
2775 pkg should provide a way to downgrade (reinstall) packages
Shawn Walker <shawn.walker@oracle.com>
parents:
2073
diff
changeset
|
635 |
|
c8b9d6341530
2775 pkg should provide a way to downgrade (reinstall) packages
Shawn Walker <shawn.walker@oracle.com>
parents:
2073
diff
changeset
|
636 |
* A new planning function, plan_update, has been added which |
c8b9d6341530
2775 pkg should provide a way to downgrade (reinstall) packages
Shawn Walker <shawn.walker@oracle.com>
parents:
2073
diff
changeset
|
637 |
allows in place downgrades of packages. |
c8b9d6341530
2775 pkg should provide a way to downgrade (reinstall) packages
Shawn Walker <shawn.walker@oracle.com>
parents:
2073
diff
changeset
|
638 |
|
2073
9fcacc9e5eaa
16998 transport should support publisher-specific write and read caches
Shawn Walker <shawn.walker@oracle.com>
parents:
2055
diff
changeset
|
639 |
Version 44: |
9fcacc9e5eaa
16998 transport should support publisher-specific write and read caches
Shawn Walker <shawn.walker@oracle.com>
parents:
2055
diff
changeset
|
640 |
Compatible with clients using version 43. |
9fcacc9e5eaa
16998 transport should support publisher-specific write and read caches
Shawn Walker <shawn.walker@oracle.com>
parents:
2055
diff
changeset
|
641 |
|
9fcacc9e5eaa
16998 transport should support publisher-specific write and read caches
Shawn Walker <shawn.walker@oracle.com>
parents:
2055
diff
changeset
|
642 |
pkg.client.api.ImageInterface has changed as follows: |
9fcacc9e5eaa
16998 transport should support publisher-specific write and read caches
Shawn Walker <shawn.walker@oracle.com>
parents:
2055
diff
changeset
|
643 |
|
9fcacc9e5eaa
16998 transport should support publisher-specific write and read caches
Shawn Walker <shawn.walker@oracle.com>
parents:
2055
diff
changeset
|
644 |
* A new property 'last_modified' was added that returns a UTC |
9fcacc9e5eaa
16998 transport should support publisher-specific write and read caches
Shawn Walker <shawn.walker@oracle.com>
parents:
2055
diff
changeset
|
645 |
datetime object representing the time the image's metadata |
9fcacc9e5eaa
16998 transport should support publisher-specific write and read caches
Shawn Walker <shawn.walker@oracle.com>
parents:
2055
diff
changeset
|
646 |
was last changed. |
9fcacc9e5eaa
16998 transport should support publisher-specific write and read caches
Shawn Walker <shawn.walker@oracle.com>
parents:
2055
diff
changeset
|
647 |
|
2055
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
648 |
Version 43: |
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
649 |
Incompatible with clients using versions 0-42. |
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
650 |
|
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
651 |
pkg.client.api.ImageInterface has changed as follows: |
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
652 |
|
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
653 |
* A new boot environment will now only be created if required |
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
654 |
for image-modifying operations (except for plan_update_all |
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
655 |
which continues to always create one by default). |
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
656 |
|
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
657 |
* The verbose parameter has been removed from the plan_* |
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
658 |
functions. |
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
659 |
|
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
660 |
* All plan_* functions now accept an additional boolean named |
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
661 |
'new_be' that indicates whether a new boot environment should |
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
662 |
be created for the operation. This overrides the deafult |
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
663 |
behaviour that only creates one if needed. |
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
664 |
|
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
665 |
pkg.client.api.PlanDescription has changed as follows: |
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
666 |
|
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
667 |
* get_services(), get_varcets(), and get_actions() were added |
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
668 |
to allow clients more access to plan information. |
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
669 |
|
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
670 |
* A boolean property named new_be was added that indicates |
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
671 |
whether the planned operation will requires a new boot |
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
672 |
environment. |
552262a56a9a
16950 imageconfig set property silently converts single values to lists breaking consumers
Shawn Walker <shawn.walker@oracle.com>
parents:
2028
diff
changeset
|
673 |
|
2028
b2c674e6ee28
16744 repository multi-publisher on-disk format should be formalized and implemented
Shawn Walker <shawn.walker@oracle.com>
parents:
2026
diff
changeset
|
674 |
Version 42: |
b2c674e6ee28
16744 repository multi-publisher on-disk format should be formalized and implemented
Shawn Walker <shawn.walker@oracle.com>
parents:
2026
diff
changeset
|
675 |
Incompatible with clients using versions 0-41. |
b2c674e6ee28
16744 repository multi-publisher on-disk format should be formalized and implemented
Shawn Walker <shawn.walker@oracle.com>
parents:
2026
diff
changeset
|
676 |
|
b2c674e6ee28
16744 repository multi-publisher on-disk format should be formalized and implemented
Shawn Walker <shawn.walker@oracle.com>
parents:
2026
diff
changeset
|
677 |
pkg.client.api_errors has changed as follows: |
b2c674e6ee28
16744 repository multi-publisher on-disk format should be formalized and implemented
Shawn Walker <shawn.walker@oracle.com>
parents:
2026
diff
changeset
|
678 |
|
b2c674e6ee28
16744 repository multi-publisher on-disk format should be formalized and implemented
Shawn Walker <shawn.walker@oracle.com>
parents:
2026
diff
changeset
|
679 |
* The MainDictParsingException class was removed |
b2c674e6ee28
16744 repository multi-publisher on-disk format should be formalized and implemented
Shawn Walker <shawn.walker@oracle.com>
parents:
2026
diff
changeset
|
680 |
|
b2c674e6ee28
16744 repository multi-publisher on-disk format should be formalized and implemented
Shawn Walker <shawn.walker@oracle.com>
parents:
2026
diff
changeset
|
681 |
* The BadPublisherAlias and IndexLockedException |
b2c674e6ee28
16744 repository multi-publisher on-disk format should be formalized and implemented
Shawn Walker <shawn.walker@oracle.com>
parents:
2026
diff
changeset
|
682 |
exceptions were added. |
b2c674e6ee28
16744 repository multi-publisher on-disk format should be formalized and implemented
Shawn Walker <shawn.walker@oracle.com>
parents:
2026
diff
changeset
|
683 |
|
b2c674e6ee28
16744 repository multi-publisher on-disk format should be formalized and implemented
Shawn Walker <shawn.walker@oracle.com>
parents:
2026
diff
changeset
|
684 |
pkg.client.publisher has changed as follows: |
b2c674e6ee28
16744 repository multi-publisher on-disk format should be formalized and implemented
Shawn Walker <shawn.walker@oracle.com>
parents:
2026
diff
changeset
|
685 |
|
b2c674e6ee28
16744 repository multi-publisher on-disk format should be formalized and implemented
Shawn Walker <shawn.walker@oracle.com>
parents:
2026
diff
changeset
|
686 |
* The inter_certs property was renamed to intermediate_certs. |
b2c674e6ee28
16744 repository multi-publisher on-disk format should be formalized and implemented
Shawn Walker <shawn.walker@oracle.com>
parents:
2026
diff
changeset
|
687 |
|
2026
d1b30615bc99
9196 pkg(5) should have support for cryptographic manifest signatures
Brock Pytlik <bpytlik@sun.com>
parents:
1970
diff
changeset
|
688 |
Version 41: |
d1b30615bc99
9196 pkg(5) should have support for cryptographic manifest signatures
Brock Pytlik <bpytlik@sun.com>
parents:
1970
diff
changeset
|
689 |
Compatible with clients using versions 40-41. |
d1b30615bc99
9196 pkg(5) should have support for cryptographic manifest signatures
Brock Pytlik <bpytlik@sun.com>
parents:
1970
diff
changeset
|
690 |
|
2028
b2c674e6ee28
16744 repository multi-publisher on-disk format should be formalized and implemented
Shawn Walker <shawn.walker@oracle.com>
parents:
2026
diff
changeset
|
691 |
Allows the client to handle signed packages. This includes the |
b2c674e6ee28
16744 repository multi-publisher on-disk format should be formalized and implemented
Shawn Walker <shawn.walker@oracle.com>
parents:
2026
diff
changeset
|
692 |
addition of a large number of optional parameters to the |
b2c674e6ee28
16744 repository multi-publisher on-disk format should be formalized and implemented
Shawn Walker <shawn.walker@oracle.com>
parents:
2026
diff
changeset
|
693 |
client/publisher class. It also makes changes to image creation to |
b2c674e6ee28
16744 repository multi-publisher on-disk format should be formalized and implemented
Shawn Walker <shawn.walker@oracle.com>
parents:
2026
diff
changeset
|
694 |
allow image properties to be set during the process. New subclasses |
b2c674e6ee28
16744 repository multi-publisher on-disk format should be formalized and implemented
Shawn Walker <shawn.walker@oracle.com>
parents:
2026
diff
changeset
|
695 |
of ApiException were created to indicate different error conditions |
b2c674e6ee28
16744 repository multi-publisher on-disk format should be formalized and implemented
Shawn Walker <shawn.walker@oracle.com>
parents:
2026
diff
changeset
|
696 |
associated with signing failures. |
2026
d1b30615bc99
9196 pkg(5) should have support for cryptographic manifest signatures
Brock Pytlik <bpytlik@sun.com>
parents:
1970
diff
changeset
|
697 |
|
1970
60471574c487
16238 client api should ignore invalid and not yet supported packages
Shawn Walker <shawn.walker@oracle.com>
parents:
1937
diff
changeset
|
698 |
Version 40: |
60471574c487
16238 client api should ignore invalid and not yet supported packages
Shawn Walker <shawn.walker@oracle.com>
parents:
1937
diff
changeset
|
699 |
Incompatible with clients using versions 0-39. |
60471574c487
16238 client api should ignore invalid and not yet supported packages
Shawn Walker <shawn.walker@oracle.com>
parents:
1937
diff
changeset
|
700 |
|
60471574c487
16238 client api should ignore invalid and not yet supported packages
Shawn Walker <shawn.walker@oracle.com>
parents:
1937
diff
changeset
|
701 |
The pkg.client.api ImageInterface has changed as follows: |
60471574c487
16238 client api should ignore invalid and not yet supported packages
Shawn Walker <shawn.walker@oracle.com>
parents:
1937
diff
changeset
|
702 |
|
60471574c487
16238 client api should ignore invalid and not yet supported packages
Shawn Walker <shawn.walker@oracle.com>
parents:
1937
diff
changeset
|
703 |
* The info() method no longer detects and returns multiple |
60471574c487
16238 client api should ignore invalid and not yet supported packages
Shawn Walker <shawn.walker@oracle.com>
parents:
1937
diff
changeset
|
704 |
matches for patterns and instead will return all matches |
60471574c487
16238 client api should ignore invalid and not yet supported packages
Shawn Walker <shawn.walker@oracle.com>
parents:
1937
diff
changeset
|
705 |
for a given pattern. |
60471574c487
16238 client api should ignore invalid and not yet supported packages
Shawn Walker <shawn.walker@oracle.com>
parents:
1937
diff
changeset
|
706 |
|
60471574c487
16238 client api should ignore invalid and not yet supported packages
Shawn Walker <shawn.walker@oracle.com>
parents:
1937
diff
changeset
|
707 |
* The ImageInterface.INFO_MULTI_MATCH property has been |
60471574c487
16238 client api should ignore invalid and not yet supported packages
Shawn Walker <shawn.walker@oracle.com>
parents:
1937
diff
changeset
|
708 |
removed. |
60471574c487
16238 client api should ignore invalid and not yet supported packages
Shawn Walker <shawn.walker@oracle.com>
parents:
1937
diff
changeset
|
709 |
|
60471574c487
16238 client api should ignore invalid and not yet supported packages
Shawn Walker <shawn.walker@oracle.com>
parents:
1937
diff
changeset
|
710 |
* The PackageInfo.PREF_PUBLISHER attribute and data has been |
60471574c487
16238 client api should ignore invalid and not yet supported packages
Shawn Walker <shawn.walker@oracle.com>
parents:
1937
diff
changeset
|
711 |
removed. |
60471574c487
16238 client api should ignore invalid and not yet supported packages
Shawn Walker <shawn.walker@oracle.com>
parents:
1937
diff
changeset
|
712 |
|
60471574c487
16238 client api should ignore invalid and not yet supported packages
Shawn Walker <shawn.walker@oracle.com>
parents:
1937
diff
changeset
|
713 |
* Illegal patterns will cause info() to raise an exception |
60471574c487
16238 client api should ignore invalid and not yet supported packages
Shawn Walker <shawn.walker@oracle.com>
parents:
1937
diff
changeset
|
714 |
immediately. |
60471574c487
16238 client api should ignore invalid and not yet supported packages
Shawn Walker <shawn.walker@oracle.com>
parents:
1937
diff
changeset
|
715 |
|
1937
be8995c7bb8f
10924 Want ability to communicate over unix sockets
johansen <johansen@opensolaris.org>
parents:
1895
diff
changeset
|
716 |
Version 39: |
be8995c7bb8f
10924 Want ability to communicate over unix sockets
johansen <johansen@opensolaris.org>
parents:
1895
diff
changeset
|
717 |
Compatible with clients using versions 36-38. |
be8995c7bb8f
10924 Want ability to communicate over unix sockets
johansen <johansen@opensolaris.org>
parents:
1895
diff
changeset
|
718 |
|
be8995c7bb8f
10924 Want ability to communicate over unix sockets
johansen <johansen@opensolaris.org>
parents:
1895
diff
changeset
|
719 |
Introduces the notion of a system repository to the publisher |
be8995c7bb8f
10924 Want ability to communicate over unix sockets
johansen <johansen@opensolaris.org>
parents:
1895
diff
changeset
|
720 |
heirarchy. This specific type of repository is a subclass of |
be8995c7bb8f
10924 Want ability to communicate over unix sockets
johansen <johansen@opensolaris.org>
parents:
1895
diff
changeset
|
721 |
RepositoryURI. A few new api exceptions are added, too. |
be8995c7bb8f
10924 Want ability to communicate over unix sockets
johansen <johansen@opensolaris.org>
parents:
1895
diff
changeset
|
722 |
|
1895
0a260cc2a689
15762 client support for filesystem-based repository access
Shawn Walker <shawn.walker@oracle.com>
parents:
1859
diff
changeset
|
723 |
Version 38: |
0a260cc2a689
15762 client support for filesystem-based repository access
Shawn Walker <shawn.walker@oracle.com>
parents:
1859
diff
changeset
|
724 |
Compatible with clients using versions 36-37. |
0a260cc2a689
15762 client support for filesystem-based repository access
Shawn Walker <shawn.walker@oracle.com>
parents:
1859
diff
changeset
|
725 |
|
0a260cc2a689
15762 client support for filesystem-based repository access
Shawn Walker <shawn.walker@oracle.com>
parents:
1859
diff
changeset
|
726 |
The pkg.client.api now supports file-based repository access for all |
0a260cc2a689
15762 client support for filesystem-based repository access
Shawn Walker <shawn.walker@oracle.com>
parents:
1859
diff
changeset
|
727 |
operations. All related classes have been updated to support URIs |
0a260cc2a689
15762 client support for filesystem-based repository access
Shawn Walker <shawn.walker@oracle.com>
parents:
1859
diff
changeset
|
728 |
that use the 'file' scheme. |
0a260cc2a689
15762 client support for filesystem-based repository access
Shawn Walker <shawn.walker@oracle.com>
parents:
1859
diff
changeset
|
729 |
|
1859
6e6e866921e7
529 client can traceback with EBUSY during action removal
Shawn Walker <shawn.walker@oracle.com>
parents:
1843
diff
changeset
|
730 |
Version 37: |
6e6e866921e7
529 client can traceback with EBUSY during action removal
Shawn Walker <shawn.walker@oracle.com>
parents:
1843
diff
changeset
|
731 |
Compatible with clients using version 36. |
6e6e866921e7
529 client can traceback with EBUSY during action removal
Shawn Walker <shawn.walker@oracle.com>
parents:
1843
diff
changeset
|
732 |
|
6e6e866921e7
529 client can traceback with EBUSY during action removal
Shawn Walker <shawn.walker@oracle.com>
parents:
1843
diff
changeset
|
733 |
The pkg.client.api ImageInterface has changed as follows: |
6e6e866921e7
529 client can traceback with EBUSY during action removal
Shawn Walker <shawn.walker@oracle.com>
parents:
1843
diff
changeset
|
734 |
* Whenever an unexpected change in the state or structure |
6e6e866921e7
529 client can traceback with EBUSY during action removal
Shawn Walker <shawn.walker@oracle.com>
parents:
1843
diff
changeset
|
735 |
of the image is encountered during install, remove, or |
6e6e866921e7
529 client can traceback with EBUSY during action removal
Shawn Walker <shawn.walker@oracle.com>
parents:
1843
diff
changeset
|
736 |
update operations (such as a missing file, directory, |
6e6e866921e7
529 client can traceback with EBUSY during action removal
Shawn Walker <shawn.walker@oracle.com>
parents:
1843
diff
changeset
|
737 |
or inability to remove an item) and it cannot be |
6e6e866921e7
529 client can traceback with EBUSY during action removal
Shawn Walker <shawn.walker@oracle.com>
parents:
1843
diff
changeset
|
738 |
recovered from without user intervention, an |
6e6e866921e7
529 client can traceback with EBUSY during action removal
Shawn Walker <shawn.walker@oracle.com>
parents:
1843
diff
changeset
|
739 |
ActionExecutionError exception is raised. |
6e6e866921e7
529 client can traceback with EBUSY during action removal
Shawn Walker <shawn.walker@oracle.com>
parents:
1843
diff
changeset
|
740 |
|
1843
b9333a197e40
6177 filtering search against a particular incorporation is needed
Brock Pytlik <bpytlik@sun.com>
parents:
1835
diff
changeset
|
741 |
Version 36: |
b9333a197e40
6177 filtering search against a particular incorporation is needed
Brock Pytlik <bpytlik@sun.com>
parents:
1835
diff
changeset
|
742 |
Incompatible with clients using versions 0-35. |
b9333a197e40
6177 filtering search against a particular incorporation is needed
Brock Pytlik <bpytlik@sun.com>
parents:
1835
diff
changeset
|
743 |
|
b9333a197e40
6177 filtering search against a particular incorporation is needed
Brock Pytlik <bpytlik@sun.com>
parents:
1835
diff
changeset
|
744 |
The interface for pkg.client.api.remote_search has changed as follows: |
b9333a197e40
6177 filtering search against a particular incorporation is needed
Brock Pytlik <bpytlik@sun.com>
parents:
1835
diff
changeset
|
745 |
* A new parameter, prune_versions, has been added which, when true, |
b9333a197e40
6177 filtering search against a particular incorporation is needed
Brock Pytlik <bpytlik@sun.com>
parents:
1835
diff
changeset
|
746 |
causes remote search to remove versions a user is unlikely to be |
b9333a197e40
6177 filtering search against a particular incorporation is needed
Brock Pytlik <bpytlik@sun.com>
parents:
1835
diff
changeset
|
747 |
interested in. |
b9333a197e40
6177 filtering search against a particular incorporation is needed
Brock Pytlik <bpytlik@sun.com>
parents:
1835
diff
changeset
|
748 |
|
b9333a197e40
6177 filtering search against a particular incorporation is needed
Brock Pytlik <bpytlik@sun.com>
parents:
1835
diff
changeset
|
749 |
* The return type of remote_search and local_search has changed. Where |
b9333a197e40
6177 filtering search against a particular incorporation is needed
Brock Pytlik <bpytlik@sun.com>
parents:
1835
diff
changeset
|
750 |
the string representation used to be returned, a FMRI object is now |
b9333a197e40
6177 filtering search against a particular incorporation is needed
Brock Pytlik <bpytlik@sun.com>
parents:
1835
diff
changeset
|
751 |
returned. |
b9333a197e40
6177 filtering search against a particular incorporation is needed
Brock Pytlik <bpytlik@sun.com>
parents:
1835
diff
changeset
|
752 |
|
1835
13fdfa2f7993
15029 pkg list can traceback if character only allowed with wildcards used
Shawn Walker <shawn.walker@oracle.com>
parents:
1795
diff
changeset
|
753 |
Version 35: |
13fdfa2f7993
15029 pkg list can traceback if character only allowed with wildcards used
Shawn Walker <shawn.walker@oracle.com>
parents:
1795
diff
changeset
|
754 |
Compatible with clients using version 34. |
13fdfa2f7993
15029 pkg list can traceback if character only allowed with wildcards used
Shawn Walker <shawn.walker@oracle.com>
parents:
1795
diff
changeset
|
755 |
|
13fdfa2f7993
15029 pkg list can traceback if character only allowed with wildcards used
Shawn Walker <shawn.walker@oracle.com>
parents:
1795
diff
changeset
|
756 |
The ImageInterface class has changed as follows: |
13fdfa2f7993
15029 pkg list can traceback if character only allowed with wildcards used
Shawn Walker <shawn.walker@oracle.com>
parents:
1795
diff
changeset
|
757 |
* A new method named parse_fmri_patterns has been added to |
13fdfa2f7993
15029 pkg list can traceback if character only allowed with wildcards used
Shawn Walker <shawn.walker@oracle.com>
parents:
1795
diff
changeset
|
758 |
help clients parse user input and transform any valid patterns |
13fdfa2f7993
15029 pkg list can traceback if character only allowed with wildcards used
Shawn Walker <shawn.walker@oracle.com>
parents:
1795
diff
changeset
|
759 |
into FMRI objects that can be used for comparison. See pydoc |
13fdfa2f7993
15029 pkg list can traceback if character only allowed with wildcards used
Shawn Walker <shawn.walker@oracle.com>
parents:
1795
diff
changeset
|
760 |
'pkg.client.api' for details. |
13fdfa2f7993
15029 pkg list can traceback if character only allowed with wildcards used
Shawn Walker <shawn.walker@oracle.com>
parents:
1795
diff
changeset
|
761 |
|
13fdfa2f7993
15029 pkg list can traceback if character only allowed with wildcards used
Shawn Walker <shawn.walker@oracle.com>
parents:
1795
diff
changeset
|
762 |
* New constants for the parse_fmri_patterns method were added: |
13fdfa2f7993
15029 pkg list can traceback if character only allowed with wildcards used
Shawn Walker <shawn.walker@oracle.com>
parents:
1795
diff
changeset
|
763 |
MATCH_EXACT, MATCH_FMRI, and MATCH_GLOB. |
13fdfa2f7993
15029 pkg list can traceback if character only allowed with wildcards used
Shawn Walker <shawn.walker@oracle.com>
parents:
1795
diff
changeset
|
764 |
|
1795
1b3bed835773
14856 image-create / set-publisher shouldn't require repository configuration to have origins
Shawn Walker <srw@sun.com>
parents:
1755
diff
changeset
|
765 |
Version 34: |
1b3bed835773
14856 image-create / set-publisher shouldn't require repository configuration to have origins
Shawn Walker <srw@sun.com>
parents:
1755
diff
changeset
|
766 |
Incompatible with clients using versions 0-33. |
1b3bed835773
14856 image-create / set-publisher shouldn't require repository configuration to have origins
Shawn Walker <srw@sun.com>
parents:
1755
diff
changeset
|
767 |
|
1b3bed835773
14856 image-create / set-publisher shouldn't require repository configuration to have origins
Shawn Walker <srw@sun.com>
parents:
1755
diff
changeset
|
768 |
The pkg.client.publisher.Publisher class has changed as follows: |
1b3bed835773
14856 image-create / set-publisher shouldn't require repository configuration to have origins
Shawn Walker <srw@sun.com>
parents:
1755
diff
changeset
|
769 |
* The deprecated get_ssl_creds() and set_origin() methods |
1b3bed835773
14856 image-create / set-publisher shouldn't require repository configuration to have origins
Shawn Walker <srw@sun.com>
parents:
1755
diff
changeset
|
770 |
were removed. These functions have been marked as |
1b3bed835773
14856 image-create / set-publisher shouldn't require repository configuration to have origins
Shawn Walker <srw@sun.com>
parents:
1755
diff
changeset
|
771 |
deprecated since the client API was first versioned |
1b3bed835773
14856 image-create / set-publisher shouldn't require repository configuration to have origins
Shawn Walker <srw@sun.com>
parents:
1755
diff
changeset
|
772 |
and should not have been used by any clients. |
1b3bed835773
14856 image-create / set-publisher shouldn't require repository configuration to have origins
Shawn Walker <srw@sun.com>
parents:
1755
diff
changeset
|
773 |
|
1755
8e1ed1373f93
9123 client traceback during install for bad file mode
Shawn Walker <srw@sun.com>
parents:
1736
diff
changeset
|
774 |
Version 33: |
8e1ed1373f93
9123 client traceback during install for bad file mode
Shawn Walker <srw@sun.com>
parents:
1736
diff
changeset
|
775 |
Compatible with clients using version 32. |
8e1ed1373f93
9123 client traceback during install for bad file mode
Shawn Walker <srw@sun.com>
parents:
1736
diff
changeset
|
776 |
|
8e1ed1373f93
9123 client traceback during install for bad file mode
Shawn Walker <srw@sun.com>
parents:
1736
diff
changeset
|
777 |
The ImageInterface class has changed as follows: |
8e1ed1373f93
9123 client traceback during install for bad file mode
Shawn Walker <srw@sun.com>
parents:
1736
diff
changeset
|
778 |
* file and directory actions will now have their mode validated |
8e1ed1373f93
9123 client traceback during install for bad file mode
Shawn Walker <srw@sun.com>
parents:
1736
diff
changeset
|
779 |
if failure occurs during plan execution to determine if bad |
8e1ed1373f93
9123 client traceback during install for bad file mode
Shawn Walker <srw@sun.com>
parents:
1736
diff
changeset
|
780 |
package metadata was the cause of execution failure. In |
8e1ed1373f93
9123 client traceback during install for bad file mode
Shawn Walker <srw@sun.com>
parents:
1736
diff
changeset
|
781 |
addition, the client API will catch failures due to corrupt |
8e1ed1373f93
9123 client traceback during install for bad file mode
Shawn Walker <srw@sun.com>
parents:
1736
diff
changeset
|
782 |
or invalid package metadata and re-raise them as an |
8e1ed1373f93
9123 client traceback during install for bad file mode
Shawn Walker <srw@sun.com>
parents:
1736
diff
changeset
|
783 |
InvalidPackageErrors exception. |
8e1ed1373f93
9123 client traceback during install for bad file mode
Shawn Walker <srw@sun.com>
parents:
1736
diff
changeset
|
784 |
|
8e1ed1373f93
9123 client traceback during install for bad file mode
Shawn Walker <srw@sun.com>
parents:
1736
diff
changeset
|
785 |
The pkg.client.api_errors module has changed as follows: |
8e1ed1373f93
9123 client traceback during install for bad file mode
Shawn Walker <srw@sun.com>
parents:
1736
diff
changeset
|
786 |
* The InvalidPackageErrors exception was added. See 'pydoc |
8e1ed1373f93
9123 client traceback during install for bad file mode
Shawn Walker <srw@sun.com>
parents:
1736
diff
changeset
|
787 |
pkg.client.api_errors' for details. |
8e1ed1373f93
9123 client traceback during install for bad file mode
Shawn Walker <srw@sun.com>
parents:
1736
diff
changeset
|
788 |
|
1736
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
789 |
Version 32: |
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
790 |
Incompatible with clients using versions 0-31. |
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
791 |
|
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
792 |
The ImageInterface class has changed as follows: |
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
793 |
* The add_publisher and update_publisher methods now validate |
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
794 |
the image's publisher configuration against the origins of |
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
795 |
the publisher. If any of the origins are found to not match, |
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
796 |
an UnknownRepositoryPublishers exception will be raised. |
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
797 |
If one of the new repository origins does not provide |
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
798 |
publisher configuration information or it is incomplete, |
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
799 |
a RepoPubConfigUnavailable exception will be raised. |
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
800 |
|
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
801 |
The pkg.client.api module has changed as follows: |
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
802 |
* A new method named image_create has been added. See 'pydoc |
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
803 |
pkg.client.api' for details. |
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
804 |
|
1755
8e1ed1373f93
9123 client traceback during install for bad file mode
Shawn Walker <srw@sun.com>
parents:
1736
diff
changeset
|
805 |
The pkg.client.api_errors module has changed as follows: |
1736
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
806 |
* UnknownRepositoryPublishers, RepoPubConfigUnavailable, and |
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
807 |
UnknownErrors expections have been added for use by the |
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
808 |
pkg.client.api. API consumers are reminded that they should |
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
809 |
catch all ApiException class exceptions, although catching |
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
810 |
specific exception subclasses for case-by-case handling in |
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
811 |
addition to that is acceptable. |
727dda1e7968
11522 pkg should require publisher prefix to match repository information
Shawn Walker <srw@sun.com>
parents:
1710
diff
changeset
|
812 |
|
1710
139720e2e756
1668 image locking needed to prevent race conditions
Shawn Walker <srw@sun.com>
parents:
1685
diff
changeset
|
813 |
Version 31: |
139720e2e756
1668 image locking needed to prevent race conditions
Shawn Walker <srw@sun.com>
parents:
1685
diff
changeset
|
814 |
Compatible with clients using version 30. |
139720e2e756
1668 image locking needed to prevent race conditions
Shawn Walker <srw@sun.com>
parents:
1685
diff
changeset
|
815 |
All image-modifying operations now lock the image for exclusive use |
139720e2e756
1668 image locking needed to prevent race conditions
Shawn Walker <srw@sun.com>
parents:
1685
diff
changeset
|
816 |
by the current thread and process. If the lock cannot be obtained, |
139720e2e756
1668 image locking needed to prevent race conditions
Shawn Walker <srw@sun.com>
parents:
1685
diff
changeset
|
817 |
an ImageLockedError exception will be raised. |
139720e2e756
1668 image locking needed to prevent race conditions
Shawn Walker <srw@sun.com>
parents:
1685
diff
changeset
|
818 |
|
139720e2e756
1668 image locking needed to prevent race conditions
Shawn Walker <srw@sun.com>
parents:
1685
diff
changeset
|
819 |
The ImageInterface class has changed as follows: |
139720e2e756
1668 image locking needed to prevent race conditions
Shawn Walker <srw@sun.com>
parents:
1685
diff
changeset
|
820 |
* A new property named 'blocking_locks' has been added to allow |
139720e2e756
1668 image locking needed to prevent race conditions
Shawn Walker <srw@sun.com>
parents:
1685
diff
changeset
|
821 |
clients to control image locking behaviour. See 'pydoc |
139720e2e756
1668 image locking needed to prevent race conditions
Shawn Walker <srw@sun.com>
parents:
1685
diff
changeset
|
822 |
pkg.client.api.ImageInterface' for details. |
139720e2e756
1668 image locking needed to prevent race conditions
Shawn Walker <srw@sun.com>
parents:
1685
diff
changeset
|
823 |
|
139720e2e756
1668 image locking needed to prevent race conditions
Shawn Walker <srw@sun.com>
parents:
1685
diff
changeset
|
824 |
* The prepare() and execute_plan() methods will now raise an |
139720e2e756
1668 image locking needed to prevent race conditions
Shawn Walker <srw@sun.com>
parents:
1685
diff
changeset
|
825 |
InvalidPlanError if the image state has changed since the |
139720e2e756
1668 image locking needed to prevent race conditions
Shawn Walker <srw@sun.com>
parents:
1685
diff
changeset
|
826 |
plan was originally created. This is likely the result of |
139720e2e756
1668 image locking needed to prevent race conditions
Shawn Walker <srw@sun.com>
parents:
1685
diff
changeset
|
827 |
another client or process modifying the image. |
139720e2e756
1668 image locking needed to prevent race conditions
Shawn Walker <srw@sun.com>
parents:
1685
diff
changeset
|
828 |
|
1685
51f832187af7
3005 some pkg verify errors should be warnings or informational messages
Shawn Walker <srw@sun.com>
parents:
1618
diff
changeset
|
829 |
Version 30: |
51f832187af7
3005 some pkg verify errors should be warnings or informational messages
Shawn Walker <srw@sun.com>
parents:
1618
diff
changeset
|
830 |
Incompatible with clients using versions 0-29: |
51f832187af7
3005 some pkg verify errors should be warnings or informational messages
Shawn Walker <srw@sun.com>
parents:
1618
diff
changeset
|
831 |
The ProgressTracker class has changed as follows: |
51f832187af7
3005 some pkg verify errors should be warnings or informational messages
Shawn Walker <srw@sun.com>
parents:
1618
diff
changeset
|
832 |
* ver_output_warning() and ver_output_info() were added so that |
51f832187af7
3005 some pkg verify errors should be warnings or informational messages
Shawn Walker <srw@sun.com>
parents:
1618
diff
changeset
|
833 |
callers can choose to output warning and info verification |
51f832187af7
3005 some pkg verify errors should be warnings or informational messages
Shawn Walker <srw@sun.com>
parents:
1618
diff
changeset
|
834 |
messages separately from errors. |
51f832187af7
3005 some pkg verify errors should be warnings or informational messages
Shawn Walker <srw@sun.com>
parents:
1618
diff
changeset
|
835 |
|
1618
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
836 |
Version 29: |
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
837 |
Incompatible with clients using versions 0-28: |
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
838 |
The ImageInterface class has changed as follows: |
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
839 |
* set_plan_license_status() was added. This is used to indicate |
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
840 |
whether licenses for the packages being operated on have been |
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
841 |
accepted or displayed. Clients must do this if the related |
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
842 |
license requires acceptance or display. |
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
843 |
|
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
844 |
The LicenseInfo class has changed as follows: |
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
845 |
* get_text() may now trigger a remote retrieval of the license |
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
846 |
payload if needed to return the text. |
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
847 |
|
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
848 |
* The related package FMRI and license attributes are now |
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
849 |
properties: fmri, license, must_accept, and must_display. |
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
850 |
|
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
851 |
The PlanDescription class has changed as follows: |
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
852 |
* get_changes() is now a generator function. |
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
853 |
|
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
854 |
* get_licenses() was added to allow clients to retrieve the |
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
855 |
list of licenses related to the plan's operations as well |
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
856 |
as the current accepted and displayed status of each. |
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
857 |
|
1603
84bd53597209
13019 DeprecationWarnings seen after python 2.6 migration
Dan Price <dp@eng.sun.com>
parents:
1581
diff
changeset
|
858 |
Version 28: |
84bd53597209
13019 DeprecationWarnings seen after python 2.6 migration
Dan Price <dp@eng.sun.com>
parents:
1581
diff
changeset
|
859 |
Incompatible with clients using versions 0-27: |
84bd53597209
13019 DeprecationWarnings seen after python 2.6 migration
Dan Price <dp@eng.sun.com>
parents:
1581
diff
changeset
|
860 |
CatalogRefreshException.message was changed to |
84bd53597209
13019 DeprecationWarnings seen after python 2.6 migration
Dan Price <dp@eng.sun.com>
parents:
1581
diff
changeset
|
861 |
CatalogRefreshException.errmessage to work around a change |
84bd53597209
13019 DeprecationWarnings seen after python 2.6 migration
Dan Price <dp@eng.sun.com>
parents:
1581
diff
changeset
|
862 |
introduced in python2.5 and removed in python2.6 (Exception.message, |
84bd53597209
13019 DeprecationWarnings seen after python 2.6 migration
Dan Price <dp@eng.sun.com>
parents:
1581
diff
changeset
|
863 |
if used, triggers a deprecation warning). |
84bd53597209
13019 DeprecationWarnings seen after python 2.6 migration
Dan Price <dp@eng.sun.com>
parents:
1581
diff
changeset
|
864 |
|
1581
37d9bf54ee23
13058 search makes resolve go slow
Brock Pytlik <bpytlik@sun.com>
parents:
1538
diff
changeset
|
865 |
Version 27: |
1618
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
866 |
Compatible with clients using versions 25-26: |
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
867 |
The get_manifest function has been added to the api to allow clients |
04f7471c9e72
5943 add 'must-accept' attribute to license actions
Shawn Walker <srw@sun.com>
parents:
1603
diff
changeset
|
868 |
to retrieve the manifest directly. |
1581
37d9bf54ee23
13058 search makes resolve go slow
Brock Pytlik <bpytlik@sun.com>
parents:
1538
diff
changeset
|
869 |
|
1538
78ac66abc186
12130 install/update operations should always refresh publisher metadata (when allowed)
Shawn Walker <srw@sun.com>
parents:
1537
diff
changeset
|
870 |
Version 26: |
78ac66abc186
12130 install/update operations should always refresh publisher metadata (when allowed)
Shawn Walker <srw@sun.com>
parents:
1537
diff
changeset
|
871 |
Compatible with clients using version 25. |
78ac66abc186
12130 install/update operations should always refresh publisher metadata (when allowed)
Shawn Walker <srw@sun.com>
parents:
1537
diff
changeset
|
872 |
The client API has changed such that an immediate refresh is always |
78ac66abc186
12130 install/update operations should always refresh publisher metadata (when allowed)
Shawn Walker <srw@sun.com>
parents:
1537
diff
changeset
|
873 |
performed when the 'refresh_catalogs' parameter is True for install, |
78ac66abc186
12130 install/update operations should always refresh publisher metadata (when allowed)
Shawn Walker <srw@sun.com>
parents:
1537
diff
changeset
|
874 |
update, and change variant operations. |
78ac66abc186
12130 install/update operations should always refresh publisher metadata (when allowed)
Shawn Walker <srw@sun.com>
parents:
1537
diff
changeset
|
875 |
|
1537 | 876 |
Version 25: |
877 |
Incompatible with clients using versions 0-24: |
|
878 |
Changes: |
|
879 |
The PackageInfo class has changed as follows: |
|
880 |
* The NOT_INSTALLED constant has been removed as checking |
|
881 |
for the presence of INSTALLED should be sufficient. |
|
882 |
||
883 |
* A new constant named 'KNOWN' has been added. It indicates |
|
884 |
that the package is currently available from a publisher's |
|
885 |
repository. |
|
2228
5319ee47781d
2774 new depend action behavior: follow if possible
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2219
diff
changeset
|
886 |
|
1537 | 887 |
* A new constant named 'UPGRADABLE' has been added. It |
888 |
indicates that a new version of the package is available. |
|
2228
5319ee47781d
2774 new depend action behavior: follow if possible
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2219
diff
changeset
|
889 |
|
1537 | 890 |
The following new api functions were added to ImageInterface (see |
891 |
'pydoc pkg.client.api.ImageInterface' for more information): |
|
892 |
* get_pkg_categories |
|
2228
5319ee47781d
2774 new depend action behavior: follow if possible
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2219
diff
changeset
|
893 |
|
1537 | 894 |
* get_pkg_list |
895 |
||
1505
cc598d70bbbe
4425 pkg install should deal w/ complex dependency changes in one install
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
1461
diff
changeset
|
896 |
Version 24: |
1537 | 897 |
Incompatible with clients using versions 0-23. |
1505
cc598d70bbbe
4425 pkg install should deal w/ complex dependency changes in one install
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
1461
diff
changeset
|
898 |
The pkg.client.api module has changed as follows: |
cc598d70bbbe
4425 pkg install should deal w/ complex dependency changes in one install
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
1461
diff
changeset
|
899 |
* plan_install no longer takes a filters argument |
2488
010931d9cabe
18688 pkg clients shouldn't attempt to find an image at startup
Shawn Walker <shawn.walker@oracle.com>
parents:
2453
diff
changeset
|
900 |
* plan_change_variant changed to plan_change_varcets. |
010931d9cabe
18688 pkg clients shouldn't attempt to find an image at startup
Shawn Walker <shawn.walker@oracle.com>
parents:
2453
diff
changeset
|
901 |
w/ argument list changes. |
010931d9cabe
18688 pkg clients shouldn't attempt to find an image at startup
Shawn Walker <shawn.walker@oracle.com>
parents:
2453
diff
changeset
|
902 |
* Added get_pub_search_order |
010931d9cabe
18688 pkg clients shouldn't attempt to find an image at startup
Shawn Walker <shawn.walker@oracle.com>
parents:
2453
diff
changeset
|
903 |
* Added set_pub_search_after |
010931d9cabe
18688 pkg clients shouldn't attempt to find an image at startup
Shawn Walker <shawn.walker@oracle.com>
parents:
2453
diff
changeset
|
904 |
* Added set_pub_search_before |
1505
cc598d70bbbe
4425 pkg install should deal w/ complex dependency changes in one install
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
1461
diff
changeset
|
905 |
|
1461
fdf40c8c6765
820 Need a way to obsolete packages
Danek Duvall <danek.duvall@sun.com>
parents:
1389
diff
changeset
|
906 |
Version 23: |
1537 | 907 |
Incompatible with clients using versions 0-22. |
1461
fdf40c8c6765
820 Need a way to obsolete packages
Danek Duvall <danek.duvall@sun.com>
parents:
1389
diff
changeset
|
908 |
The pkg.client.api module has changed as follows: |
fdf40c8c6765
820 Need a way to obsolete packages
Danek Duvall <danek.duvall@sun.com>
parents:
1389
diff
changeset
|
909 |
* PackageInfo objects no longer take a "state" parameter, but a |
2488
010931d9cabe
18688 pkg clients shouldn't attempt to find an image at startup
Shawn Walker <shawn.walker@oracle.com>
parents:
2453
diff
changeset
|
910 |
"states" parameter, and the corresponding "state" member is now |
010931d9cabe
18688 pkg clients shouldn't attempt to find an image at startup
Shawn Walker <shawn.walker@oracle.com>
parents:
2453
diff
changeset
|
911 |
"states", and is a list of states, rather than a single value. |
1461
fdf40c8c6765
820 Need a way to obsolete packages
Danek Duvall <danek.duvall@sun.com>
parents:
1389
diff
changeset
|
912 |
|
1389
1827f487a235
8868 Changes needed to handle package descriptions in the pkg Python API.
Brock Pytlik <bpytlik@sun.com>
parents:
1352
diff
changeset
|
913 |
Version 22: |
1827f487a235
8868 Changes needed to handle package descriptions in the pkg Python API.
Brock Pytlik <bpytlik@sun.com>
parents:
1352
diff
changeset
|
914 |
Compatible with clients using version 21. |
1827f487a235
8868 Changes needed to handle package descriptions in the pkg Python API.
Brock Pytlik <bpytlik@sun.com>
parents:
1352
diff
changeset
|
915 |
Changes: |
2488
010931d9cabe
18688 pkg clients shouldn't attempt to find an image at startup
Shawn Walker <shawn.walker@oracle.com>
parents:
2453
diff
changeset
|
916 |
Adds the description field to the PackageInfo class. |
1389
1827f487a235
8868 Changes needed to handle package descriptions in the pkg Python API.
Brock Pytlik <bpytlik@sun.com>
parents:
1352
diff
changeset
|
917 |
|
1352
5c92c9d342ef
11065 client v1 catalog support for v0 catalogs
Shawn Walker <srw@sun.com>
parents:
1335
diff
changeset
|
918 |
Version 21: |
1537 | 919 |
Incompatible with clients using versions 0-20. |
1352
5c92c9d342ef
11065 client v1 catalog support for v0 catalogs
Shawn Walker <srw@sun.com>
parents:
1335
diff
changeset
|
920 |
Changes: |
5c92c9d342ef
11065 client v1 catalog support for v0 catalogs
Shawn Walker <srw@sun.com>
parents:
1335
diff
changeset
|
921 |
The pkg.client.api_errors module has changed as follows: |
5c92c9d342ef
11065 client v1 catalog support for v0 catalogs
Shawn Walker <srw@sun.com>
parents:
1335
diff
changeset
|
922 |
* All CatalogCacheError class exceptions were removed as the |
5c92c9d342ef
11065 client v1 catalog support for v0 catalogs
Shawn Walker <srw@sun.com>
parents:
1335
diff
changeset
|
923 |
catalog cache no longer exists. |
5c92c9d342ef
11065 client v1 catalog support for v0 catalogs
Shawn Walker <srw@sun.com>
parents:
1335
diff
changeset
|
924 |
|
1335
3dde2385d05c
516 Clean up traceback for installs to read-only filesystems
John Sonnenschein <John.Sonnenschein@Sun.COM>
parents:
1279
diff
changeset
|
925 |
Version 20: |
3dde2385d05c
516 Clean up traceback for installs to read-only filesystems
John Sonnenschein <John.Sonnenschein@Sun.COM>
parents:
1279
diff
changeset
|
926 |
Compatible with clients using version 19. |
3dde2385d05c
516 Clean up traceback for installs to read-only filesystems
John Sonnenschein <John.Sonnenschein@Sun.COM>
parents:
1279
diff
changeset
|
927 |
Changes: |
3dde2385d05c
516 Clean up traceback for installs to read-only filesystems
John Sonnenschein <John.Sonnenschein@Sun.COM>
parents:
1279
diff
changeset
|
928 |
The following exceptions were added to pkg.client.api_errors: |
3dde2385d05c
516 Clean up traceback for installs to read-only filesystems
John Sonnenschein <John.Sonnenschein@Sun.COM>
parents:
1279
diff
changeset
|
929 |
|
3dde2385d05c
516 Clean up traceback for installs to read-only filesystems
John Sonnenschein <John.Sonnenschein@Sun.COM>
parents:
1279
diff
changeset
|
930 |
class ReadOnlyFileSystemException(PermissionsException): |
3dde2385d05c
516 Clean up traceback for installs to read-only filesystems
John Sonnenschein <John.Sonnenschein@Sun.COM>
parents:
1279
diff
changeset
|
931 |
"""Used to indicate that the operation was attempted on a |
3dde2385d05c
516 Clean up traceback for installs to read-only filesystems
John Sonnenschein <John.Sonnenschein@Sun.COM>
parents:
1279
diff
changeset
|
932 |
read-only filesystem""" |
3dde2385d05c
516 Clean up traceback for installs to read-only filesystems
John Sonnenschein <John.Sonnenschein@Sun.COM>
parents:
1279
diff
changeset
|
933 |
|
1279
12624144230f
10419 client api revisions doc update required
Shawn Walker <srw@sun.com>
parents:
1256
diff
changeset
|
934 |
Version 19: |
12624144230f
10419 client api revisions doc update required
Shawn Walker <srw@sun.com>
parents:
1256
diff
changeset
|
935 |
Incompatible with clients using versions 0-18. |
12624144230f
10419 client api revisions doc update required
Shawn Walker <srw@sun.com>
parents:
1256
diff
changeset
|
936 |
Changes: |
12624144230f
10419 client api revisions doc update required
Shawn Walker <srw@sun.com>
parents:
1256
diff
changeset
|
937 |
The ImageInterface class changed as follows: |
12624144230f
10419 client api revisions doc update required
Shawn Walker <srw@sun.com>
parents:
1256
diff
changeset
|
938 |
* plan_update_all no longer returns a third value, the exception |
12624144230f
10419 client api revisions doc update required
Shawn Walker <srw@sun.com>
parents:
1256
diff
changeset
|
939 |
caught. This value was never set. |
12624144230f
10419 client api revisions doc update required
Shawn Walker <srw@sun.com>
parents:
1256
diff
changeset
|
940 |
|
12624144230f
10419 client api revisions doc update required
Shawn Walker <srw@sun.com>
parents:
1256
diff
changeset
|
941 |
* plan_install no longer returns a second value, the exception |
12624144230f
10419 client api revisions doc update required
Shawn Walker <srw@sun.com>
parents:
1256
diff
changeset
|
942 |
caught. This value was never set. |
12624144230f
10419 client api revisions doc update required
Shawn Walker <srw@sun.com>
parents:
1256
diff
changeset
|
943 |
|
1256
921590dc232b
8863 error message unclear when trying to disable preferred publisher
Shawn Walker <srw@sun.com>
parents:
1255
diff
changeset
|
944 |
Version 18: |
1279
12624144230f
10419 client api revisions doc update required
Shawn Walker <srw@sun.com>
parents:
1256
diff
changeset
|
945 |
Compatible with clients using versions 15-17. |
1256
921590dc232b
8863 error message unclear when trying to disable preferred publisher
Shawn Walker <srw@sun.com>
parents:
1255
diff
changeset
|
946 |
Changes: |
921590dc232b
8863 error message unclear when trying to disable preferred publisher
Shawn Walker <srw@sun.com>
parents:
1255
diff
changeset
|
947 |
The following exceptions were added to pkg.client.api_errors: |
2228
5319ee47781d
2774 new depend action behavior: follow if possible
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2219
diff
changeset
|
948 |
|
1256
921590dc232b
8863 error message unclear when trying to disable preferred publisher
Shawn Walker <srw@sun.com>
parents:
1255
diff
changeset
|
949 |
class SetDisabledPublisherPreferred(PublisherError): |
921590dc232b
8863 error message unclear when trying to disable preferred publisher
Shawn Walker <srw@sun.com>
parents:
1255
diff
changeset
|
950 |
"""Used to indicate an attempt to set a disabled publisher as |
921590dc232b
8863 error message unclear when trying to disable preferred publisher
Shawn Walker <srw@sun.com>
parents:
1255
diff
changeset
|
951 |
the preferred publisher was made.""" |
921590dc232b
8863 error message unclear when trying to disable preferred publisher
Shawn Walker <srw@sun.com>
parents:
1255
diff
changeset
|
952 |
|
1255
13914487fd06
8854 access to ImageInterface img root desired
Shawn Walker <srw@sun.com>
parents:
1254
diff
changeset
|
953 |
Version 17: |
13914487fd06
8854 access to ImageInterface img root desired
Shawn Walker <srw@sun.com>
parents:
1254
diff
changeset
|
954 |
Compatible with clients using versions 15-16. |
13914487fd06
8854 access to ImageInterface img root desired
Shawn Walker <srw@sun.com>
parents:
1254
diff
changeset
|
955 |
Changes: |
13914487fd06
8854 access to ImageInterface img root desired
Shawn Walker <srw@sun.com>
parents:
1254
diff
changeset
|
956 |
The following properties were added to pkg.client.api |
13914487fd06
8854 access to ImageInterface img root desired
Shawn Walker <srw@sun.com>
parents:
1254
diff
changeset
|
957 |
ImageInterface class: |
13914487fd06
8854 access to ImageInterface img root desired
Shawn Walker <srw@sun.com>
parents:
1254
diff
changeset
|
958 |
|
13914487fd06
8854 access to ImageInterface img root desired
Shawn Walker <srw@sun.com>
parents:
1254
diff
changeset
|
959 |
root |
13914487fd06
8854 access to ImageInterface img root desired
Shawn Walker <srw@sun.com>
parents:
1254
diff
changeset
|
960 |
The absolute pathname of the filesystem root of the image. |
13914487fd06
8854 access to ImageInterface img root desired
Shawn Walker <srw@sun.com>
parents:
1254
diff
changeset
|
961 |
This property is read-only. |
13914487fd06
8854 access to ImageInterface img root desired
Shawn Walker <srw@sun.com>
parents:
1254
diff
changeset
|
962 |
|
1254
28871b08d49c
8463 missing key file error message says certificate is missing
Shawn Walker <srw@sun.com>
parents:
1141
diff
changeset
|
963 |
Version 16: |
28871b08d49c
8463 missing key file error message says certificate is missing
Shawn Walker <srw@sun.com>
parents:
1141
diff
changeset
|
964 |
Compatible with clients using version 15. |
28871b08d49c
8463 missing key file error message says certificate is missing
Shawn Walker <srw@sun.com>
parents:
1141
diff
changeset
|
965 |
Changes: |
28871b08d49c
8463 missing key file error message says certificate is missing
Shawn Walker <srw@sun.com>
parents:
1141
diff
changeset
|
966 |
The following exceptions were added to pkg.client.api_errors: |
2228
5319ee47781d
2774 new depend action behavior: follow if possible
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2219
diff
changeset
|
967 |
|
1254
28871b08d49c
8463 missing key file error message says certificate is missing
Shawn Walker <srw@sun.com>
parents:
1141
diff
changeset
|
968 |
class NoSuchKey(CertificateError): |
28871b08d49c
8463 missing key file error message says certificate is missing
Shawn Walker <srw@sun.com>
parents:
1141
diff
changeset
|
969 |
"""Used to indicate that a key could not be found.""" |
28871b08d49c
8463 missing key file error message says certificate is missing
Shawn Walker <srw@sun.com>
parents:
1141
diff
changeset
|
970 |
|
1141
a74d6815a7fc
4178 unfound_fmris is a poor name
Rich Burridge <rich.burridge@sun.com>
parents:
1087
diff
changeset
|
971 |
Version 15: |
2219
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
972 |
Incompatible with clients using versions 0-14. |
1141
a74d6815a7fc
4178 unfound_fmris is a poor name
Rich Burridge <rich.burridge@sun.com>
parents:
1087
diff
changeset
|
973 |
Changes: |
1254
28871b08d49c
8463 missing key file error message says certificate is missing
Shawn Walker <srw@sun.com>
parents:
1141
diff
changeset
|
974 |
The unfound_fmris variable in the |
2228
5319ee47781d
2774 new depend action behavior: follow if possible
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2219
diff
changeset
|
975 |
pkg.client.api_errors.PlanCreationException class is now called |
1254
28871b08d49c
8463 missing key file error message says certificate is missing
Shawn Walker <srw@sun.com>
parents:
1141
diff
changeset
|
976 |
unmatched_fmris. |
1141
a74d6815a7fc
4178 unfound_fmris is a poor name
Rich Burridge <rich.burridge@sun.com>
parents:
1087
diff
changeset
|
977 |
|
1087
293c0aa5f32e
8214 load_catalogs should only load catalog data when needed
Shawn Walker <srw@sun.com>
parents:
996
diff
changeset
|
978 |
Version 14: |
293c0aa5f32e
8214 load_catalogs should only load catalog data when needed
Shawn Walker <srw@sun.com>
parents:
996
diff
changeset
|
979 |
Compatible with clients using versions 12-14. |
293c0aa5f32e
8214 load_catalogs should only load catalog data when needed
Shawn Walker <srw@sun.com>
parents:
996
diff
changeset
|
980 |
Changes: |
1254
28871b08d49c
8463 missing key file error message says certificate is missing
Shawn Walker <srw@sun.com>
parents:
1141
diff
changeset
|
981 |
The following methods were added to pkg.client.publisher.Publisher: |
1087
293c0aa5f32e
8214 load_catalogs should only load catalog data when needed
Shawn Walker <srw@sun.com>
parents:
996
diff
changeset
|
982 |
|
293c0aa5f32e
8214 load_catalogs should only load catalog data when needed
Shawn Walker <srw@sun.com>
parents:
996
diff
changeset
|
983 |
def create_meta_root(self): |
293c0aa5f32e
8214 load_catalogs should only load catalog data when needed
Shawn Walker <srw@sun.com>
parents:
996
diff
changeset
|
984 |
"""Create the publisher's meta_root.""" |
293c0aa5f32e
8214 load_catalogs should only load catalog data when needed
Shawn Walker <srw@sun.com>
parents:
996
diff
changeset
|
985 |
|
293c0aa5f32e
8214 load_catalogs should only load catalog data when needed
Shawn Walker <srw@sun.com>
parents:
996
diff
changeset
|
986 |
def remove_meta_root(self): |
293c0aa5f32e
8214 load_catalogs should only load catalog data when needed
Shawn Walker <srw@sun.com>
parents:
996
diff
changeset
|
987 |
"""Removes the publisher's meta_root.""" |
293c0aa5f32e
8214 load_catalogs should only load catalog data when needed
Shawn Walker <srw@sun.com>
parents:
996
diff
changeset
|
988 |
|
996
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
989 |
Version 13: |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
990 |
Compatible with clients using version 12. |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
991 |
Changes: |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
992 |
By default, publisher repositories will be checked for new metadata no more |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
993 |
than once every four hours unless otherwise requested. Each time a |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
994 |
publisher's selected repository is checked for updates, the client will |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
995 |
store a timestamp (in UTC) marking when the refresh was performed. |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
996 |
|
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
997 |
ImageInterface.refresh() has changed as follows: |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
998 |
* Changed 'full_refresh' to an optional keyword argument that defaults |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
999 |
to False. |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1000 |
|
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1001 |
* Added optional boolean keyword 'immediate' that allows the client to |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1002 |
request that a publisher be checked for updates even if a check is |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1003 |
not yet needed. |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1004 |
|
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1005 |
* Changed to properly use progress tracker for refreshing of publisher |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1006 |
metadata. |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1007 |
|
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1008 |
* Now only refreshes publisher metadata based on the update interval |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1009 |
specified by the refresh_seconds property on the publisher's |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1010 |
selected_repository. |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1011 |
|
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1012 |
ImageInterface.update_publisher() has changed as follows: |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1013 |
* When updating a publisher with 'refresh_allowed' set to False, its |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1014 |
catalog will no longer be removed. Instead, it is marked as needing |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1015 |
refresh, and the next time the client can do so, it will. |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1016 |
|
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1017 |
pkg.client.publisher.Publisher has changed as follows: |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1018 |
* New property 'last_refreshed': |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1019 |
A datetime object representing the time (in UTC) the |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1020 |
publisher's selected repository was last refreshed for new |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1021 |
metadata (such as catalog updates). 'None' if the publisher |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1022 |
hasn't been refreshed yet or the time is not available. |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1023 |
|
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1024 |
The above property will be automatically set by the api as needed |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1025 |
although api consumers are free to retrieve its value. Manually |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1026 |
setting this value is not recommended. |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1027 |
|
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1028 |
* New property 'meta_root': |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1029 |
The absolute pathname of the directory where the publisher's |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1030 |
metadata should be written to and read from. |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1031 |
|
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1032 |
The above property will be automatically set by the api as needed |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1033 |
although api consumers are free to retrieve its value. Manually |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1034 |
setting this value is not recommended. |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1035 |
|
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1036 |
* New property 'needs_refresh': |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1037 |
A boolean value indicating whether the publisher's metadata for |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1038 |
the currently selected repository needs to be refreshed. |
31d152a5212b
7582 pkg set-publisher --no-refresh will delete catalogs
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
941
diff
changeset
|
1039 |
|
941
e7bff46da54e
6175 search needs to be moved to version 1
Brock Pytlik <bpytlik@sun.com>
parents:
926
diff
changeset
|
1040 |
Version 12: |
2219
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
1041 |
Incompatible with clients using versions 0-12 |
941
e7bff46da54e
6175 search needs to be moved to version 1
Brock Pytlik <bpytlik@sun.com>
parents:
926
diff
changeset
|
1042 |
Changes: |
e7bff46da54e
6175 search needs to be moved to version 1
Brock Pytlik <bpytlik@sun.com>
parents:
926
diff
changeset
|
1043 |
This versions adds local_search and remote_search to the api and removes |
e7bff46da54e
6175 search needs to be moved to version 1
Brock Pytlik <bpytlik@sun.com>
parents:
926
diff
changeset
|
1044 |
those functions from pkg.client.image. |
e7bff46da54e
6175 search needs to be moved to version 1
Brock Pytlik <bpytlik@sun.com>
parents:
926
diff
changeset
|
1045 |
|
926
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1046 |
Version 11: |
2219
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
1047 |
Incompatible with clients using versions 0-10 |
926
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1048 |
Changes: |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1049 |
This version changes all parameter names and property names from 'authority' |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1050 |
to 'publisher'. For example, parameters named 'auths' were changed to |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1051 |
'pubs'; parameters named 'authent' were changed to 'pubent' and so forth. |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1052 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1053 |
In addition, the following new api functions were added to ImageInterface: |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1054 |
def add_publisher(self, pub, refresh_allowed=True): |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1055 |
"""Add the provided publisher object to the image |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1056 |
configuration.""" |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1057 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1058 |
def get_preferred_publisher(self): |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1059 |
"""Returns the preferred publisher object for the image.""" |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1060 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1061 |
def get_publisher(self, prefix=None, alias=None, duplicate=False): |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1062 |
"""Retrieves a publisher object matching the provided prefix |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1063 |
(name) or alias. |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1064 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1065 |
'duplicate' is an optional boolean value indicating whether |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1066 |
a copy of the publisher object should be returned instead |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1067 |
of the original. |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1068 |
""" |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1069 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1070 |
def get_publishers(self, duplicate=False): |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1071 |
"""Returns a list of the publisher objects for the current |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1072 |
image. |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1073 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1074 |
'duplicate' is an optional boolean value indicating whether |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1075 |
copies of the publisher objects should be returned instead |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1076 |
of the originals. |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1077 |
""" |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1078 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1079 |
def get_publisher_last_update_time(self, prefix=None, alias=None): |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1080 |
"""Returns a datetime object representing the last time the |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1081 |
catalog for a publisher was modified or None.""" |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1082 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1083 |
def has_publisher(self, prefix=None, alias=None): |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1084 |
"""Retrieves a publisher object matching the provided prefix |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1085 |
(name) or alias.""" |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1086 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1087 |
def remove_publisher(self, prefix=None, alias=None): |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1088 |
"""Removes a publisher object matching the provided prefix |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1089 |
(name) or alias.""" |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1090 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1091 |
def set_preferred_publisher(self, prefix=None, alias=None): |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1092 |
"""Sets the preferred publisher for the image.""" |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1093 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1094 |
def update_publisher(self, pub, refresh_allowed=True): |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1095 |
"""Replaces an existing publisher object with the provided one |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1096 |
using the _source_object_id identifier set during copy.""" |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1097 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1098 |
def update_publisher(self, pub, refresh_allowed=True): |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1099 |
"""Replaces an existing publisher object with the provided one |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1100 |
using the _source_object_id identifier set during copy. |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1101 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1102 |
'refresh_allowed' is an optional boolean value indicating |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1103 |
whether a refresh of publisher metadata (such as its catalog) |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1104 |
should be performed if transport information is changed for a |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1105 |
repository, mirror, or origin. If False, no attempt will be |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1106 |
made to retrieve publisher metadata.""" |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1107 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1108 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1109 |
def log_operation_end(self, error=None, result=None): |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1110 |
"""Marks the end of an operation to be recorded in image |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1111 |
history. |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1112 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1113 |
'result' should be a pkg.client.history constant value |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1114 |
representing the outcome of an operation. If not provided, |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1115 |
and 'error' is provided, the final result of the operation will |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1116 |
be based on the class of 'error' and 'error' will be recorded |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1117 |
for the current operation. If 'result' and 'error' is not |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1118 |
provided, success is assumed.""" |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1119 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1120 |
def log_operation_error(self, error): |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1121 |
"""Adds an error to the list of errors to be recorded in image |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1122 |
history for the current opreation.""" |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1123 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1124 |
def log_operation_start(self, name): |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1125 |
"""Marks the start of an operation to be recorded in image |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1126 |
history.""" |
2228
5319ee47781d
2774 new depend action behavior: follow if possible
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2219
diff
changeset
|
1127 |
|
926
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1128 |
def parse_p5i(self, fileobj=None, location=None): |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1129 |
"""Reads the pkg(5) publisher json formatted data at 'location' |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1130 |
or from the provided file-like object 'fileobj' and returns a |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1131 |
list of tuples of the format (publisher object, pkg_names). |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1132 |
pkg_names is a list of strings representing package names or |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1133 |
FMRIs. If any pkg_names not specific to a publisher were |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1134 |
provided, the last tuple returned will be of the format (None, |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1135 |
pkg_names). |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1136 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1137 |
'fileobj' is an optional file-like object that must support a |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1138 |
'read' method for retrieving data. |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1139 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1140 |
'location' is an optional string value that should either start |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1141 |
with a leading slash and be pathname of a file or a URI string. |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1142 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1143 |
'fileobj' or 'location' must be provided.""" |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1144 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1145 |
def write_p5i(self, fileobj, pkg_names=None, pubs=None): |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1146 |
"""Writes the publisher, repository, and provided package names |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1147 |
to the provided file-like object 'fileobj' in json p5i format. |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1148 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1149 |
'fileobj' is only required to have a 'write' method that accepts |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1150 |
data to be written as a parameter. |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1151 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1152 |
'pkg_names' is a dict of lists, tuples, or sets indexed by |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1153 |
publisher prefix that contain package names, FMRI strings, or |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1154 |
package info objects. A prefix of "" can be used for packages |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1155 |
that are not specific to a publisher. |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1156 |
|
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1157 |
'pubs' is an optional list of publisher prefixes or Publisher |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1158 |
objects. If not provided, the information for all publishers |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1159 |
(excluding those disabled) will be output.""" |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1160 |
|
917
eed22f430a9f
6902 api.info needs a "fast" flag or a way to pass a set of the information required
Brock Pytlik <bpytlik@sun.com>
parents:
884
diff
changeset
|
1161 |
Version 10: |
2219
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
1162 |
Incompatible with clients using versions 0-9 |
917
eed22f430a9f
6902 api.info needs a "fast" flag or a way to pass a set of the information required
Brock Pytlik <bpytlik@sun.com>
parents:
884
diff
changeset
|
1163 |
Changes: |
eed22f430a9f
6902 api.info needs a "fast" flag or a way to pass a set of the information required
Brock Pytlik <bpytlik@sun.com>
parents:
884
diff
changeset
|
1164 |
This version changes the interface to info. It removes the action info |
920
5cb8100e9cea
6902 api.info needs a "fast" flag or a way to pass a set of the information required (followup)
Brock Pytlik <bpytlik@sun.com>
parents:
917
diff
changeset
|
1165 |
and licenses flag and replaces them with a set of options to allow |
5cb8100e9cea
6902 api.info needs a "fast" flag or a way to pass a set of the information required (followup)
Brock Pytlik <bpytlik@sun.com>
parents:
917
diff
changeset
|
1166 |
the caller control over which information is retrieved. |
917
eed22f430a9f
6902 api.info needs a "fast" flag or a way to pass a set of the information required
Brock Pytlik <bpytlik@sun.com>
parents:
884
diff
changeset
|
1167 |
|
884
d780afc023ff
3718 plan_update_all needs to have an optional argument for the new BE name
Brock Pytlik <bpytlik@sun.com>
parents:
835
diff
changeset
|
1168 |
Version 9: |
2219
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
1169 |
Compatible with clients using versions 0-8 |
884
d780afc023ff
3718 plan_update_all needs to have an optional argument for the new BE name
Brock Pytlik <bpytlik@sun.com>
parents:
835
diff
changeset
|
1170 |
Changes: |
917
eed22f430a9f
6902 api.info needs a "fast" flag or a way to pass a set of the information required
Brock Pytlik <bpytlik@sun.com>
parents:
884
diff
changeset
|
1171 |
This version adds an optional argument to plan_update_all to allow the |
884
d780afc023ff
3718 plan_update_all needs to have an optional argument for the new BE name
Brock Pytlik <bpytlik@sun.com>
parents:
835
diff
changeset
|
1172 |
specification of a name for the clone of the BE which is made. It also |
d780afc023ff
3718 plan_update_all needs to have an optional argument for the new BE name
Brock Pytlik <bpytlik@sun.com>
parents:
835
diff
changeset
|
1173 |
exposes check_be_name as part of the api. |
d780afc023ff
3718 plan_update_all needs to have an optional argument for the new BE name
Brock Pytlik <bpytlik@sun.com>
parents:
835
diff
changeset
|
1174 |
|
835
34ec4401dc48
686 Client needs a way to tell that a response is actually from an IPS server
johansen <johansen@sun.com>
parents:
696
diff
changeset
|
1175 |
Version 8: |
2219
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
1176 |
Compatible with clients using versions 0-7 |
835
34ec4401dc48
686 Client needs a way to tell that a response is actually from an IPS server
johansen <johansen@sun.com>
parents:
696
diff
changeset
|
1177 |
Changes: |
34ec4401dc48
686 Client needs a way to tell that a response is actually from an IPS server
johansen <johansen@sun.com>
parents:
696
diff
changeset
|
1178 |
This version introduces InvalidDepotResponseException. The |
34ec4401dc48
686 Client needs a way to tell that a response is actually from an IPS server
johansen <johansen@sun.com>
parents:
696
diff
changeset
|
1179 |
exception is thrown when operations that refresh the catalog |
34ec4401dc48
686 Client needs a way to tell that a response is actually from an IPS server
johansen <johansen@sun.com>
parents:
696
diff
changeset
|
1180 |
discover that the server is not a pkg depot. Clients of the api |
34ec4401dc48
686 Client needs a way to tell that a response is actually from an IPS server
johansen <johansen@sun.com>
parents:
696
diff
changeset
|
1181 |
should catch this exception and respond appropriately. |
34ec4401dc48
686 Client needs a way to tell that a response is actually from an IPS server
johansen <johansen@sun.com>
parents:
696
diff
changeset
|
1182 |
|
696
6bbfd2dece6f
4371 user-agent string needs to be different for different client front-ends
Danek Duvall <danek.duvall@sun.com>
parents:
688
diff
changeset
|
1183 |
Version 7: |
2219
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
1184 |
Compatible with clients using versions 0-6 |
696
6bbfd2dece6f
4371 user-agent string needs to be different for different client front-ends
Danek Duvall <danek.duvall@sun.com>
parents:
688
diff
changeset
|
1185 |
Changes: |
6bbfd2dece6f
4371 user-agent string needs to be different for different client front-ends
Danek Duvall <danek.duvall@sun.com>
parents:
688
diff
changeset
|
1186 |
Ignore the pkg_client_name parameter passed to api.ImageInterface() if |
6bbfd2dece6f
4371 user-agent string needs to be different for different client front-ends
Danek Duvall <danek.duvall@sun.com>
parents:
688
diff
changeset
|
1187 |
pkg.client.global_settings.client_name isn't None. This latter object |
6bbfd2dece6f
4371 user-agent string needs to be different for different client front-ends
Danek Duvall <danek.duvall@sun.com>
parents:
688
diff
changeset
|
1188 |
is now the preferred way to set the client name, and the |
6bbfd2dece6f
4371 user-agent string needs to be different for different client front-ends
Danek Duvall <danek.duvall@sun.com>
parents:
688
diff
changeset
|
1189 |
pkg_client_name parameter may be ignored or removed in the future. |
6bbfd2dece6f
4371 user-agent string needs to be different for different client front-ends
Danek Duvall <danek.duvall@sun.com>
parents:
688
diff
changeset
|
1190 |
|
688
32a3ca40676e
4260 pkg info should print the classification
Brock Pytlik <bpytlik@sun.com>
parents:
685
diff
changeset
|
1191 |
Version 6: |
2219
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
1192 |
Compatible with clients using versions 0-5 |
688
32a3ca40676e
4260 pkg info should print the classification
Brock Pytlik <bpytlik@sun.com>
parents:
685
diff
changeset
|
1193 |
Changes: |
2228
5319ee47781d
2774 new depend action behavior: follow if possible
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2219
diff
changeset
|
1194 |
Adds a new field to PackageInfo, category_info_list, which is a list of |
688
32a3ca40676e
4260 pkg info should print the classification
Brock Pytlik <bpytlik@sun.com>
parents:
685
diff
changeset
|
1195 |
PackageCategory objects. These objects contain the scheme and category |
32a3ca40676e
4260 pkg info should print the classification
Brock Pytlik <bpytlik@sun.com>
parents:
685
diff
changeset
|
1196 |
information for packages. |
32a3ca40676e
4260 pkg info should print the classification
Brock Pytlik <bpytlik@sun.com>
parents:
685
diff
changeset
|
1197 |
|
685
6f53483db920
1469 image-update by unprivileged user should give better error message
Brock Pytlik <bpytlik@sun.com>
parents:
625
diff
changeset
|
1198 |
Version 5: |
2219
60ad60f7592c
2152 standalone package support needed (on-disk format)
Shawn Walker <shawn.walker@oracle.com>
parents:
2215
diff
changeset
|
1199 |
Compatible with clients using versions 0-4 as long as they have a generic |
685
6f53483db920
1469 image-update by unprivileged user should give better error message
Brock Pytlik <bpytlik@sun.com>
parents:
625
diff
changeset
|
1200 |
APIException. This is the case for PackageManager and UpdateManaget. |
6f53483db920
1469 image-update by unprivileged user should give better error message
Brock Pytlik <bpytlik@sun.com>
parents:
625
diff
changeset
|
1201 |
Changes: |
6f53483db920
1469 image-update by unprivileged user should give better error message
Brock Pytlik <bpytlik@sun.com>
parents:
625
diff
changeset
|
1202 |
plan_install and plan_update_all can now raise PermissionsException. |
6f53483db920
1469 image-update by unprivileged user should give better error message
Brock Pytlik <bpytlik@sun.com>
parents:
625
diff
changeset
|
1203 |
|
625
e46b345645d6
3799 need to start progress tracker going early on
Brock Pytlik <bpytlik@sun.com>
parents:
615
diff
changeset
|
1204 |
Version 4: |
e46b345645d6
3799 need to start progress tracker going early on
Brock Pytlik <bpytlik@sun.com>
parents:
615
diff
changeset
|
1205 |
Compatible with clients using versions 1, 2, and 3 |
e46b345645d6
3799 need to start progress tracker going early on
Brock Pytlik <bpytlik@sun.com>
parents:
615
diff
changeset
|
1206 |
Changes: |
2228
5319ee47781d
2774 new depend action behavior: follow if possible
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2219
diff
changeset
|
1207 |
Modifies where certain progress tracking calls were made, calling |
625
e46b345645d6
3799 need to start progress tracker going early on
Brock Pytlik <bpytlik@sun.com>
parents:
615
diff
changeset
|
1208 |
evaluate_start much sooner. |
e46b345645d6
3799 need to start progress tracker going early on
Brock Pytlik <bpytlik@sun.com>
parents:
615
diff
changeset
|
1209 |
Adds refresh tracking to progress.py. This allows for active feedback when |
e46b345645d6
3799 need to start progress tracker going early on
Brock Pytlik <bpytlik@sun.com>
parents:
615
diff
changeset
|
1210 |
the catalogs of authorities are being refreshed. |
e46b345645d6
3799 need to start progress tracker going early on
Brock Pytlik <bpytlik@sun.com>
parents:
615
diff
changeset
|
1211 |
|
615
aeeeb9f31173
4114 Api.Info needs to provide more info
Brock Pytlik <bpytlik@sun.com>
parents:
598
diff
changeset
|
1212 |
Version 3: |
aeeeb9f31173
4114 Api.Info needs to provide more info
Brock Pytlik <bpytlik@sun.com>
parents:
598
diff
changeset
|
1213 |
Compatible with clients using Versions 1 and 2 |
aeeeb9f31173
4114 Api.Info needs to provide more info
Brock Pytlik <bpytlik@sun.com>
parents:
598
diff
changeset
|
1214 |
Changes: |
aeeeb9f31173
4114 Api.Info needs to provide more info
Brock Pytlik <bpytlik@sun.com>
parents:
598
diff
changeset
|
1215 |
Adds an optional argument to info which determines whether detailed information |
aeeeb9f31173
4114 Api.Info needs to provide more info
Brock Pytlik <bpytlik@sun.com>
parents:
598
diff
changeset
|
1216 |
about actions will be returned |
aeeeb9f31173
4114 Api.Info needs to provide more info
Brock Pytlik <bpytlik@sun.com>
parents:
598
diff
changeset
|
1217 |
Adds the following new fields to PackageInfo objects: links, hardlinks, |
aeeeb9f31173
4114 Api.Info needs to provide more info
Brock Pytlik <bpytlik@sun.com>
parents:
598
diff
changeset
|
1218 |
files, dirs, dependencies |
aeeeb9f31173
4114 Api.Info needs to provide more info
Brock Pytlik <bpytlik@sun.com>
parents:
598
diff
changeset
|
1219 |
|
598
c53f6107fdb6
2863 pkg install should have a way to disable indexing
Brock Pytlik <bpytlik@sun.com>
parents:
594
diff
changeset
|
1220 |
Version 2: |
c53f6107fdb6
2863 pkg install should have a way to disable indexing
Brock Pytlik <bpytlik@sun.com>
parents:
594
diff
changeset
|
1221 |
Compatible with clients using Version 1 |
c53f6107fdb6
2863 pkg install should have a way to disable indexing
Brock Pytlik <bpytlik@sun.com>
parents:
594
diff
changeset
|
1222 |
Changes: |
2228
5319ee47781d
2774 new depend action behavior: follow if possible
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2219
diff
changeset
|
1223 |
Adds the optional argument update_index to plan_install, plan_uninstall, and |
615
aeeeb9f31173
4114 Api.Info needs to provide more info
Brock Pytlik <bpytlik@sun.com>
parents:
598
diff
changeset
|
1224 |
plan_update_all. When the argument is false, no automatic update to the |
aeeeb9f31173
4114 Api.Info needs to provide more info
Brock Pytlik <bpytlik@sun.com>
parents:
598
diff
changeset
|
1225 |
index occurs. By default, the argument is true. |
598
c53f6107fdb6
2863 pkg install should have a way to disable indexing
Brock Pytlik <bpytlik@sun.com>
parents:
594
diff
changeset
|
1226 |
|
594
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1227 |
Version 1: |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1228 |
Incompatible with clients using Version 0 |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1229 |
Changes: |
2228
5319ee47781d
2774 new depend action behavior: follow if possible
Bart Smaalders <Bart.Smaalders@Oracle.COM>
parents:
2219
diff
changeset
|
1230 |
plan_install now returns a tuple of whether there is anything to do and |
594
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1231 |
a catalog refresh exception, if one was caught. In this, it mirrors the |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1232 |
first and third return values from plan_update_all. |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1233 |
|
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1234 |
Version 0: |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1235 |
def __init__(self, img_path, version_id, progesstracker, |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1236 |
cancel_state_callable, pkg_client_name): |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1237 |
"""Constructs an ImageInterface. img_path should point to an |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1238 |
existing image. version_id indicates the version of the api |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1239 |
the client is expecting to use. progesstracker is the |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1240 |
progresstracker the client wants the api to use for UI |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1241 |
callbacks. cancel_state_callable is a function which the client |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1242 |
wishes to have called each time whether the operation can be |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1243 |
canceled changes. It can raise VersionException and |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1244 |
ImageNotFoundException.""" |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1245 |
|
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1246 |
def plan_install(self, pkg_list, filters, refresh_catalogs=True, |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1247 |
noexecute=False, verbose=False): |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1248 |
"""Contructs a plan to install the packages provided in |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1249 |
pkg_list. pkg_list is a list of packages to install. filters |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1250 |
is a list of filters to apply to the actions of the installed |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1251 |
packages. refresh_catalogs controls whether the catalogs will |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1252 |
automatically be refreshed. noexecute determines whether the |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1253 |
history will be recorded after planning is finished. verbose |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1254 |
controls whether verbose debugging output will be printed to the |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1255 |
terminal. Its existence is temporary. If there are things to do |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1256 |
to complete the install, it returns True, otherwise it returns |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1257 |
False. It can raise InvalidCertException, PlanCreationException, |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1258 |
NetworkUnavailableException, and InventoryException. The |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1259 |
noexecute argument is included for compatibility with |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1260 |
operational history. The hope is it can be removed in the |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1261 |
future.""" |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1262 |
|
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1263 |
def plan_uninstall(self, pkg_list, recursive_removal, noexecute=False, |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1264 |
verbose=False): |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1265 |
"""Contructs a plan to uninstall the packages provided in |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1266 |
pkg_list. pkg_list is a list of packages to install. |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1267 |
recursive_removal controls whether recursive removal is |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1268 |
allowed. noexecute determines whether the history will be |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1269 |
recorded after planning is finished. verbose controls whether |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1270 |
verbose debugging output will be printed to the terminal. Its |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1271 |
existence is temporary. If there are things to do to complete |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1272 |
the uninstall, it returns True, otherwise it returns False. It |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1273 |
can raise NonLeafPackageException and PlanCreationException.""" |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1274 |
|
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1275 |
def plan_update_all(self, actual_cmd, refresh_catalogs=True, |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1276 |
noexecute=False, force=False, pkgs_must_be_up_to_date=None, |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1277 |
verbose=False): |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1278 |
"""Creates a plan to update all packages on the system to the |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1279 |
latest known versions. actual_cmd is the command used to start |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1280 |
the client. It is used to determine the image to check whether |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1281 |
SUNWipkg is up to date. refresh_catalogs controls whether the |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1282 |
catalogs will automatically be refreshed. noexecute determines |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1283 |
whether the history will be recorded after planning is finished. |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1284 |
force controls whether update should proceed even if ipkg is not |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1285 |
up to date. verbose controls whether verbose debugging output |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1286 |
will be printed to the terminal. Its existence is temporary. It |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1287 |
returns a tuple of three things. The first is a boolean which |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1288 |
tells the client whether there is anything to do. The second |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1289 |
tells whether the image is an opensolaris image. The third is |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1290 |
either None, or an exception which indicates partial success. |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1291 |
This is currently used to indicate a failure in refreshing |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1292 |
catalogs. It can raise CatalogRefreshException, |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1293 |
IpkgOutOfDateException, NetworkUnavailableException, and |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1294 |
PlanCreationException.""" |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1295 |
|
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1296 |
def describe(self): |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1297 |
"""Returns None if no plan is ready yet, otherwise returns |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1298 |
a PlanDescription""" |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1299 |
|
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1300 |
def prepare(self): |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1301 |
"""Takes care of things which must be done before the plan |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1302 |
can be executed. This includes downloading the packages to |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1303 |
disk and preparing the indexes to be updated during |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1304 |
execution. It can raise ProblematicPermissionsIndexException, |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1305 |
and PlanMissingException. Should only be called once a |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1306 |
plan_X method has been called.""" |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1307 |
|
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1308 |
def execute_plan(self, be_name=None): |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1309 |
"""Executes the plan. This is uncancelable one it begins. It |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1310 |
can raise CorruptedIndexException, |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1311 |
ProblematicPermissionsIndexException, ImageplanStateException, |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1312 |
ImageUpdateOnLiveImageException, and PlanMissingException. |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1313 |
Should only be called after the prepare method has been |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1314 |
called.""" |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1315 |
|
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1316 |
def refresh(self, full_refresh, auths=None): |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1317 |
"""Refreshes the catalogs. full_refresh controls whether to do |
926
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
920
diff
changeset
|
1318 |
a full retrieval of the catalog from the publisher or only |
594
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1319 |
update the existing catalog. auths is a list of authorities to |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1320 |
refresh. Passing an empty list or using the default value means |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1321 |
all known authorities will be refreshed. While it currently |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1322 |
returns an image object, this is an expedient for allowing |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1323 |
existing code to work while the rest of the API is put into |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1324 |
place.""" |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1325 |
|
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1326 |
def info(self, fmri_strings, local, get_licenses): |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1327 |
"""Gathers information about fmris. fmri_strings is a list |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1328 |
of fmri_names for which information is desired. local |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1329 |
determines whether to retrieve the information locally. |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1330 |
get_licenses determines whether to retrieve the text of |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1331 |
the licenses. It returns a dictionary of lists. The keys |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1332 |
for the dictionary are the constants specified in the class |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1333 |
definition. The values are lists of PackageInfo objects or |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1334 |
strings.""" |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1335 |
|
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1336 |
def can_be_canceled(self): |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1337 |
"""Returns true if the API is in a cancelable state.""" |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1338 |
|
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1339 |
def reset(self): |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1340 |
"""Resets the API back the the initial state. Note: |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1341 |
this does not necessarily return the disk to its initial state |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1342 |
since the indexes or download cache may have been changed by |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1343 |
the prepare method.""" |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1344 |
|
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1345 |
def cancel(self): |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1346 |
"""Used for asynchronous cancelation. It returns the API |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1347 |
to the state it was in prior to the current method being |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1348 |
invoked. Canceling during a plan phase returns the API to |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1349 |
its initial state. Canceling during prepare puts the API |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1350 |
into the state it was in just after planning had completed. |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1351 |
Plan execution cannot be canceled. A call to this method blocks |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1352 |
until the canelation has happened. Note: this does not |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1353 |
necessarily return the disk to its initial state since the |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1354 |
indexes or download cache may have been changed by the |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1355 |
prepare method.""" |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1356 |
|
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1357 |
class PlanDescription(object): |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1358 |
"""A class which describes the changes the plan will make. It |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1359 |
provides a list of tuples of PackageInfo's. The first item in the |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1360 |
tuple is the package that is being changed. The second item in the |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1361 |
tuple is the package that will be in the image after the change.""" |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1362 |
|
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1363 |
def get_changes(self): |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1364 |
|
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1365 |
class LicenseInfo(object): |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1366 |
"""A class representing the license information a package |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1367 |
provides.""" |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1368 |
|
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1369 |
def get_text(self): |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1370 |
|
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1371 |
class PackageInfo(object): |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1372 |
"""A class capturing the information about packages that a client |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1373 |
could need. The fmri is guaranteed to be set. All other values may |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1374 |
be None, depending on how the PackageInfo instance was created.""" |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1375 |
|
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1376 |
# Possible package installation states |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1377 |
INSTALLED = 1 |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1378 |
NOT_INSTALLED = 2 |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1379 |
|
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1380 |
self.pkg_stem |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1381 |
self.summary |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1382 |
self.state |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1383 |
self.authority |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1384 |
self.preferred_authority |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1385 |
self.version |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1386 |
self.build_release |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1387 |
self.branch |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1388 |
self.packaging_date |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1389 |
self.size |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1390 |
self.fmri |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1391 |
self.licenses |
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1392 |
|
b072bc027c54
3770 pkg install when authority unavailable traces back
Brock Pytlik <bpytlik@sun.com>
parents:
diff
changeset
|
1393 |
def __str__(self): |