Merge lp:~smoser/simplestreams/trunk.moved-to-git into lp:simplestreams
- trunk.moved-to-git
- Merge into trunk
Status: | Merged |
---|---|
Merged at revision: | 462 |
Proposed branch: | lp:~smoser/simplestreams/trunk.moved-to-git |
Merge into: | lp:simplestreams |
Diff against target: |
12175 lines (+3/-11608) 105 files modified
LICENSE (+0/-661) Makefile (+0/-41) README.txt (+1/-1) bin/json2streams (+0/-9) bin/sstream-mirror (+0/-159) bin/sstream-query (+0/-150) bin/sstream-sync (+0/-171) debian/changelog.trunk (+0/-6) debian/compat (+0/-1) debian/control (+0/-70) debian/copyright (+0/-17) debian/python-simplestreams.install (+0/-1) debian/python3-simplestreams.install (+0/-1) debian/rules (+0/-19) debian/simplestreams.install (+0/-2) debian/source/format (+0/-1) doc/README (+0/-161) doc/files/my.cfg (+0/-25) doc/files/openstack-sync.cfg (+0/-51) examples/cirros/streams/v1/index.json (+0/-28) examples/cirros/streams/v1/net.cirros-cloud:devel:download.json (+0/-311) examples/cirros/streams/v1/net.cirros-cloud:released:download.json (+0/-216) examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-amd64-disk1.img (+0/-1) examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-amd64-root.tar.gz (+0/-1) examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-amd64.tar.gz (+0/-1) examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-i386-disk1.img (+0/-1) examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-i386-root.tar.gz (+0/-1) examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-i386.tar.gz (+0/-1) examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-amd64-disk1.img (+0/-1) examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-amd64-root.tar.gz (+0/-1) examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-amd64.tar.gz (+0/-1) examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-i386-disk1.img (+0/-1) examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-i386-root.tar.gz (+0/-1) examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-i386.tar.gz (+0/-1) examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-amd64-disk1.img (+0/-1) examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-amd64-root.tar.gz (+0/-1) examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-amd64.tar.gz (+0/-1) examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-i386-disk1.img (+0/-1) examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-i386-root.tar.gz (+0/-1) examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-i386.tar.gz (+0/-1) examples/foocloud/streams/v1/com.example.foovendor:released:aws.json (+0/-122) examples/foocloud/streams/v1/com.example.foovendor:released:download.json (+0/-208) examples/foocloud/streams/v1/index.json (+0/-26) examples/keys/README.txt (+0/-21) examples/keys/cirros.pub (+0/-86) examples/keys/cloud-images.pub (+0/-53) examples/keys/example.pub (+0/-14) examples/keys/example.sec (+0/-21) examples/minimal/product1/20150915/root.img (+0/-1) examples/minimal/product1/20150915/text.txt (+0/-1) examples/minimal/streams/v1/download.json (+0/-28) examples/minimal/streams/v1/index.json (+0/-15) setup.py (+0/-28) simplestreams/__init__.py (+2/-8) simplestreams/checksum_util.py (+0/-110) simplestreams/contentsource.py (+0/-472) simplestreams/filters.py (+0/-76) simplestreams/generate_simplestreams.py (+0/-110) simplestreams/json2streams.py (+0/-110) simplestreams/log.py (+0/-68) simplestreams/mirrors/__init__.py (+0/-585) simplestreams/mirrors/command_hook.py (+0/-302) simplestreams/mirrors/glance.py (+0/-641) simplestreams/objectstores/__init__.py (+0/-229) simplestreams/objectstores/s3.py (+0/-101) simplestreams/objectstores/swift.py (+0/-153) simplestreams/openstack.py (+0/-206) simplestreams/util.py (+0/-613) tests/__init__.py (+0/-1) tests/httpserver.py (+0/-52) tests/testutil.py (+0/-23) tests/unittests/test_badmirrors.py (+0/-138) tests/unittests/test_command_hook_mirror.py (+0/-63) tests/unittests/test_contentsource.py (+0/-381) tests/unittests/test_generate_simplestreams.py (+0/-266) tests/unittests/test_glancemirror.py (+0/-657) tests/unittests/test_json2streams.py (+0/-211) tests/unittests/test_mirrorreaders.py (+0/-116) tests/unittests/test_mirrorwriters.py (+0/-28) tests/unittests/test_resolvework.py (+0/-117) tests/unittests/test_signed_data.py (+0/-43) tests/unittests/test_util.py (+0/-239) tests/unittests/tests_filestore.py (+0/-65) tools/build-deb (+0/-80) tools/compare-test-data (+0/-101) tools/create-gpgdir (+0/-55) tools/export-tarball (+0/-61) tools/gen-example-key (+0/-75) tools/gpg-trust-pubkey (+0/-32) tools/hook-check-downloads (+0/-121) tools/hook-debug (+0/-59) tools/hook-glance (+0/-198) tools/hook-image-id (+0/-152) tools/install-deps (+0/-106) tools/js2signed (+0/-53) tools/make-test-data (+0/-710) tools/run-flake8 (+0/-39) tools/sign-examples (+0/-9) tools/sign_helper.py (+0/-35) tools/sstream-mirror-glance (+0/-180) tools/tab2streams (+0/-91) tools/tenv (+0/-21) tools/toolutil.py (+0/-253) tools/ubuntu_versions.py (+0/-203) tox.ini (+0/-46) |
To merge this branch: | bzr merge lp:~smoser/simplestreams/trunk.moved-to-git |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
David Ames (community) | Approve | ||
Corey Bryant (community) | Approve | ||
simplestreams-dev | Pending | ||
Review via email: mp+348547@code.launchpad.net |
Commit message
Development has been moved to git.
Simplestreams has moved its development from bzr to git.
If you are seeing this message, it means you have checked out via bzr.
Please update your workflow to use git. Instead of
bzr branch lp:simplestreams
use:
git clone https:/
Description of the change
*************** DO NOT LAND BEFORE 2018-08-21 *******************
We currently have a warning being printed in the bzr source code that
mentions it will stay useful until 2018-07-31.
So do not merge this until after 2018-08-21.
Reality is that no one will see the warning, but will hopefully
see the failure. They can respond to the failure by
a.) immediately putting 'SIMPLESTREAMS_
b.) moving to git as directed.
After 3 weeks of that, then we will pull the plug entirely.
- 463. By Scott Moser
-
Leave module in place and raise exception.
This way the 'import simplestreams' will show the message to
any user that uses it, rather than having them have to figure
it out by noticing an empty directory and reading a README.txt. - 464. By Scott Moser
-
remove the date and raise RuntimeError
Corey Bryant (corey.bryant) wrote : | # |
Corey Bryant (corey.bryant) : | # |
Preview Diff
1 | === removed file 'LICENSE' |
2 | --- LICENSE 2013-03-26 01:24:58 +0000 |
3 | +++ LICENSE 1970-01-01 00:00:00 +0000 |
4 | @@ -1,661 +0,0 @@ |
5 | - GNU AFFERO GENERAL PUBLIC LICENSE |
6 | - Version 3, 19 November 2007 |
7 | - |
8 | - Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> |
9 | - Everyone is permitted to copy and distribute verbatim copies |
10 | - of this license document, but changing it is not allowed. |
11 | - |
12 | - Preamble |
13 | - |
14 | - The GNU Affero General Public License is a free, copyleft license for |
15 | -software and other kinds of works, specifically designed to ensure |
16 | -cooperation with the community in the case of network server software. |
17 | - |
18 | - The licenses for most software and other practical works are designed |
19 | -to take away your freedom to share and change the works. By contrast, |
20 | -our General Public Licenses are intended to guarantee your freedom to |
21 | -share and change all versions of a program--to make sure it remains free |
22 | -software for all its users. |
23 | - |
24 | - When we speak of free software, we are referring to freedom, not |
25 | -price. Our General Public Licenses are designed to make sure that you |
26 | -have the freedom to distribute copies of free software (and charge for |
27 | -them if you wish), that you receive source code or can get it if you |
28 | -want it, that you can change the software or use pieces of it in new |
29 | -free programs, and that you know you can do these things. |
30 | - |
31 | - Developers that use our General Public Licenses protect your rights |
32 | -with two steps: (1) assert copyright on the software, and (2) offer |
33 | -you this License which gives you legal permission to copy, distribute |
34 | -and/or modify the software. |
35 | - |
36 | - A secondary benefit of defending all users' freedom is that |
37 | -improvements made in alternate versions of the program, if they |
38 | -receive widespread use, become available for other developers to |
39 | -incorporate. Many developers of free software are heartened and |
40 | -encouraged by the resulting cooperation. However, in the case of |
41 | -software used on network servers, this result may fail to come about. |
42 | -The GNU General Public License permits making a modified version and |
43 | -letting the public access it on a server without ever releasing its |
44 | -source code to the public. |
45 | - |
46 | - The GNU Affero General Public License is designed specifically to |
47 | -ensure that, in such cases, the modified source code becomes available |
48 | -to the community. It requires the operator of a network server to |
49 | -provide the source code of the modified version running there to the |
50 | -users of that server. Therefore, public use of a modified version, on |
51 | -a publicly accessible server, gives the public access to the source |
52 | -code of the modified version. |
53 | - |
54 | - An older license, called the Affero General Public License and |
55 | -published by Affero, was designed to accomplish similar goals. This is |
56 | -a different license, not a version of the Affero GPL, but Affero has |
57 | -released a new version of the Affero GPL which permits relicensing under |
58 | -this license. |
59 | - |
60 | - The precise terms and conditions for copying, distribution and |
61 | -modification follow. |
62 | - |
63 | - TERMS AND CONDITIONS |
64 | - |
65 | - 0. Definitions. |
66 | - |
67 | - "This License" refers to version 3 of the GNU Affero General Public License. |
68 | - |
69 | - "Copyright" also means copyright-like laws that apply to other kinds of |
70 | -works, such as semiconductor masks. |
71 | - |
72 | - "The Program" refers to any copyrightable work licensed under this |
73 | -License. Each licensee is addressed as "you". "Licensees" and |
74 | -"recipients" may be individuals or organizations. |
75 | - |
76 | - To "modify" a work means to copy from or adapt all or part of the work |
77 | -in a fashion requiring copyright permission, other than the making of an |
78 | -exact copy. The resulting work is called a "modified version" of the |
79 | -earlier work or a work "based on" the earlier work. |
80 | - |
81 | - A "covered work" means either the unmodified Program or a work based |
82 | -on the Program. |
83 | - |
84 | - To "propagate" a work means to do anything with it that, without |
85 | -permission, would make you directly or secondarily liable for |
86 | -infringement under applicable copyright law, except executing it on a |
87 | -computer or modifying a private copy. Propagation includes copying, |
88 | -distribution (with or without modification), making available to the |
89 | -public, and in some countries other activities as well. |
90 | - |
91 | - To "convey" a work means any kind of propagation that enables other |
92 | -parties to make or receive copies. Mere interaction with a user through |
93 | -a computer network, with no transfer of a copy, is not conveying. |
94 | - |
95 | - An interactive user interface displays "Appropriate Legal Notices" |
96 | -to the extent that it includes a convenient and prominently visible |
97 | -feature that (1) displays an appropriate copyright notice, and (2) |
98 | -tells the user that there is no warranty for the work (except to the |
99 | -extent that warranties are provided), that licensees may convey the |
100 | -work under this License, and how to view a copy of this License. If |
101 | -the interface presents a list of user commands or options, such as a |
102 | -menu, a prominent item in the list meets this criterion. |
103 | - |
104 | - 1. Source Code. |
105 | - |
106 | - The "source code" for a work means the preferred form of the work |
107 | -for making modifications to it. "Object code" means any non-source |
108 | -form of a work. |
109 | - |
110 | - A "Standard Interface" means an interface that either is an official |
111 | -standard defined by a recognized standards body, or, in the case of |
112 | -interfaces specified for a particular programming language, one that |
113 | -is widely used among developers working in that language. |
114 | - |
115 | - The "System Libraries" of an executable work include anything, other |
116 | -than the work as a whole, that (a) is included in the normal form of |
117 | -packaging a Major Component, but which is not part of that Major |
118 | -Component, and (b) serves only to enable use of the work with that |
119 | -Major Component, or to implement a Standard Interface for which an |
120 | -implementation is available to the public in source code form. A |
121 | -"Major Component", in this context, means a major essential component |
122 | -(kernel, window system, and so on) of the specific operating system |
123 | -(if any) on which the executable work runs, or a compiler used to |
124 | -produce the work, or an object code interpreter used to run it. |
125 | - |
126 | - The "Corresponding Source" for a work in object code form means all |
127 | -the source code needed to generate, install, and (for an executable |
128 | -work) run the object code and to modify the work, including scripts to |
129 | -control those activities. However, it does not include the work's |
130 | -System Libraries, or general-purpose tools or generally available free |
131 | -programs which are used unmodified in performing those activities but |
132 | -which are not part of the work. For example, Corresponding Source |
133 | -includes interface definition files associated with source files for |
134 | -the work, and the source code for shared libraries and dynamically |
135 | -linked subprograms that the work is specifically designed to require, |
136 | -such as by intimate data communication or control flow between those |
137 | -subprograms and other parts of the work. |
138 | - |
139 | - The Corresponding Source need not include anything that users |
140 | -can regenerate automatically from other parts of the Corresponding |
141 | -Source. |
142 | - |
143 | - The Corresponding Source for a work in source code form is that |
144 | -same work. |
145 | - |
146 | - 2. Basic Permissions. |
147 | - |
148 | - All rights granted under this License are granted for the term of |
149 | -copyright on the Program, and are irrevocable provided the stated |
150 | -conditions are met. This License explicitly affirms your unlimited |
151 | -permission to run the unmodified Program. The output from running a |
152 | -covered work is covered by this License only if the output, given its |
153 | -content, constitutes a covered work. This License acknowledges your |
154 | -rights of fair use or other equivalent, as provided by copyright law. |
155 | - |
156 | - You may make, run and propagate covered works that you do not |
157 | -convey, without conditions so long as your license otherwise remains |
158 | -in force. You may convey covered works to others for the sole purpose |
159 | -of having them make modifications exclusively for you, or provide you |
160 | -with facilities for running those works, provided that you comply with |
161 | -the terms of this License in conveying all material for which you do |
162 | -not control copyright. Those thus making or running the covered works |
163 | -for you must do so exclusively on your behalf, under your direction |
164 | -and control, on terms that prohibit them from making any copies of |
165 | -your copyrighted material outside their relationship with you. |
166 | - |
167 | - Conveying under any other circumstances is permitted solely under |
168 | -the conditions stated below. Sublicensing is not allowed; section 10 |
169 | -makes it unnecessary. |
170 | - |
171 | - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. |
172 | - |
173 | - No covered work shall be deemed part of an effective technological |
174 | -measure under any applicable law fulfilling obligations under article |
175 | -11 of the WIPO copyright treaty adopted on 20 December 1996, or |
176 | -similar laws prohibiting or restricting circumvention of such |
177 | -measures. |
178 | - |
179 | - When you convey a covered work, you waive any legal power to forbid |
180 | -circumvention of technological measures to the extent such circumvention |
181 | -is effected by exercising rights under this License with respect to |
182 | -the covered work, and you disclaim any intention to limit operation or |
183 | -modification of the work as a means of enforcing, against the work's |
184 | -users, your or third parties' legal rights to forbid circumvention of |
185 | -technological measures. |
186 | - |
187 | - 4. Conveying Verbatim Copies. |
188 | - |
189 | - You may convey verbatim copies of the Program's source code as you |
190 | -receive it, in any medium, provided that you conspicuously and |
191 | -appropriately publish on each copy an appropriate copyright notice; |
192 | -keep intact all notices stating that this License and any |
193 | -non-permissive terms added in accord with section 7 apply to the code; |
194 | -keep intact all notices of the absence of any warranty; and give all |
195 | -recipients a copy of this License along with the Program. |
196 | - |
197 | - You may charge any price or no price for each copy that you convey, |
198 | -and you may offer support or warranty protection for a fee. |
199 | - |
200 | - 5. Conveying Modified Source Versions. |
201 | - |
202 | - You may convey a work based on the Program, or the modifications to |
203 | -produce it from the Program, in the form of source code under the |
204 | -terms of section 4, provided that you also meet all of these conditions: |
205 | - |
206 | - a) The work must carry prominent notices stating that you modified |
207 | - it, and giving a relevant date. |
208 | - |
209 | - b) The work must carry prominent notices stating that it is |
210 | - released under this License and any conditions added under section |
211 | - 7. This requirement modifies the requirement in section 4 to |
212 | - "keep intact all notices". |
213 | - |
214 | - c) You must license the entire work, as a whole, under this |
215 | - License to anyone who comes into possession of a copy. This |
216 | - License will therefore apply, along with any applicable section 7 |
217 | - additional terms, to the whole of the work, and all its parts, |
218 | - regardless of how they are packaged. This License gives no |
219 | - permission to license the work in any other way, but it does not |
220 | - invalidate such permission if you have separately received it. |
221 | - |
222 | - d) If the work has interactive user interfaces, each must display |
223 | - Appropriate Legal Notices; however, if the Program has interactive |
224 | - interfaces that do not display Appropriate Legal Notices, your |
225 | - work need not make them do so. |
226 | - |
227 | - A compilation of a covered work with other separate and independent |
228 | -works, which are not by their nature extensions of the covered work, |
229 | -and which are not combined with it such as to form a larger program, |
230 | -in or on a volume of a storage or distribution medium, is called an |
231 | -"aggregate" if the compilation and its resulting copyright are not |
232 | -used to limit the access or legal rights of the compilation's users |
233 | -beyond what the individual works permit. Inclusion of a covered work |
234 | -in an aggregate does not cause this License to apply to the other |
235 | -parts of the aggregate. |
236 | - |
237 | - 6. Conveying Non-Source Forms. |
238 | - |
239 | - You may convey a covered work in object code form under the terms |
240 | -of sections 4 and 5, provided that you also convey the |
241 | -machine-readable Corresponding Source under the terms of this License, |
242 | -in one of these ways: |
243 | - |
244 | - a) Convey the object code in, or embodied in, a physical product |
245 | - (including a physical distribution medium), accompanied by the |
246 | - Corresponding Source fixed on a durable physical medium |
247 | - customarily used for software interchange. |
248 | - |
249 | - b) Convey the object code in, or embodied in, a physical product |
250 | - (including a physical distribution medium), accompanied by a |
251 | - written offer, valid for at least three years and valid for as |
252 | - long as you offer spare parts or customer support for that product |
253 | - model, to give anyone who possesses the object code either (1) a |
254 | - copy of the Corresponding Source for all the software in the |
255 | - product that is covered by this License, on a durable physical |
256 | - medium customarily used for software interchange, for a price no |
257 | - more than your reasonable cost of physically performing this |
258 | - conveying of source, or (2) access to copy the |
259 | - Corresponding Source from a network server at no charge. |
260 | - |
261 | - c) Convey individual copies of the object code with a copy of the |
262 | - written offer to provide the Corresponding Source. This |
263 | - alternative is allowed only occasionally and noncommercially, and |
264 | - only if you received the object code with such an offer, in accord |
265 | - with subsection 6b. |
266 | - |
267 | - d) Convey the object code by offering access from a designated |
268 | - place (gratis or for a charge), and offer equivalent access to the |
269 | - Corresponding Source in the same way through the same place at no |
270 | - further charge. You need not require recipients to copy the |
271 | - Corresponding Source along with the object code. If the place to |
272 | - copy the object code is a network server, the Corresponding Source |
273 | - may be on a different server (operated by you or a third party) |
274 | - that supports equivalent copying facilities, provided you maintain |
275 | - clear directions next to the object code saying where to find the |
276 | - Corresponding Source. Regardless of what server hosts the |
277 | - Corresponding Source, you remain obligated to ensure that it is |
278 | - available for as long as needed to satisfy these requirements. |
279 | - |
280 | - e) Convey the object code using peer-to-peer transmission, provided |
281 | - you inform other peers where the object code and Corresponding |
282 | - Source of the work are being offered to the general public at no |
283 | - charge under subsection 6d. |
284 | - |
285 | - A separable portion of the object code, whose source code is excluded |
286 | -from the Corresponding Source as a System Library, need not be |
287 | -included in conveying the object code work. |
288 | - |
289 | - A "User Product" is either (1) a "consumer product", which means any |
290 | -tangible personal property which is normally used for personal, family, |
291 | -or household purposes, or (2) anything designed or sold for incorporation |
292 | -into a dwelling. In determining whether a product is a consumer product, |
293 | -doubtful cases shall be resolved in favor of coverage. For a particular |
294 | -product received by a particular user, "normally used" refers to a |
295 | -typical or common use of that class of product, regardless of the status |
296 | -of the particular user or of the way in which the particular user |
297 | -actually uses, or expects or is expected to use, the product. A product |
298 | -is a consumer product regardless of whether the product has substantial |
299 | -commercial, industrial or non-consumer uses, unless such uses represent |
300 | -the only significant mode of use of the product. |
301 | - |
302 | - "Installation Information" for a User Product means any methods, |
303 | -procedures, authorization keys, or other information required to install |
304 | -and execute modified versions of a covered work in that User Product from |
305 | -a modified version of its Corresponding Source. The information must |
306 | -suffice to ensure that the continued functioning of the modified object |
307 | -code is in no case prevented or interfered with solely because |
308 | -modification has been made. |
309 | - |
310 | - If you convey an object code work under this section in, or with, or |
311 | -specifically for use in, a User Product, and the conveying occurs as |
312 | -part of a transaction in which the right of possession and use of the |
313 | -User Product is transferred to the recipient in perpetuity or for a |
314 | -fixed term (regardless of how the transaction is characterized), the |
315 | -Corresponding Source conveyed under this section must be accompanied |
316 | -by the Installation Information. But this requirement does not apply |
317 | -if neither you nor any third party retains the ability to install |
318 | -modified object code on the User Product (for example, the work has |
319 | -been installed in ROM). |
320 | - |
321 | - The requirement to provide Installation Information does not include a |
322 | -requirement to continue to provide support service, warranty, or updates |
323 | -for a work that has been modified or installed by the recipient, or for |
324 | -the User Product in which it has been modified or installed. Access to a |
325 | -network may be denied when the modification itself materially and |
326 | -adversely affects the operation of the network or violates the rules and |
327 | -protocols for communication across the network. |
328 | - |
329 | - Corresponding Source conveyed, and Installation Information provided, |
330 | -in accord with this section must be in a format that is publicly |
331 | -documented (and with an implementation available to the public in |
332 | -source code form), and must require no special password or key for |
333 | -unpacking, reading or copying. |
334 | - |
335 | - 7. Additional Terms. |
336 | - |
337 | - "Additional permissions" are terms that supplement the terms of this |
338 | -License by making exceptions from one or more of its conditions. |
339 | -Additional permissions that are applicable to the entire Program shall |
340 | -be treated as though they were included in this License, to the extent |
341 | -that they are valid under applicable law. If additional permissions |
342 | -apply only to part of the Program, that part may be used separately |
343 | -under those permissions, but the entire Program remains governed by |
344 | -this License without regard to the additional permissions. |
345 | - |
346 | - When you convey a copy of a covered work, you may at your option |
347 | -remove any additional permissions from that copy, or from any part of |
348 | -it. (Additional permissions may be written to require their own |
349 | -removal in certain cases when you modify the work.) You may place |
350 | -additional permissions on material, added by you to a covered work, |
351 | -for which you have or can give appropriate copyright permission. |
352 | - |
353 | - Notwithstanding any other provision of this License, for material you |
354 | -add to a covered work, you may (if authorized by the copyright holders of |
355 | -that material) supplement the terms of this License with terms: |
356 | - |
357 | - a) Disclaiming warranty or limiting liability differently from the |
358 | - terms of sections 15 and 16 of this License; or |
359 | - |
360 | - b) Requiring preservation of specified reasonable legal notices or |
361 | - author attributions in that material or in the Appropriate Legal |
362 | - Notices displayed by works containing it; or |
363 | - |
364 | - c) Prohibiting misrepresentation of the origin of that material, or |
365 | - requiring that modified versions of such material be marked in |
366 | - reasonable ways as different from the original version; or |
367 | - |
368 | - d) Limiting the use for publicity purposes of names of licensors or |
369 | - authors of the material; or |
370 | - |
371 | - e) Declining to grant rights under trademark law for use of some |
372 | - trade names, trademarks, or service marks; or |
373 | - |
374 | - f) Requiring indemnification of licensors and authors of that |
375 | - material by anyone who conveys the material (or modified versions of |
376 | - it) with contractual assumptions of liability to the recipient, for |
377 | - any liability that these contractual assumptions directly impose on |
378 | - those licensors and authors. |
379 | - |
380 | - All other non-permissive additional terms are considered "further |
381 | -restrictions" within the meaning of section 10. If the Program as you |
382 | -received it, or any part of it, contains a notice stating that it is |
383 | -governed by this License along with a term that is a further |
384 | -restriction, you may remove that term. If a license document contains |
385 | -a further restriction but permits relicensing or conveying under this |
386 | -License, you may add to a covered work material governed by the terms |
387 | -of that license document, provided that the further restriction does |
388 | -not survive such relicensing or conveying. |
389 | - |
390 | - If you add terms to a covered work in accord with this section, you |
391 | -must place, in the relevant source files, a statement of the |
392 | -additional terms that apply to those files, or a notice indicating |
393 | -where to find the applicable terms. |
394 | - |
395 | - Additional terms, permissive or non-permissive, may be stated in the |
396 | -form of a separately written license, or stated as exceptions; |
397 | -the above requirements apply either way. |
398 | - |
399 | - 8. Termination. |
400 | - |
401 | - You may not propagate or modify a covered work except as expressly |
402 | -provided under this License. Any attempt otherwise to propagate or |
403 | -modify it is void, and will automatically terminate your rights under |
404 | -this License (including any patent licenses granted under the third |
405 | -paragraph of section 11). |
406 | - |
407 | - However, if you cease all violation of this License, then your |
408 | -license from a particular copyright holder is reinstated (a) |
409 | -provisionally, unless and until the copyright holder explicitly and |
410 | -finally terminates your license, and (b) permanently, if the copyright |
411 | -holder fails to notify you of the violation by some reasonable means |
412 | -prior to 60 days after the cessation. |
413 | - |
414 | - Moreover, your license from a particular copyright holder is |
415 | -reinstated permanently if the copyright holder notifies you of the |
416 | -violation by some reasonable means, this is the first time you have |
417 | -received notice of violation of this License (for any work) from that |
418 | -copyright holder, and you cure the violation prior to 30 days after |
419 | -your receipt of the notice. |
420 | - |
421 | - Termination of your rights under this section does not terminate the |
422 | -licenses of parties who have received copies or rights from you under |
423 | -this License. If your rights have been terminated and not permanently |
424 | -reinstated, you do not qualify to receive new licenses for the same |
425 | -material under section 10. |
426 | - |
427 | - 9. Acceptance Not Required for Having Copies. |
428 | - |
429 | - You are not required to accept this License in order to receive or |
430 | -run a copy of the Program. Ancillary propagation of a covered work |
431 | -occurring solely as a consequence of using peer-to-peer transmission |
432 | -to receive a copy likewise does not require acceptance. However, |
433 | -nothing other than this License grants you permission to propagate or |
434 | -modify any covered work. These actions infringe copyright if you do |
435 | -not accept this License. Therefore, by modifying or propagating a |
436 | -covered work, you indicate your acceptance of this License to do so. |
437 | - |
438 | - 10. Automatic Licensing of Downstream Recipients. |
439 | - |
440 | - Each time you convey a covered work, the recipient automatically |
441 | -receives a license from the original licensors, to run, modify and |
442 | -propagate that work, subject to this License. You are not responsible |
443 | -for enforcing compliance by third parties with this License. |
444 | - |
445 | - An "entity transaction" is a transaction transferring control of an |
446 | -organization, or substantially all assets of one, or subdividing an |
447 | -organization, or merging organizations. If propagation of a covered |
448 | -work results from an entity transaction, each party to that |
449 | -transaction who receives a copy of the work also receives whatever |
450 | -licenses to the work the party's predecessor in interest had or could |
451 | -give under the previous paragraph, plus a right to possession of the |
452 | -Corresponding Source of the work from the predecessor in interest, if |
453 | -the predecessor has it or can get it with reasonable efforts. |
454 | - |
455 | - You may not impose any further restrictions on the exercise of the |
456 | -rights granted or affirmed under this License. For example, you may |
457 | -not impose a license fee, royalty, or other charge for exercise of |
458 | -rights granted under this License, and you may not initiate litigation |
459 | -(including a cross-claim or counterclaim in a lawsuit) alleging that |
460 | -any patent claim is infringed by making, using, selling, offering for |
461 | -sale, or importing the Program or any portion of it. |
462 | - |
463 | - 11. Patents. |
464 | - |
465 | - A "contributor" is a copyright holder who authorizes use under this |
466 | -License of the Program or a work on which the Program is based. The |
467 | -work thus licensed is called the contributor's "contributor version". |
468 | - |
469 | - A contributor's "essential patent claims" are all patent claims |
470 | -owned or controlled by the contributor, whether already acquired or |
471 | -hereafter acquired, that would be infringed by some manner, permitted |
472 | -by this License, of making, using, or selling its contributor version, |
473 | -but do not include claims that would be infringed only as a |
474 | -consequence of further modification of the contributor version. For |
475 | -purposes of this definition, "control" includes the right to grant |
476 | -patent sublicenses in a manner consistent with the requirements of |
477 | -this License. |
478 | - |
479 | - Each contributor grants you a non-exclusive, worldwide, royalty-free |
480 | -patent license under the contributor's essential patent claims, to |
481 | -make, use, sell, offer for sale, import and otherwise run, modify and |
482 | -propagate the contents of its contributor version. |
483 | - |
484 | - In the following three paragraphs, a "patent license" is any express |
485 | -agreement or commitment, however denominated, not to enforce a patent |
486 | -(such as an express permission to practice a patent or covenant not to |
487 | -sue for patent infringement). To "grant" such a patent license to a |
488 | -party means to make such an agreement or commitment not to enforce a |
489 | -patent against the party. |
490 | - |
491 | - If you convey a covered work, knowingly relying on a patent license, |
492 | -and the Corresponding Source of the work is not available for anyone |
493 | -to copy, free of charge and under the terms of this License, through a |
494 | -publicly available network server or other readily accessible means, |
495 | -then you must either (1) cause the Corresponding Source to be so |
496 | -available, or (2) arrange to deprive yourself of the benefit of the |
497 | -patent license for this particular work, or (3) arrange, in a manner |
498 | -consistent with the requirements of this License, to extend the patent |
499 | -license to downstream recipients. "Knowingly relying" means you have |
500 | -actual knowledge that, but for the patent license, your conveying the |
501 | -covered work in a country, or your recipient's use of the covered work |
502 | -in a country, would infringe one or more identifiable patents in that |
503 | -country that you have reason to believe are valid. |
504 | - |
505 | - If, pursuant to or in connection with a single transaction or |
506 | -arrangement, you convey, or propagate by procuring conveyance of, a |
507 | -covered work, and grant a patent license to some of the parties |
508 | -receiving the covered work authorizing them to use, propagate, modify |
509 | -or convey a specific copy of the covered work, then the patent license |
510 | -you grant is automatically extended to all recipients of the covered |
511 | -work and works based on it. |
512 | - |
513 | - A patent license is "discriminatory" if it does not include within |
514 | -the scope of its coverage, prohibits the exercise of, or is |
515 | -conditioned on the non-exercise of one or more of the rights that are |
516 | -specifically granted under this License. You may not convey a covered |
517 | -work if you are a party to an arrangement with a third party that is |
518 | -in the business of distributing software, under which you make payment |
519 | -to the third party based on the extent of your activity of conveying |
520 | -the work, and under which the third party grants, to any of the |
521 | -parties who would receive the covered work from you, a discriminatory |
522 | -patent license (a) in connection with copies of the covered work |
523 | -conveyed by you (or copies made from those copies), or (b) primarily |
524 | -for and in connection with specific products or compilations that |
525 | -contain the covered work, unless you entered into that arrangement, |
526 | -or that patent license was granted, prior to 28 March 2007. |
527 | - |
528 | - Nothing in this License shall be construed as excluding or limiting |
529 | -any implied license or other defenses to infringement that may |
530 | -otherwise be available to you under applicable patent law. |
531 | - |
532 | - 12. No Surrender of Others' Freedom. |
533 | - |
534 | - If conditions are imposed on you (whether by court order, agreement or |
535 | -otherwise) that contradict the conditions of this License, they do not |
536 | -excuse you from the conditions of this License. If you cannot convey a |
537 | -covered work so as to satisfy simultaneously your obligations under this |
538 | -License and any other pertinent obligations, then as a consequence you may |
539 | -not convey it at all. For example, if you agree to terms that obligate you |
540 | -to collect a royalty for further conveying from those to whom you convey |
541 | -the Program, the only way you could satisfy both those terms and this |
542 | -License would be to refrain entirely from conveying the Program. |
543 | - |
544 | - 13. Remote Network Interaction; Use with the GNU General Public License. |
545 | - |
546 | - Notwithstanding any other provision of this License, if you modify the |
547 | -Program, your modified version must prominently offer all users |
548 | -interacting with it remotely through a computer network (if your version |
549 | -supports such interaction) an opportunity to receive the Corresponding |
550 | -Source of your version by providing access to the Corresponding Source |
551 | -from a network server at no charge, through some standard or customary |
552 | -means of facilitating copying of software. This Corresponding Source |
553 | -shall include the Corresponding Source for any work covered by version 3 |
554 | -of the GNU General Public License that is incorporated pursuant to the |
555 | -following paragraph. |
556 | - |
557 | - Notwithstanding any other provision of this License, you have |
558 | -permission to link or combine any covered work with a work licensed |
559 | -under version 3 of the GNU General Public License into a single |
560 | -combined work, and to convey the resulting work. The terms of this |
561 | -License will continue to apply to the part which is the covered work, |
562 | -but the work with which it is combined will remain governed by version |
563 | -3 of the GNU General Public License. |
564 | - |
565 | - 14. Revised Versions of this License. |
566 | - |
567 | - The Free Software Foundation may publish revised and/or new versions of |
568 | -the GNU Affero General Public License from time to time. Such new versions |
569 | -will be similar in spirit to the present version, but may differ in detail to |
570 | -address new problems or concerns. |
571 | - |
572 | - Each version is given a distinguishing version number. If the |
573 | -Program specifies that a certain numbered version of the GNU Affero General |
574 | -Public License "or any later version" applies to it, you have the |
575 | -option of following the terms and conditions either of that numbered |
576 | -version or of any later version published by the Free Software |
577 | -Foundation. If the Program does not specify a version number of the |
578 | -GNU Affero General Public License, you may choose any version ever published |
579 | -by the Free Software Foundation. |
580 | - |
581 | - If the Program specifies that a proxy can decide which future |
582 | -versions of the GNU Affero General Public License can be used, that proxy's |
583 | -public statement of acceptance of a version permanently authorizes you |
584 | -to choose that version for the Program. |
585 | - |
586 | - Later license versions may give you additional or different |
587 | -permissions. However, no additional obligations are imposed on any |
588 | -author or copyright holder as a result of your choosing to follow a |
589 | -later version. |
590 | - |
591 | - 15. Disclaimer of Warranty. |
592 | - |
593 | - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY |
594 | -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT |
595 | -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY |
596 | -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, |
597 | -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
598 | -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM |
599 | -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF |
600 | -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. |
601 | - |
602 | - 16. Limitation of Liability. |
603 | - |
604 | - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
605 | -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS |
606 | -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY |
607 | -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE |
608 | -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF |
609 | -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD |
610 | -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), |
611 | -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF |
612 | -SUCH DAMAGES. |
613 | - |
614 | - 17. Interpretation of Sections 15 and 16. |
615 | - |
616 | - If the disclaimer of warranty and limitation of liability provided |
617 | -above cannot be given local legal effect according to their terms, |
618 | -reviewing courts shall apply local law that most closely approximates |
619 | -an absolute waiver of all civil liability in connection with the |
620 | -Program, unless a warranty or assumption of liability accompanies a |
621 | -copy of the Program in return for a fee. |
622 | - |
623 | - END OF TERMS AND CONDITIONS |
624 | - |
625 | - How to Apply These Terms to Your New Programs |
626 | - |
627 | - If you develop a new program, and you want it to be of the greatest |
628 | -possible use to the public, the best way to achieve this is to make it |
629 | -free software which everyone can redistribute and change under these terms. |
630 | - |
631 | - To do so, attach the following notices to the program. It is safest |
632 | -to attach them to the start of each source file to most effectively |
633 | -state the exclusion of warranty; and each file should have at least |
634 | -the "copyright" line and a pointer to where the full notice is found. |
635 | - |
636 | - <one line to give the program's name and a brief idea of what it does.> |
637 | - Copyright (C) <year> <name of author> |
638 | - |
639 | - This program is free software: you can redistribute it and/or modify |
640 | - it under the terms of the GNU Affero General Public License as published by |
641 | - the Free Software Foundation, either version 3 of the License, or |
642 | - (at your option) any later version. |
643 | - |
644 | - This program is distributed in the hope that it will be useful, |
645 | - but WITHOUT ANY WARRANTY; without even the implied warranty of |
646 | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
647 | - GNU Affero General Public License for more details. |
648 | - |
649 | - You should have received a copy of the GNU Affero General Public License |
650 | - along with this program. If not, see <http://www.gnu.org/licenses/>. |
651 | - |
652 | -Also add information on how to contact you by electronic and paper mail. |
653 | - |
654 | - If your software can interact with users remotely through a computer |
655 | -network, you should also make sure that it provides a way for users to |
656 | -get its source. For example, if your program is a web application, its |
657 | -interface could display a "Source" link that leads users to an archive |
658 | -of the code. There are many ways you could offer source, and different |
659 | -solutions will be better for different programs; see section 13 for the |
660 | -specific requirements. |
661 | - |
662 | - You should also get your employer (if you work as a programmer) or school, |
663 | -if any, to sign a "copyright disclaimer" for the program, if necessary. |
664 | -For more information on this, and how to apply and follow the GNU AGPL, see |
665 | -<http://www.gnu.org/licenses/>. |
666 | |
667 | === removed file 'Makefile' |
668 | --- Makefile 2018-06-25 18:03:13 +0000 |
669 | +++ Makefile 1970-01-01 00:00:00 +0000 |
670 | @@ -1,41 +0,0 @@ |
671 | -TENV := ./tools/tenv |
672 | - |
673 | -EXDATA_SIGN ?= 1 |
674 | -ifeq ($(EXDATA_SIGN),1) |
675 | - EXDATA_SIGN_ARG := --sign |
676 | -endif |
677 | - |
678 | -build: |
679 | - @echo nothing to do for $@ |
680 | - |
681 | -test: test2 test3 flake8 |
682 | - |
683 | -test3: examples-sign |
684 | - SIMPLESTREAMS_BZR=1 $(TENV) nosetests3 -v tests/ |
685 | -test2: examples-sign |
686 | - SIMPLESTREAMS_BZR=1 $(TENV) nosetests -v tests/ |
687 | - |
688 | -flake8: |
689 | - # any means run via 'flake8' or 'python3 -m flake8' |
690 | - ./tools/run-flake8 any |
691 | - |
692 | -exdata: exdata/fake exdata/data |
693 | - |
694 | -exdata/data: exdata-query gnupg |
695 | - $(TENV) env REAL_DATA=1 ./tools/make-test-data $(EXDATA_SIGN_ARG) exdata-query/ exdata/data |
696 | - |
697 | -exdata/fake: exdata-query gnupg |
698 | - $(TENV) ./tools/make-test-data $(EXDATA_SIGN_ARG) exdata-query/ exdata/fake |
699 | - |
700 | -exdata-query: |
701 | - rsync -avz --delete --exclude "FILE_DATA_CACHE" --exclude ".bzr/*" cloud-images.ubuntu.com::uec-images/query/ exdata-query |
702 | - |
703 | -gnupg: gnupg/README |
704 | - |
705 | -gnupg/README: |
706 | - ./tools/create-gpgdir |
707 | - |
708 | -examples-sign: gnupg/README |
709 | - $(TENV) ./tools/sign-examples |
710 | - |
711 | -.PHONY: exdata/fake exdata/data exdata-query examples-sign flake8 test test2 test3 |
712 | |
713 | === modified file 'README.txt' |
714 | --- README.txt 2018-06-25 18:03:13 +0000 |
715 | +++ README.txt 2018-06-27 19:28:50 +0000 |
716 | @@ -7,5 +7,5 @@ |
717 | ** use: ** |
718 | ** git clone https://git.launchpad.net/simplestreams ** |
719 | ** ** |
720 | -** This bzr repository is expected to be removed by 2018-07-31 ** |
721 | +** This bzr repository is no longer functional. ** |
722 | **************************************************************************** |
723 | |
724 | === removed directory 'bin' |
725 | === removed file 'bin/json2streams' |
726 | --- bin/json2streams 2015-11-04 17:17:43 +0000 |
727 | +++ bin/json2streams 1970-01-01 00:00:00 +0000 |
728 | @@ -1,9 +0,0 @@ |
729 | -#!/usr/bin/env python3 |
730 | -# Copyright (C) 2013, 2015 Canonical Ltd. |
731 | - |
732 | -import sys |
733 | -from simplestreams.json2streams import main |
734 | - |
735 | - |
736 | -if __name__ == '__main__': |
737 | - sys.exit(main()) |
738 | |
739 | === removed file 'bin/sstream-mirror' |
740 | --- bin/sstream-mirror 2015-10-29 18:21:50 +0000 |
741 | +++ bin/sstream-mirror 1970-01-01 00:00:00 +0000 |
742 | @@ -1,159 +0,0 @@ |
743 | -#!/usr/bin/python3 |
744 | -# Copyright (C) 2013 Canonical Ltd. |
745 | -# |
746 | -# Author: Scott Moser <scott.moser@canonical.com> |
747 | -# |
748 | -# Simplestreams is free software: you can redistribute it and/or modify it |
749 | -# under the terms of the GNU Affero General Public License as published by |
750 | -# the Free Software Foundation, either version 3 of the License, or (at your |
751 | -# option) any later version. |
752 | -# |
753 | -# Simplestreams is distributed in the hope that it will be useful, but |
754 | -# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
755 | -# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public |
756 | -# License for more details. |
757 | -# |
758 | -# You should have received a copy of the GNU Affero General Public License |
759 | -# along with Simplestreams. If not, see <http://www.gnu.org/licenses/>. |
760 | -import argparse |
761 | -import sys |
762 | - |
763 | -from simplestreams import filters |
764 | -from simplestreams import log |
765 | -from simplestreams import mirrors |
766 | -from simplestreams import objectstores |
767 | -from simplestreams import util |
768 | - |
769 | - |
770 | -class DotProgress(object): |
771 | - def __init__(self, expected=None, columns=80): |
772 | - self.curpath = None |
773 | - self.printed = None |
774 | - self.expected = expected |
775 | - self.bytes_read = 0 |
776 | - self.columns = columns |
777 | - |
778 | - def write_progress(self, path, cur, total): |
779 | - if self.curpath != path: |
780 | - self.printed = 0 |
781 | - self.curpath = path |
782 | - status = "" |
783 | - if self.expected: |
784 | - status = (" %02s%%" % |
785 | - (int(self.bytes_read * 100 / self.expected))) |
786 | - sys.stderr.write('=> %s [%s]%s\n' % (path, total, status)) |
787 | - |
788 | - if cur == total: |
789 | - sys.stderr.write("\n") |
790 | - if self.expected: |
791 | - self.bytes_read += total |
792 | - return |
793 | - |
794 | - toprint = int(cur * self.columns / total) - self.printed |
795 | - if toprint <= 0: |
796 | - return |
797 | - sys.stderr.write('.' * toprint) |
798 | - sys.stderr.flush() |
799 | - self.printed += toprint |
800 | - |
801 | - |
802 | -def main(): |
803 | - parser = argparse.ArgumentParser() |
804 | - |
805 | - parser.add_argument('--keep', action='store_true', default=False, |
806 | - help='keep items in target up to MAX items ' |
807 | - 'even after they have fallen out of the source') |
808 | - parser.add_argument('--max', type=int, default=None, |
809 | - help='store at most MAX items in the target') |
810 | - parser.add_argument('--path', default=None, |
811 | - help='sync from index or products file in mirror') |
812 | - parser.add_argument('--no-item-download', action='store_true', |
813 | - default=False, |
814 | - help='do not download items with a "path"') |
815 | - parser.add_argument('--dry-run', action='store_true', default=False, |
816 | - help='only report what would be done') |
817 | - parser.add_argument('--progress', action='store_true', default=False, |
818 | - help='show progress for downloading files') |
819 | - parser.add_argument('--mirror', action='append', default=[], |
820 | - dest="mirrors", |
821 | - help='additional mirrors to find referenced files') |
822 | - |
823 | - parser.add_argument('--verbose', '-v', action='count', default=0) |
824 | - parser.add_argument('--log-file', default=sys.stderr, |
825 | - type=argparse.FileType('w')) |
826 | - |
827 | - parser.add_argument('--keyring', action='store', default=None, |
828 | - help='keyring to be specified to gpg via --keyring') |
829 | - parser.add_argument('--no-verify', '-U', action='store_false', |
830 | - dest='verify', default=True, |
831 | - help="do not gpg check signed json files") |
832 | - parser.add_argument('--no-checksumming-reader', action='store_false', |
833 | - dest='checksumming_reader', default=True, |
834 | - help=("do not call 'insert_item' with a reader" |
835 | - " that does checksumming.")) |
836 | - |
837 | - parser.add_argument('source_mirror') |
838 | - parser.add_argument('output_d') |
839 | - parser.add_argument('filters', nargs='*', default=[]) |
840 | - |
841 | - args = parser.parse_args() |
842 | - |
843 | - (mirror_url, initial_path) = util.path_from_mirror_url(args.source_mirror, |
844 | - args.path) |
845 | - |
846 | - def policy(content, path): |
847 | - if initial_path.endswith('sjson'): |
848 | - return util.read_signed(content, |
849 | - keyring=args.keyring, |
850 | - checked=args.verify) |
851 | - else: |
852 | - return content |
853 | - |
854 | - filter_list = filters.get_filters(args.filters) |
855 | - mirror_config = {'max_items': args.max, 'keep_items': args.keep, |
856 | - 'filters': filter_list, |
857 | - 'item_download': not args.no_item_download, |
858 | - 'checksumming_reader': args.checksumming_reader} |
859 | - |
860 | - level = (log.ERROR, log.INFO, log.DEBUG)[min(args.verbose, 2)] |
861 | - log.basicConfig(stream=args.log_file, level=level) |
862 | - |
863 | - smirror = mirrors.UrlMirrorReader(mirror_url, mirrors=args.mirrors, |
864 | - policy=policy) |
865 | - tstore = objectstores.FileStore(args.output_d) |
866 | - |
867 | - drmirror = mirrors.DryRunMirrorWriter(config=mirror_config, |
868 | - objectstore=tstore) |
869 | - drmirror.sync(smirror, initial_path) |
870 | - |
871 | - def print_diff(char, items): |
872 | - for pedigree, path, size in items: |
873 | - fmt = "{char} {pedigree} {path} {size} Mb\n" |
874 | - size = int(size / (1024 * 1024)) |
875 | - sys.stderr.write(fmt.format( |
876 | - char=char, pedigree=' '.join(pedigree), path=path, size=size)) |
877 | - |
878 | - print_diff('+', drmirror.downloading) |
879 | - print_diff('-', drmirror.removing) |
880 | - sys.stderr.write("%d Mb change\n" % (drmirror.size / (1024 * 1024))) |
881 | - |
882 | - if args.dry_run: |
883 | - return True |
884 | - |
885 | - if args.progress: |
886 | - callback = DotProgress(expected=drmirror.size).write_progress |
887 | - else: |
888 | - callback = None |
889 | - |
890 | - tstore = objectstores.FileStore(args.output_d, complete_callback=callback) |
891 | - |
892 | - tmirror = mirrors.ObjectFilterMirror(config=mirror_config, |
893 | - objectstore=tstore) |
894 | - |
895 | - tmirror.sync(smirror, initial_path) |
896 | - |
897 | - |
898 | -if __name__ == '__main__': |
899 | - main() |
900 | - |
901 | -# vi: ts=4 expandtab syntax=python |
902 | |
903 | === removed file 'bin/sstream-query' |
904 | --- bin/sstream-query 2016-11-28 14:54:35 +0000 |
905 | +++ bin/sstream-query 1970-01-01 00:00:00 +0000 |
906 | @@ -1,150 +0,0 @@ |
907 | -#!/usr/bin/python3 |
908 | -# Copyright (C) 2013 Canonical Ltd. |
909 | -# |
910 | -# Author: Scott Moser <scott.moser@canonical.com> |
911 | -# |
912 | -# Simplestreams is free software: you can redistribute it and/or modify it |
913 | -# under the terms of the GNU Affero General Public License as published by |
914 | -# the Free Software Foundation, either version 3 of the License, or (at your |
915 | -# option) any later version. |
916 | -# |
917 | -# Simplestreams is distributed in the hope that it will be useful, but |
918 | -# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
919 | -# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public |
920 | -# License for more details. |
921 | -# |
922 | -# You should have received a copy of the GNU Affero General Public License |
923 | -# along with Simplestreams. If not, see <http://www.gnu.org/licenses/>. |
924 | - |
925 | -from simplestreams import filters |
926 | -from simplestreams import mirrors |
927 | -from simplestreams import log |
928 | -from simplestreams import util |
929 | - |
930 | -import argparse |
931 | -import errno |
932 | -import json |
933 | -import pprint |
934 | -import signal |
935 | -import sys |
936 | - |
937 | -FORMAT_PRETTY = "PRETTY" |
938 | -FORMAT_JSON = "JSON" |
939 | - |
940 | - |
941 | -def warn(msg): |
942 | - sys.stderr.write("WARN: %s" % msg) |
943 | - |
944 | - |
945 | -class FilterMirror(mirrors.BasicMirrorWriter): |
946 | - def __init__(self, config=None): |
947 | - super(FilterMirror, self).__init__(config=config) |
948 | - if config is None: |
949 | - config = {} |
950 | - self.config = config |
951 | - self.filters = config.get('filters', []) |
952 | - outfmt = config.get('output_format') |
953 | - if not outfmt: |
954 | - outfmt = "%s" |
955 | - self.output_format = outfmt |
956 | - self.json_entries = [] |
957 | - |
958 | - def load_products(self, path=None, content_id=None): |
959 | - return {'content_id': content_id, 'products': {}} |
960 | - |
961 | - def filter_item(self, data, src, target, pedigree): |
962 | - return filters.filter_item(self.filters, data, src, pedigree) |
963 | - |
964 | - def insert_item(self, data, src, target, pedigree, contentsource): |
965 | - # src and target are top level products:1.0 |
966 | - # data is src['products'][ped[0]]['versions'][ped[1]]['items'][ped[2]] |
967 | - # contentsource is a ContentSource if 'path' exists in data or None |
968 | - data = util.products_exdata(src, pedigree) |
969 | - if 'path' in data: |
970 | - data.update({'item_url': contentsource.url}) |
971 | - |
972 | - if self.output_format == FORMAT_PRETTY: |
973 | - pprint.pprint(data) |
974 | - elif self.output_format == FORMAT_JSON: |
975 | - self.json_entries.append(data) |
976 | - else: |
977 | - try: |
978 | - print(self.output_format % (data)) |
979 | - except KeyError as e: |
980 | - sys.stderr.write("output format failed. Missing %s\n" % e.args) |
981 | - sys.stderr.write("item: %s\n" % data) |
982 | - |
983 | - |
984 | -def main(): |
985 | - parser = argparse.ArgumentParser() |
986 | - |
987 | - parser.add_argument('--max', type=int, default=None, dest='max_items', |
988 | - help='store at most MAX items in the target') |
989 | - |
990 | - parser.add_argument('--path', default=None, |
991 | - help='sync from index or products file in mirror') |
992 | - |
993 | - fmt_group = parser.add_mutually_exclusive_group() |
994 | - fmt_group.add_argument('--output-format', '-o', action='store', |
995 | - dest='output_format', default=None, |
996 | - help="specify output format per python str.format") |
997 | - fmt_group.add_argument('--pretty', action='store_const', |
998 | - const=FORMAT_PRETTY, dest='output_format', |
999 | - help="pretty print output") |
1000 | - fmt_group.add_argument('--json', action='store_const', |
1001 | - const=FORMAT_JSON, dest='output_format', |
1002 | - help="output in JSON as a list of dicts.") |
1003 | - parser.add_argument('--verbose', '-v', action='count', default=0) |
1004 | - parser.add_argument('--log-file', default=sys.stderr, |
1005 | - type=argparse.FileType('w')) |
1006 | - |
1007 | - parser.add_argument('--keyring', action='store', default=None, |
1008 | - help='keyring to be specified to gpg via --keyring') |
1009 | - parser.add_argument('--no-verify', '-U', action='store_false', |
1010 | - dest='verify', default=True, |
1011 | - help="do not gpg check signed json files") |
1012 | - |
1013 | - parser.add_argument('mirror_url') |
1014 | - parser.add_argument('filters', nargs='*', default=[]) |
1015 | - |
1016 | - cmdargs = parser.parse_args() |
1017 | - |
1018 | - (mirror_url, path) = util.path_from_mirror_url(cmdargs.mirror_url, |
1019 | - cmdargs.path) |
1020 | - |
1021 | - level = (log.ERROR, log.INFO, log.DEBUG)[min(cmdargs.verbose, 2)] |
1022 | - log.basicConfig(stream=cmdargs.log_file, level=level) |
1023 | - |
1024 | - initial_path = path |
1025 | - |
1026 | - def policy(content, path): |
1027 | - if initial_path.endswith('sjson'): |
1028 | - return util.read_signed(content, |
1029 | - keyring=cmdargs.keyring, |
1030 | - checked=cmdargs.verify) |
1031 | - else: |
1032 | - return content |
1033 | - |
1034 | - smirror = mirrors.UrlMirrorReader(mirror_url, policy=policy) |
1035 | - |
1036 | - filter_list = filters.get_filters(cmdargs.filters) |
1037 | - cfg = {'max_items': cmdargs.max_items, |
1038 | - 'filters': filter_list, |
1039 | - 'output_format': cmdargs.output_format} |
1040 | - |
1041 | - tmirror = FilterMirror(config=cfg) |
1042 | - try: |
1043 | - tmirror.sync(smirror, path) |
1044 | - if tmirror.output_format == FORMAT_JSON: |
1045 | - print(json.dumps(tmirror.json_entries, indent=2, sort_keys=True, |
1046 | - separators=(',', ': '))) |
1047 | - except IOError as e: |
1048 | - if e.errno == errno.EPIPE: |
1049 | - sys.exit(0x80 | signal.SIGPIPE) |
1050 | - raise |
1051 | - |
1052 | - |
1053 | -if __name__ == '__main__': |
1054 | - main() |
1055 | - |
1056 | -# vi: ts=4 expandtab syntax=python |
1057 | |
1058 | === removed file 'bin/sstream-sync' |
1059 | --- bin/sstream-sync 2016-11-28 14:54:35 +0000 |
1060 | +++ bin/sstream-sync 1970-01-01 00:00:00 +0000 |
1061 | @@ -1,171 +0,0 @@ |
1062 | -#!/usr/bin/python3 |
1063 | -# Copyright (C) 2013 Canonical Ltd. |
1064 | -# |
1065 | -# Author: Scott Moser <scott.moser@canonical.com> |
1066 | -# |
1067 | -# Simplestreams is free software: you can redistribute it and/or modify it |
1068 | -# under the terms of the GNU Affero General Public License as published by |
1069 | -# the Free Software Foundation, either version 3 of the License, or (at your |
1070 | -# option) any later version. |
1071 | -# |
1072 | -# Simplestreams is distributed in the hope that it will be useful, but |
1073 | -# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
1074 | -# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public |
1075 | -# License for more details. |
1076 | -# |
1077 | -# You should have received a copy of the GNU Affero General Public License |
1078 | -# along with Simplestreams. If not, see <http://www.gnu.org/licenses/>. |
1079 | - |
1080 | -from simplestreams import mirrors |
1081 | -from simplestreams.mirrors import command_hook |
1082 | -from simplestreams import log |
1083 | -from simplestreams import util |
1084 | - |
1085 | -import argparse |
1086 | -import errno |
1087 | -import os |
1088 | -import signal |
1089 | -import sys |
1090 | -import yaml |
1091 | - |
1092 | - |
1093 | -def which(program): |
1094 | - def is_exe(fpath): |
1095 | - return os.path.isfile(fpath) and os.access(fpath, os.X_OK) |
1096 | - |
1097 | - fpath, _fname = os.path.split(program) |
1098 | - if fpath: |
1099 | - if is_exe(program): |
1100 | - return program |
1101 | - else: |
1102 | - for path in os.environ["PATH"].split(os.pathsep): |
1103 | - path = path.strip('"') |
1104 | - exe_file = os.path.join(path, program) |
1105 | - if is_exe(exe_file): |
1106 | - return exe_file |
1107 | - |
1108 | - return None |
1109 | - |
1110 | - |
1111 | -def warn(msg): |
1112 | - sys.stderr.write("WARN: %s" % msg) |
1113 | - |
1114 | - |
1115 | -def main(): |
1116 | - parser = argparse.ArgumentParser() |
1117 | - defhook = command_hook.DEFAULT_HOOK_NAME |
1118 | - |
1119 | - hooks = [("--hook-%s" % hook.replace("_", "-"), hook, False) |
1120 | - for hook in command_hook.HOOK_NAMES] |
1121 | - hooks.append(('--hook', defhook, False,)) |
1122 | - |
1123 | - parser.add_argument('--config', '-c', |
1124 | - help='read config file', |
1125 | - type=argparse.FileType('rb')) |
1126 | - |
1127 | - for (argname, cfgname, _required) in hooks: |
1128 | - parser.add_argument(argname, dest=cfgname, required=False) |
1129 | - |
1130 | - parser.add_argument('--keep', action='store_true', default=False, |
1131 | - dest='keep_items', |
1132 | - help='keep items in target up to MAX items ' |
1133 | - 'even after they have fallen out of the source') |
1134 | - parser.add_argument('--max', type=int, default=None, dest='max_items', |
1135 | - help='store at most MAX items in the target') |
1136 | - parser.add_argument('--item-skip-download', action='store_true', |
1137 | - default=False, |
1138 | - help='Do not download items that are to be inserted.') |
1139 | - parser.add_argument('--delete', action='store_true', default=False, |
1140 | - dest='delete_filtered_items', |
1141 | - help='remove filtered items from the target') |
1142 | - parser.add_argument('--path', default=None, |
1143 | - help='sync from index or products file in mirror') |
1144 | - |
1145 | - parser.add_argument('--verbose', '-v', action='count', default=0) |
1146 | - parser.add_argument('--log-file', default=sys.stderr, |
1147 | - type=argparse.FileType('w')) |
1148 | - |
1149 | - parser.add_argument('--keyring', action='store', default=None, |
1150 | - help='keyring to be specified to gpg via --keyring') |
1151 | - parser.add_argument('--no-verify', '-U', action='store_false', |
1152 | - dest='verify', default=True, |
1153 | - help="do not gpg check signed json files") |
1154 | - |
1155 | - parser.add_argument('mirror_url') |
1156 | - cmdargs = parser.parse_args() |
1157 | - |
1158 | - known_cfg = [('--item-skip-download', 'item_skip_download', False), |
1159 | - ('--max', 'max_items', False), |
1160 | - ('--keep', 'keep_items', False), |
1161 | - ('--delete', 'delete_filtered_items', False), |
1162 | - ('mirror_url', 'mirror_url', True), |
1163 | - ('--path', 'path', True)] |
1164 | - known_cfg.extend(hooks) |
1165 | - |
1166 | - cfg = {} |
1167 | - if cmdargs.config: |
1168 | - cfg = yaml.safe_load(cmdargs.config) |
1169 | - if not cfg: |
1170 | - cfg = {} |
1171 | - |
1172 | - known_names = [i[1] for i in known_cfg] |
1173 | - unknown = [key for key in cfg if key not in known_names] |
1174 | - if unknown: |
1175 | - warn("unknown keys in config: %s\n" % str(unknown)) |
1176 | - |
1177 | - missing = [] |
1178 | - fallback = cfg.get(defhook, getattr(cmdargs, defhook, None)) |
1179 | - |
1180 | - for (argname, cfgname, _required) in known_cfg: |
1181 | - val = getattr(cmdargs, cfgname) |
1182 | - if val is not None: |
1183 | - cfg[cfgname] = val |
1184 | - if val == "": |
1185 | - cfg[cfgname] = None |
1186 | - |
1187 | - if ((cfgname in command_hook.HOOK_NAMES or cfgname == defhook) and |
1188 | - cfg.get(cfgname) is not None): |
1189 | - if which(cfg[cfgname]) is None: |
1190 | - msg = "invalid input for %s. '%s' is not executable\n" |
1191 | - sys.stderr.write(msg % (argname, val)) |
1192 | - sys.exit(1) |
1193 | - |
1194 | - if (cfgname in command_hook.REQUIRED_FIELDS and |
1195 | - cfg.get(cfgname) is None and not fallback): |
1196 | - missing.append((argname, cfgname,)) |
1197 | - |
1198 | - pfm = util.path_from_mirror_url |
1199 | - (cfg['mirror_url'], cfg['path']) = pfm(cfg['mirror_url'], cfg.get('path')) |
1200 | - |
1201 | - if missing: |
1202 | - sys.stderr.write("must provide input for (--hook/%s for default):\n" |
1203 | - % defhook) |
1204 | - for (flag, cfg) in missing: |
1205 | - sys.stderr.write(" cmdline '%s' or cfgname '%s'\n" % (flag, cfg)) |
1206 | - sys.exit(1) |
1207 | - |
1208 | - level = (log.ERROR, log.INFO, log.DEBUG)[min(cmdargs.verbose, 2)] |
1209 | - log.basicConfig(stream=cmdargs.log_file, level=level) |
1210 | - |
1211 | - def policy(content, path): |
1212 | - if cfg['path'].endswith('sjson'): |
1213 | - return util.read_signed(content, |
1214 | - keyring=cmdargs.keyring, |
1215 | - checked=cmdargs.verify) |
1216 | - else: |
1217 | - return content |
1218 | - |
1219 | - smirror = mirrors.UrlMirrorReader(cfg['mirror_url'], policy=policy) |
1220 | - tmirror = command_hook.CommandHookMirror(config=cfg) |
1221 | - try: |
1222 | - tmirror.sync(smirror, cfg['path']) |
1223 | - except IOError as e: |
1224 | - if e.errno == errno.EPIPE: |
1225 | - sys.exit(0x80 | signal.SIGPIPE) |
1226 | - raise |
1227 | - |
1228 | - |
1229 | -if __name__ == '__main__': |
1230 | - main() |
1231 | - |
1232 | -# vi: ts=4 expandtab syntax=python |
1233 | |
1234 | === removed directory 'debian' |
1235 | === removed file 'debian/changelog.trunk' |
1236 | --- debian/changelog.trunk 2013-09-30 17:12:03 +0000 |
1237 | +++ debian/changelog.trunk 1970-01-01 00:00:00 +0000 |
1238 | @@ -1,6 +0,0 @@ |
1239 | -simplestreams (0.1.0~bzrREVNO-1~trunk1) UNRELEASED; urgency=low |
1240 | - |
1241 | - * Initial release |
1242 | - |
1243 | - -- Scott Moser <smoser@ubuntu.com> Tue, 26 Mar 2013 01:10:01 +0000 |
1244 | - |
1245 | |
1246 | === removed file 'debian/compat' |
1247 | --- debian/compat 2013-03-26 01:24:58 +0000 |
1248 | +++ debian/compat 1970-01-01 00:00:00 +0000 |
1249 | @@ -1,1 +0,0 @@ |
1250 | -7 |
1251 | |
1252 | === removed file 'debian/control' |
1253 | --- debian/control 2016-08-03 15:58:50 +0000 |
1254 | +++ debian/control 1970-01-01 00:00:00 +0000 |
1255 | @@ -1,70 +0,0 @@ |
1256 | -Source: simplestreams |
1257 | -Section: python |
1258 | -Priority: extra |
1259 | -Standards-Version: 3.9.6 |
1260 | -Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
1261 | -Build-Depends: debhelper (>= 7), |
1262 | - dh-python, |
1263 | - make, |
1264 | - python-all, |
1265 | - python-glanceclient, |
1266 | - python-keystoneclient, |
1267 | - python-mock, |
1268 | - python-nose, |
1269 | - python-requests (>= 1.1), |
1270 | - python-setuptools, |
1271 | - python-yaml, |
1272 | - python3, |
1273 | - python3-flake8, |
1274 | - python3-mock, |
1275 | - python3-nose, |
1276 | - python3-requests (>= 1.1), |
1277 | - python3-setuptools, |
1278 | - python3-yaml |
1279 | -Homepage: http://launchpad.net/simplestreams |
1280 | -X-Python-Version: >= 2.7 |
1281 | -X-Python3-Version: >= 3.2 |
1282 | - |
1283 | -Package: simplestreams |
1284 | -Architecture: all |
1285 | -Priority: extra |
1286 | -Depends: python3-simplestreams, |
1287 | - python3-yaml, |
1288 | - ${misc:Depends}, |
1289 | - ${python3:Depends} |
1290 | -Replaces: python-simplestreams (<= 0.1.0~bzr230) |
1291 | -Conflicts: python-simplestreams (<= 0.1.0~bzr230) |
1292 | -Description: Library and tools for using Simple Streams data |
1293 | - This package provides a client for interacting with simple |
1294 | - streams data as is produced to describe Ubuntu's cloud images. |
1295 | - |
1296 | -Package: python3-simplestreams |
1297 | -Architecture: all |
1298 | -Priority: extra |
1299 | -Depends: gnupg, ${misc:Depends}, ${python3:Depends} |
1300 | -Suggests: python3-requests (>= 1.1) |
1301 | -Description: Library and tools for using Simple Streams data |
1302 | - This package provides a client for interacting with simple |
1303 | - streams data as is produced to describe Ubuntu's cloud images. |
1304 | - |
1305 | -Package: python-simplestreams |
1306 | -Architecture: all |
1307 | -Priority: extra |
1308 | -Depends: gnupg, python-boto, ${misc:Depends}, ${python:Depends} |
1309 | -Suggests: python-requests (>= 1.1) |
1310 | -Description: Library and tools for using Simple Streams data |
1311 | - This package provides a client for interacting with simple |
1312 | - streams data as is produced to describe Ubuntu's cloud images. |
1313 | - |
1314 | -Package: python-simplestreams-openstack |
1315 | -Architecture: all |
1316 | -Priority: extra |
1317 | -Depends: python-glanceclient, |
1318 | - python-keystoneclient, |
1319 | - python-simplestreams, |
1320 | - python-swiftclient, |
1321 | - ${misc:Depends} |
1322 | -Description: Library and tools for using Simple Streams data |
1323 | - This package depends on libraries necessary to use the openstack dependent |
1324 | - functionality in simplestreams. That includes interacting with glance, |
1325 | - swift and keystone. |
1326 | |
1327 | === removed file 'debian/copyright' |
1328 | --- debian/copyright 2015-12-08 20:29:22 +0000 |
1329 | +++ debian/copyright 1970-01-01 00:00:00 +0000 |
1330 | @@ -1,17 +0,0 @@ |
1331 | -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ |
1332 | -Upstream-Name: simplestreams |
1333 | -Upstream-Contact: Scott Moser <scott.moser@canonical.com> |
1334 | -Source: https://launchpad.net/simplestreams |
1335 | - |
1336 | -Files: * |
1337 | -Copyright: 2013, Canonical Ltd. |
1338 | -License: AGPL-3 |
1339 | - GNU AFFERO GENERAL PUBLIC LICENSE |
1340 | - Version 3, 19 November 2007 |
1341 | - . |
1342 | - Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> |
1343 | - Everyone is permitted to copy and distribute verbatim copies |
1344 | - of this license document, but changing it is not allowed. |
1345 | - . |
1346 | - The complete text of the AGPL version 3 can be seen in |
1347 | - http://www.gnu.org/licenses/agpl-3.0.html |
1348 | |
1349 | === removed file 'debian/python-simplestreams.install' |
1350 | --- debian/python-simplestreams.install 2013-06-28 19:56:56 +0000 |
1351 | +++ debian/python-simplestreams.install 1970-01-01 00:00:00 +0000 |
1352 | @@ -1,1 +0,0 @@ |
1353 | -usr/lib/python2*/*-packages/simplestreams/* |
1354 | |
1355 | === removed file 'debian/python3-simplestreams.install' |
1356 | --- debian/python3-simplestreams.install 2013-06-26 18:22:11 +0000 |
1357 | +++ debian/python3-simplestreams.install 1970-01-01 00:00:00 +0000 |
1358 | @@ -1,1 +0,0 @@ |
1359 | -usr/lib/python3*/*-packages/simplestreams/* |
1360 | |
1361 | === removed file 'debian/rules' |
1362 | --- debian/rules 2015-12-08 20:29:22 +0000 |
1363 | +++ debian/rules 1970-01-01 00:00:00 +0000 |
1364 | @@ -1,19 +0,0 @@ |
1365 | -#!/usr/bin/make -f |
1366 | - |
1367 | -export SS_REQUIRE_DISTRO_INFO = 0 |
1368 | -PYVERS := $(shell pyversions -r) |
1369 | -PY3VERS := $(shell py3versions -r) |
1370 | -%: |
1371 | - dh $@ --with=python2,python3 |
1372 | - |
1373 | -override_dh_auto_install: |
1374 | - dh_auto_install |
1375 | - set -ex; for python in $(PY3VERS) $(PYVERS); do \ |
1376 | - $$python setup.py build --executable=/usr/bin/python3 && \ |
1377 | - $$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \ |
1378 | - done |
1379 | - # there:are no packages for python3-{boto, swiftclient, |
1380 | - # glanceclient, keystonclient}, so do not package the bits |
1381 | - # that would depend on them. |
1382 | - for bad in openstack mirrors/glance objectstores/swift objectstores/s3; do \ |
1383 | - rm $(CURDIR)/debian/tmp/usr/lib/python3/*/simplestreams/$$bad.py; done |
1384 | |
1385 | === removed file 'debian/simplestreams.install' |
1386 | --- debian/simplestreams.install 2013-06-28 19:56:56 +0000 |
1387 | +++ debian/simplestreams.install 1970-01-01 00:00:00 +0000 |
1388 | @@ -1,2 +0,0 @@ |
1389 | -usr/bin/* |
1390 | -usr/lib/simplestreams/hook-debug usr/share/doc/simplestreams/ |
1391 | |
1392 | === removed directory 'debian/source' |
1393 | === removed file 'debian/source/format' |
1394 | --- debian/source/format 2013-03-27 15:10:42 +0000 |
1395 | +++ debian/source/format 1970-01-01 00:00:00 +0000 |
1396 | @@ -1,1 +0,0 @@ |
1397 | -3.0 (quilt) |
1398 | |
1399 | === removed directory 'doc' |
1400 | === removed file 'doc/README' |
1401 | --- doc/README 2014-09-23 13:08:39 +0000 |
1402 | +++ doc/README 1970-01-01 00:00:00 +0000 |
1403 | @@ -1,161 +0,0 @@ |
1404 | -== Simple Sync Format == |
1405 | -Simple Sync format consists of 2 different file formats: |
1406 | - * A "products list" (format=products:1.0) |
1407 | - * A "index" (format=index:1.0) |
1408 | - |
1409 | -Files contain JSON formatted data. |
1410 | -Data can come in one of 2 formats: |
1411 | - * JSON file: <file>.json |
1412 | - A .json file can be accompanied by a .json.gpg file which contains |
1413 | - signature data for .json file. |
1414 | - |
1415 | - Due to race conditions caused by the fact that .json and .json.gpg |
1416 | - may not be able to be obtained from a storage location at the same |
1417 | - time, the preferred delivery of signed data is via '.sjson' format. |
1418 | - |
1419 | - * Signed JSON File: <file>.sjson |
1420 | - This is a GPG cleartext signed message: |
1421 | - https://tools.ietf.org/html/rfc4880#section-7 |
1422 | - The payload the same content that would be included in the JSON file. |
1423 | - |
1424 | -Special dictionary entries: |
1425 | - * 'path': If a 'product' dictionary in an index file or a item dictionary |
1426 | - in a products file contains a 'path' element, then that indicates there |
1427 | - is content to be downloaded associated with that element. |
1428 | - |
1429 | - A 'path' must value must be relative to the base of the mirror. |
1430 | - |
1431 | - * 'md5', 'sha256', 'sha512': |
1432 | - If an item contains a 'path' and one of these fields, then the content |
1433 | - referenced must have the given checksum(s). |
1434 | - |
1435 | - * 'size': |
1436 | - For an item with a 'path', this indicates the expected download size. |
1437 | - It should be present for a item with a path in a products file. |
1438 | - Having access to expected size allows the client to provide progress |
1439 | - and also reduces the potential for hash collision attacks. |
1440 | - |
1441 | - * 'updated' |
1442 | - This field can exist at the top level of a products or index, and |
1443 | - contains a RFC 2822 timestamp indicating when the file was last updated |
1444 | - This allows a client to quickly note that it is up to date. |
1445 | - |
1446 | -== Simple Sync Mirrors == |
1447 | -The default/expected location of an index file is 'streams/v1/index.sjson' |
1448 | -or 'streams/v1/index.json' underneath the top level of a mirror. |
1449 | - |
1450 | -'path' entries as described above are relative to the top level of a |
1451 | -mirror, not relative to the location of the index. |
1452 | - |
1453 | -For example: |
1454 | - http://example.com/my-mirror/ |
1455 | -would be the top level of a mirror, and the expected path of an index is |
1456 | - http://example.com/my-mirror/streams/v1/index.sjson |
1457 | - |
1458 | -To describe a file that lives at: |
1459 | - http://example.com/my-mirror/streams/v1/products.sjson |
1460 | - |
1461 | -The 'path' element must be: 'streams/v1/products.sjson' |
1462 | - |
1463 | -== Products List == |
1464 | -products list: (format=products:1.0) |
1465 | -For Ubuntu, an example product is 'server:precise:amd64' |
1466 | -A Products list has a 'content_id' and multiple products. |
1467 | -a product has multiple versions |
1468 | -a version has multiple items |
1469 | - |
1470 | -An item can be globally uniquely identified by the path to it. |
1471 | -i.e., the 'content_id' for a products list and the key in each |
1472 | -element of the tree form a unique tuple for that item. Given: |
1473 | - content_id = tree['content_id'] |
1474 | - prod_name = tree['products'].keys()[0] |
1475 | - ver_name = tree['products'][prod_name]['versions'].keys(0) |
1476 | - item_name = tree['products'][prod_name]['versions'][ver_name].keys(0) |
1477 | -that unique tuple is: |
1478 | - (content_id, prod_name, ver_name, item_name) |
1479 | - |
1480 | -The following is a description of each of these fields: |
1481 | - * content_id is formed similarly to an ISCSI qualified name (IQN) |
1482 | - An example is: |
1483 | - com.ubuntu.cloud:released:aws |
1484 | - It should have a reverse domain portion followed by a portion |
1485 | - that represents a name underneath that domain. |
1486 | - |
1487 | - * product_name: product name is unique within a products list. The same |
1488 | - product name may appear in multiple products_lists. For example, |
1489 | - in Ubuntu, 'server:precise:amd64' will appear in both |
1490 | - 'com.ubuntu.cloud:released:aws' and |
1491 | - 'com.ubuntu.cloud:released:download'. |
1492 | - |
1493 | - That name collision should imply that the two separate |
1494 | - <content_id><product_name> pairs are equivalent in some manner. |
1495 | - |
1496 | - * version_name: |
1497 | - A 'version' of a product represents a release, build or collection of |
1498 | - that product. A key in the 'versions' dictionary should be sortable |
1499 | - by rules of a 'LANG=C sort()'. That allows the client to trivially |
1500 | - order versions to find the most recent. Ubuntu uses "serial" numbers |
1501 | - for these keys, in the format YYYYMMDD[.0-9]. |
1502 | - |
1503 | - * item_name: |
1504 | - Inside of a version, there may be multiple items. An example would be |
1505 | - a binary build and a source tarball. |
1506 | - |
1507 | - For Ubuntu download images, these are things like '.tar.gz', |
1508 | - '-disk1.img' and '-root.tar.gz'. |
1509 | - |
1510 | - The item name does not need to be user-friendly. It must be |
1511 | - consistent. Because this id is unique within the given |
1512 | - 'version_name', a client needs only to store that key, rather than |
1513 | - trying to determine which keys inside the item dictionary identify it. |
1514 | - |
1515 | - An 'item' dictionary may contain a 'path' element. |
1516 | - |
1517 | - 'path' entries for a given item must be immutable. That is, for a |
1518 | - given 'path' under a mirror, the content must never change. |
1519 | - |
1520 | -== Index == |
1521 | -This is a index of products files that are available. |
1522 | -It has a top level 'index' dictionary. Each entry in that dictionary is a |
1523 | -content_id of a products file. The entry should have a 'path' item that |
1524 | -indicates where to download the product. |
1525 | - |
1526 | -All other data inside the product entry is not required, but helps a client |
1527 | -to find what they're looking for. |
1528 | - |
1529 | -item groups of the same "type". |
1530 | - this is 'stream:1.0' format. |
1531 | - * stream collection: a list of content streams |
1532 | - A stream collection is simply a way to provide an index of known content |
1533 | - streams, and information about them. |
1534 | - This is 'stream-collection:1.0' |
1535 | - |
1536 | -Useful definitions |
1537 | - * item group |
1538 | - an item group is a list of like items. e.g. all produced by the same build. |
1539 | - requirements: |
1540 | - * serial: a 'serial' entry that can be sorted by YYYYMMDD[.X] |
1541 | - * items: a list of items |
1542 | - |
1543 | - Example item groups are: |
1544 | - * output of the amd64 cloud image build done on 2012-04-04 |
1545 | - * amd64 images from the cirros release version 0.3.1 |
1546 | - |
1547 | - * item |
1548 | - There are 1 or more items in a item group. |
1549 | - requirements: |
1550 | - * name: must be unique within the item group. |
1551 | - |
1552 | - special fields: |
1553 | - * path: If an item has a 'path', then the target must be obtainable and |
1554 | - should be downloaded when mirroring. |
1555 | - * md5sum: stores checksum |
1556 | - |
1557 | - Example: |
1558 | - * "disk1.img" produced from the amd64 cloud image build done on 2012-04-04 |
1559 | - * -root.tar.gz produced from the same build. |
1560 | - |
1561 | -Notes: |
1562 | - * index files are not required to be signed, as they only |
1563 | - contain references to other content that is signed, and that is hosted |
1564 | - on the same mirror. |
1565 | |
1566 | === removed directory 'doc/files' |
1567 | === removed file 'doc/files/my.cfg' |
1568 | --- doc/files/my.cfg 2013-01-28 21:59:54 +0000 |
1569 | +++ doc/files/my.cfg 1970-01-01 00:00:00 +0000 |
1570 | @@ -1,25 +0,0 @@ |
1571 | -# This is an example CommandHookMirror config |
1572 | -# You can utilize it with: |
1573 | -# export MIRROR_D=mirror.out; ./tools/cmd-hook-sync hook.cfg doc/example ${MIRROR_D} |
1574 | -# |
1575 | -stream_load: | |
1576 | - for d in "${MIRROR_D}/%(iqn)s/"*; do [ -d "$d" ] && echo "${d##*/}"; done; |
1577 | - true |
1578 | - |
1579 | -item_insert: | |
1580 | - echo "%(_hookname)s: %(iqn)s/%(serial)s/%(name)s" |
1581 | - cp "%(path_local)s" "$MIRROR_D/%(iqn)s/%(serial)s/%(name)s" |
1582 | - |
1583 | -group_insert_pre: | |
1584 | - echo "%(_hookname)s: %(iqn)s/%(serial)s" |
1585 | - mkdir -p "$MIRROR_D/%(iqn)s/%(serial)s" |
1586 | - |
1587 | -group_remove_post: | |
1588 | - echo "%(_hookname)s: %(iqn)s/%(serial)s" |
1589 | - rm -Rf "$MIRROR_D/%(iqn)s/%(serial)s" |
1590 | - |
1591 | -# ignore files unless they have match the provided regex |
1592 | -item_filter: |
1593 | - echo "%(name)s" | grep -q "disk1.img" |
1594 | - |
1595 | -# vi: ts=4 expandtab syntax=yaml |
1596 | |
1597 | === removed file 'doc/files/openstack-sync.cfg' |
1598 | --- doc/files/openstack-sync.cfg 2013-01-29 22:15:09 +0000 |
1599 | +++ doc/files/openstack-sync.cfg 1970-01-01 00:00:00 +0000 |
1600 | @@ -1,51 +0,0 @@ |
1601 | -# This is an example CommandHookMirror config for uploading to glance |
1602 | -# PYTHONPATH=$PWD ./tools/cmd-hook-sync ./my.cfg \ |
1603 | -# http://download.cirros-cloud.net/streams/v1/unsigned/streams.yaml |
1604 | -stream_load: | |
1605 | - set -e; set -f; |
1606 | - iqn="%(iqn)s" |
1607 | - output=$(glance image-list --property-filter "iqn=$iqn") |
1608 | - ids=$(echo "$output" | awk '$2 ~ uuid { print $2 }' "uuid=[0-9a-f-]{36}") |
1609 | - for id in $ids; do |
1610 | - out=$(glance image-show $id) |
1611 | - serial=$(echo "$out" | |
1612 | - awk '$2 == "Property" && $3 == sname { print $5 }' sname="'serial'") |
1613 | - # for debug, list what we find to stderr |
1614 | - echo "$iqn $serial $id" 1>&2 |
1615 | - # report we have the given serial for this iqn |
1616 | - echo "$serial" |
1617 | - done |
1618 | - |
1619 | -item_insert: | |
1620 | - iqn="%(iqn)s" |
1621 | - serial="%(serial)s" |
1622 | - path_local="%(path_local)s" |
1623 | - |
1624 | - [ "${arch}" = "amd64" ] && arch="x86_64" |
1625 | - |
1626 | - uuid=$(uuidgen) |
1627 | - glance image-create --disk-format=qcow2 --container-format=bare \ |
1628 | - "--name=${pubname:-${name##*/}}" "--id=$uuid" \ |
1629 | - ${arch:+"--property=architecture=${arch}"} \ |
1630 | - "--property=iqn=$iqn" "--property=serial=$serial" \ |
1631 | - ${md5:+"--checksum=$md5"} \ |
1632 | - "--file=${path_local}" |
1633 | - |
1634 | -group_remove_pre: | |
1635 | - iqn="%(iqn)s" |
1636 | - serial="%(serial)s" |
1637 | - |
1638 | - set -e; set -f; |
1639 | - output=$(glance image-list "--property-filter=iqn=$iqn" \ |
1640 | - "--property-filter=serial=$serial") |
1641 | - ids=$(echo "$output" | awk '$2 ~ uuid { print $2 }' "uuid=[0-9a-f-]{36}") |
1642 | - for id in $ids; do |
1643 | - echo "remove $iqn $serial $id" |
1644 | - glance image-delete "$id"; |
1645 | - done |
1646 | - |
1647 | -# ignore files unless they have match the provided regex |
1648 | -item_filter: |
1649 | - echo "%(name)s" | grep -q "disk.img$" |
1650 | - |
1651 | -# vi: ts=4 expandtab syntax=yaml |
1652 | |
1653 | === removed directory 'examples' |
1654 | === removed directory 'examples/cirros' |
1655 | === removed directory 'examples/cirros/streams' |
1656 | === removed directory 'examples/cirros/streams/v1' |
1657 | === removed file 'examples/cirros/streams/v1/index.json' |
1658 | --- examples/cirros/streams/v1/index.json 2013-05-15 12:54:54 +0000 |
1659 | +++ examples/cirros/streams/v1/index.json 1970-01-01 00:00:00 +0000 |
1660 | @@ -1,28 +0,0 @@ |
1661 | -{ |
1662 | - "index": { |
1663 | - "net.cirros-cloud:devel:download": { |
1664 | - "datatype": "image-downloads", |
1665 | - "path": "streams/v1/net.cirros-cloud:devel:download.json", |
1666 | - "updated": "Sat, 04 May 2013 01:58:57 +0000", |
1667 | - "products": [ |
1668 | - "net.cirros-cloud.devel:standard:0.3:arm", |
1669 | - "net.cirros-cloud.devel:standard:0.3:i386", |
1670 | - "net.cirros-cloud.devel:standard:0.3:x86_64" |
1671 | - ], |
1672 | - "format": "products:1.0" |
1673 | - }, |
1674 | - "net.cirros-cloud:released:download": { |
1675 | - "datatype": "image-downloads", |
1676 | - "path": "streams/v1/net.cirros-cloud:released:download.json", |
1677 | - "updated": "Sat, 04 May 2013 01:58:57 +0000", |
1678 | - "products": [ |
1679 | - "net.cirros-cloud:standard:0.3:i386", |
1680 | - "net.cirros-cloud:standard:0.3:x86_64", |
1681 | - "net.cirros-cloud:standard:0.3:arm" |
1682 | - ], |
1683 | - "format": "products:1.0" |
1684 | - } |
1685 | - }, |
1686 | - "updated": "Sat, 04 May 2013 01:58:57 +0000", |
1687 | - "format": "index:1.0" |
1688 | -} |
1689 | |
1690 | === removed file 'examples/cirros/streams/v1/net.cirros-cloud:devel:download.json' |
1691 | --- examples/cirros/streams/v1/net.cirros-cloud:devel:download.json 2013-05-15 12:54:54 +0000 |
1692 | +++ examples/cirros/streams/v1/net.cirros-cloud:devel:download.json 1970-01-01 00:00:00 +0000 |
1693 | @@ -1,311 +0,0 @@ |
1694 | -{ |
1695 | - "datatype": "image-downloads", |
1696 | - "updated": "Sat, 04 May 2013 01:58:57 +0000", |
1697 | - "content_id": "net.cirros-cloud:devel:download", |
1698 | - "products": { |
1699 | - "net.cirros-cloud.devel:standard:0.3:arm": { |
1700 | - "arch": "arm", |
1701 | - "stream": "devel", |
1702 | - "versions": { |
1703 | - "20130111": { |
1704 | - "items": { |
1705 | - "uec.tar.gz": { |
1706 | - "ftype": "uec.tar.gz", |
1707 | - "path": "0.3.1~pre4/cirros-0.3.1~pre4-arm-uec.tar.gz", |
1708 | - "sha256": "2b77d7c4225793b7271f550310f6e0827b64434b88fec589dd97e98e8828d254", |
1709 | - "md5": "797e2d488c799eab0a8eb09a9c1ff4a3", |
1710 | - "size": 7314153 |
1711 | - }, |
1712 | - "rootfs.img.gz": { |
1713 | - "ftype": "rootfs.img.gz", |
1714 | - "path": "0.3.1~pre4/cirros-0.3.1~pre4-arm-rootfs.img.gz", |
1715 | - "sha256": "ff2d70f474ee78209083d88caa04add60ada5cb71cfec57a69f6b696ef57eee2", |
1716 | - "md5": "986c9cabd412f12cb5027b7d7eb4ec03", |
1717 | - "size": 10949810 |
1718 | - }, |
1719 | - "lxc.tar.gz": { |
1720 | - "ftype": "lxc.tar.gz", |
1721 | - "path": "0.3.1~pre4/cirros-0.3.1~pre4-arm-lxc.tar.gz", |
1722 | - "sha256": "a9225fed02b071d0cf9a60cb3d17578d19714b9de3fe4083e34eb3c1110f3f83", |
1723 | - "md5": "55b092bde364aad125a1db57c932f1d0", |
1724 | - "size": 3466163 |
1725 | - } |
1726 | - }, |
1727 | - "version": "0.3.1~pre4", |
1728 | - "pubname": "cirros-0.3.1~pre4-arm" |
1729 | - }, |
1730 | - "20120611": { |
1731 | - "items": { |
1732 | - "uec.tar.gz": { |
1733 | - "ftype": "uec.tar.gz", |
1734 | - "path": "0.3.1~pre1/cirros-0.3.1~pre1-arm-uec.tar.gz", |
1735 | - "sha256": "679823406624c380a1d3c5af659a41aab25ff42007b0eb0a7afd4b58142e738e", |
1736 | - "md5": "22bb53be0daf975e35a4fbc856ae89c2", |
1737 | - "size": 7173849 |
1738 | - }, |
1739 | - "rootfs.img.gz": { |
1740 | - "ftype": "rootfs.img.gz", |
1741 | - "path": "0.3.1~pre1/cirros-0.3.1~pre1-arm-rootfs.img.gz", |
1742 | - "sha256": "5dd775b57a624108c82838a47e57aee576955ca162c2e8c2e50ee8ffea5f93d2", |
1743 | - "md5": "ad7422c2124c59466724dea9658db20f", |
1744 | - "size": 10762344 |
1745 | - }, |
1746 | - "lxc.tar.gz": { |
1747 | - "ftype": "lxc.tar.gz", |
1748 | - "path": "0.3.1~pre1/cirros-0.3.1~pre1-arm-lxc.tar.gz", |
1749 | - "sha256": "8e619113cfeb0a799b89dd570fd3c978ac83b5f78ea7b257a3b2e2a2bb2de30c", |
1750 | - "md5": "b0a7d585b42d8cfff18e2a76c5115495", |
1751 | - "size": 3428595 |
1752 | - } |
1753 | - }, |
1754 | - "version": "0.3.1~pre1", |
1755 | - "pubname": "cirros-0.3.1~pre1-arm" |
1756 | - }, |
1757 | - "20120827": { |
1758 | - "items": { |
1759 | - "uec.tar.gz": { |
1760 | - "ftype": "uec.tar.gz", |
1761 | - "path": "0.3.1~pre3/cirros-0.3.1~pre3-arm-uec.tar.gz", |
1762 | - "sha256": "cc5362c2c9e84547100aed3e6df0011e2b4d91c47243c85de2643d1d72ed3946", |
1763 | - "md5": "d1703407ad1483e2bbf68d4d78987581", |
1764 | - "size": 7302383 |
1765 | - }, |
1766 | - "rootfs.img.gz": { |
1767 | - "ftype": "rootfs.img.gz", |
1768 | - "path": "0.3.1~pre3/cirros-0.3.1~pre3-arm-rootfs.img.gz", |
1769 | - "sha256": "dc5c0f6f02592d6af164ae175b5f5e69d5d016734672982e9b4f29294782e61a", |
1770 | - "md5": "c98688744bdf66b56b19405acfc48966", |
1771 | - "size": 10922886 |
1772 | - }, |
1773 | - "lxc.tar.gz": { |
1774 | - "ftype": "lxc.tar.gz", |
1775 | - "path": "0.3.1~pre3/cirros-0.3.1~pre3-arm-lxc.tar.gz", |
1776 | - "sha256": "136e2d3a4a870eb6a4b3dcbde44209bcd050d36b3c20c2a1f21f4dd7f6e00004", |
1777 | - "md5": "fbc83952ca51071c1aea8b0d82c51d1b", |
1778 | - "size": 3456925 |
1779 | - } |
1780 | - }, |
1781 | - "version": "0.3.1~pre3", |
1782 | - "pubname": "cirros-0.3.1~pre3-arm" |
1783 | - } |
1784 | - } |
1785 | - }, |
1786 | - "net.cirros-cloud.devel:standard:0.3:i386": { |
1787 | - "arch": "i386", |
1788 | - "stream": "devel", |
1789 | - "versions": { |
1790 | - "20130111": { |
1791 | - "items": { |
1792 | - "disk.img": { |
1793 | - "ftype": "disk.img", |
1794 | - "path": "0.3.1~pre4/cirros-0.3.1~pre4-i386-disk.img", |
1795 | - "sha256": "ac09fe84e4aa5315b017ee8a522dcf0f2780ebd27b9a9eaca56a24c5e0818977", |
1796 | - "md5": "108c6f694a10b5376bde18e71a238ae0", |
1797 | - "size": 12380672 |
1798 | - }, |
1799 | - "uec.tar.gz": { |
1800 | - "ftype": "uec.tar.gz", |
1801 | - "path": "0.3.1~pre4/cirros-0.3.1~pre4-i386-uec.tar.gz", |
1802 | - "sha256": "da62e3351c60bf40ab2b07d808aed8e0cbeed1df0b766c3870aab29330569614", |
1803 | - "md5": "c078a3e7b7c758a69217391f54fa4cba", |
1804 | - "size": 8195614 |
1805 | - }, |
1806 | - "rootfs.img.gz": { |
1807 | - "ftype": "rootfs.img.gz", |
1808 | - "path": "0.3.1~pre4/cirros-0.3.1~pre4-i386-rootfs.img.gz", |
1809 | - "sha256": "3944219a3957a787735a54bdc267e2daf6c7c2e02cb4fac133ae8fa6ba4bfbaa", |
1810 | - "md5": "538576ec0ca05ab9eaf1ada9fc7f3084", |
1811 | - "size": 11566741 |
1812 | - }, |
1813 | - "lxc.tar.gz": { |
1814 | - "ftype": "lxc.tar.gz", |
1815 | - "path": "0.3.1~pre4/cirros-0.3.1~pre4-i386-lxc.tar.gz", |
1816 | - "sha256": "a4ff395c1e9bf8dda5b7e25f75fdc90f9726631ffb5f6df821be0da0209dd7ef", |
1817 | - "md5": "ae66a7dd1c050f4d313d1fe8febd87d0", |
1818 | - "size": 3192308 |
1819 | - } |
1820 | - }, |
1821 | - "version": "0.3.1~pre4", |
1822 | - "pubname": "cirros-0.3.1~pre4-i386" |
1823 | - }, |
1824 | - "20120611": { |
1825 | - "items": { |
1826 | - "disk.img": { |
1827 | - "ftype": "disk.img", |
1828 | - "path": "0.3.1~pre1/cirros-0.3.1~pre1-i386-disk.img", |
1829 | - "sha256": "3a453c98a4f46cb9b8acc34e4d2b39b8d9315082f80cefc4659320741ab94fcf", |
1830 | - "md5": "483f1377c284b5ba61e8038a7bb53849", |
1831 | - "size": 12204544 |
1832 | - }, |
1833 | - "uec.tar.gz": { |
1834 | - "ftype": "uec.tar.gz", |
1835 | - "path": "0.3.1~pre1/cirros-0.3.1~pre1-i386-uec.tar.gz", |
1836 | - "sha256": "ceaea29b7808e434712cac7380659367aa41e049810fab53a36d6ecfe5ae014c", |
1837 | - "md5": "b5a730c2cfd08c78e8af41be06082a46", |
1838 | - "size": 8165911 |
1839 | - }, |
1840 | - "rootfs.img.gz": { |
1841 | - "ftype": "rootfs.img.gz", |
1842 | - "path": "0.3.1~pre1/cirros-0.3.1~pre1-i386-rootfs.img.gz", |
1843 | - "sha256": "751fc761ab9e1db5ddb156cb8d54f0bb67e68bf82a92e700f9e280d6da0cad79", |
1844 | - "md5": "e413bfe8627aef63bc8c4cb96954f1e3", |
1845 | - "size": 11494115 |
1846 | - }, |
1847 | - "lxc.tar.gz": { |
1848 | - "ftype": "lxc.tar.gz", |
1849 | - "path": "0.3.1~pre1/cirros-0.3.1~pre1-i386-lxc.tar.gz", |
1850 | - "sha256": "e727a344cc19caf173b376bdf1321f13dded5eaa83d47eba0c65354e7a6d5c81", |
1851 | - "md5": "04d84c5ed7f4d2ced01a7da82a4d573b", |
1852 | - "size": 3158748 |
1853 | - } |
1854 | - }, |
1855 | - "version": "0.3.1~pre1", |
1856 | - "pubname": "cirros-0.3.1~pre1-i386" |
1857 | - }, |
1858 | - "20120827": { |
1859 | - "items": { |
1860 | - "disk.img": { |
1861 | - "ftype": "disk.img", |
1862 | - "path": "0.3.1~pre3/cirros-0.3.1~pre3-i386-disk.img", |
1863 | - "sha256": "4f531df04463eb9fd4a4ca05d013f6e48ef66bf87287a3d22037a6d845784390", |
1864 | - "md5": "919b7f3c9d1740f57cc208acbf098ae5", |
1865 | - "size": 12287488 |
1866 | - }, |
1867 | - "uec.tar.gz": { |
1868 | - "ftype": "uec.tar.gz", |
1869 | - "path": "0.3.1~pre3/cirros-0.3.1~pre3-i386-uec.tar.gz", |
1870 | - "sha256": "5df8c17124c5f0b5a38c8cdd763c6432d5ca8b32f6148ffc8e77486a36cdd0f5", |
1871 | - "md5": "04dfffbb656e536775d522148bc031b2", |
1872 | - "size": 8184352 |
1873 | - }, |
1874 | - "rootfs.img.gz": { |
1875 | - "ftype": "rootfs.img.gz", |
1876 | - "path": "0.3.1~pre3/cirros-0.3.1~pre3-i386-rootfs.img.gz", |
1877 | - "sha256": "d99a1eee31ee469eaf5cac51de711071282112b8b1d398759db92eefe1daf83e", |
1878 | - "md5": "a9f6519bf540331d74c3f938b7752ce9", |
1879 | - "size": 11546128 |
1880 | - }, |
1881 | - "lxc.tar.gz": { |
1882 | - "ftype": "lxc.tar.gz", |
1883 | - "path": "0.3.1~pre3/cirros-0.3.1~pre3-i386-lxc.tar.gz", |
1884 | - "sha256": "9cf93aeefdb00601bdf44401adf5c89473883ae408fee0a9d65ed8dd355c2cac", |
1885 | - "md5": "8f59168a9f5b4962d3327f50d5d18ad7", |
1886 | - "size": 3186156 |
1887 | - } |
1888 | - }, |
1889 | - "version": "0.3.1~pre3", |
1890 | - "pubname": "cirros-0.3.1~pre3-i386" |
1891 | - } |
1892 | - } |
1893 | - }, |
1894 | - "net.cirros-cloud.devel:standard:0.3:x86_64": { |
1895 | - "arch": "x86_64", |
1896 | - "stream": "devel", |
1897 | - "versions": { |
1898 | - "20130111": { |
1899 | - "items": { |
1900 | - "disk.img": { |
1901 | - "ftype": "disk.img", |
1902 | - "path": "0.3.1~pre4/cirros-0.3.1~pre4-x86_64-disk.img", |
1903 | - "sha256": "6f50d6a8874610ad25196cad3296e0cb55274fb3aa6963cef04012b413cca3af", |
1904 | - "md5": "c32b60592301c1cf714a93fea0a25352", |
1905 | - "size": 13118976 |
1906 | - }, |
1907 | - "uec.tar.gz": { |
1908 | - "ftype": "uec.tar.gz", |
1909 | - "path": "0.3.1~pre4/cirros-0.3.1~pre4-x86_64-uec.tar.gz", |
1910 | - "sha256": "bb31bb2372f66949799f0ee7f272078e1d0339f3f790d40f1dbcadf9c24225f3", |
1911 | - "md5": "414dc72831718ebaaf8a994b59e71f62", |
1912 | - "size": 8633179 |
1913 | - }, |
1914 | - "rootfs.img.gz": { |
1915 | - "ftype": "rootfs.img.gz", |
1916 | - "path": "0.3.1~pre4/cirros-0.3.1~pre4-x86_64-rootfs.img.gz", |
1917 | - "sha256": "8f14fa9de3deee186fc2fa7778913f93d93f0fb0d2e0436d7e2af92f0b98f5e6", |
1918 | - "md5": "8cc226def4fa6a50b4dbb0ebae57675e", |
1919 | - "size": 12343217 |
1920 | - }, |
1921 | - "lxc.tar.gz": { |
1922 | - "ftype": "lxc.tar.gz", |
1923 | - "path": "0.3.1~pre4/cirros-0.3.1~pre4-x86_64-lxc.tar.gz", |
1924 | - "sha256": "867bc516aa0721ed7c4e7069249f8f891c7f186b7d7cecc3c131ef4225c6df4d", |
1925 | - "md5": "019857146c4d5c2f99fa03c04ba300db", |
1926 | - "size": 3534613 |
1927 | - } |
1928 | - }, |
1929 | - "version": "0.3.1~pre4", |
1930 | - "pubname": "cirros-0.3.1~pre4-x86_64" |
1931 | - }, |
1932 | - "20120611": { |
1933 | - "items": { |
1934 | - "disk.img": { |
1935 | - "ftype": "disk.img", |
1936 | - "path": "0.3.1~pre1/cirros-0.3.1~pre1-x86_64-disk.img", |
1937 | - "sha256": "0cfdda25485a0b51cc9356199446028403e0745699011265ff304dd51ce3b36b", |
1938 | - "md5": "8875836383dcf5de32e708945a5455b5", |
1939 | - "size": 12992512 |
1940 | - }, |
1941 | - "uec.tar.gz": { |
1942 | - "ftype": "uec.tar.gz", |
1943 | - "path": "0.3.1~pre1/cirros-0.3.1~pre1-x86_64-uec.tar.gz", |
1944 | - "sha256": "1d45297df580bef76ec2c2303124e4673b76c2b61c4a1064581171b0f8e35a79", |
1945 | - "md5": "af842e35f335fc55c78311303474b121", |
1946 | - "size": 8602015 |
1947 | - }, |
1948 | - "rootfs.img.gz": { |
1949 | - "ftype": "rootfs.img.gz", |
1950 | - "path": "0.3.1~pre1/cirros-0.3.1~pre1-x86_64-rootfs.img.gz", |
1951 | - "sha256": "99c2c0f64f51d1184311597c87f3911799c345786a6987fd76fe742d5ef29481", |
1952 | - "md5": "980984e8787426059edf4ab6fe1e680f", |
1953 | - "size": 12277772 |
1954 | - }, |
1955 | - "lxc.tar.gz": { |
1956 | - "ftype": "lxc.tar.gz", |
1957 | - "path": "0.3.1~pre1/cirros-0.3.1~pre1-x86_64-lxc.tar.gz", |
1958 | - "sha256": "f32cc1a108322c9b8967d97c301d4d9412bf31a321cea026773d932a5594dab6", |
1959 | - "md5": "d68c898e4f4e8afc9221e7c8f4f34e7d", |
1960 | - "size": 3497630 |
1961 | - } |
1962 | - }, |
1963 | - "version": "0.3.1~pre1", |
1964 | - "pubname": "cirros-0.3.1~pre1-x86_64" |
1965 | - }, |
1966 | - "20120827": { |
1967 | - "items": { |
1968 | - "disk.img": { |
1969 | - "ftype": "disk.img", |
1970 | - "path": "0.3.1~pre3/cirros-0.3.1~pre3-x86_64-disk.img", |
1971 | - "sha256": "3471124e2943922fe2a14ef06ef051c8b21e43835de7a06c58b33035b4124943", |
1972 | - "md5": "4b65df206c61e30af1947ee21d5aad40", |
1973 | - "size": 13089280 |
1974 | - }, |
1975 | - "uec.tar.gz": { |
1976 | - "ftype": "uec.tar.gz", |
1977 | - "path": "0.3.1~pre3/cirros-0.3.1~pre3-x86_64-uec.tar.gz", |
1978 | - "sha256": "901b13ea2f4f9216e859c1f90f5acc36b85468043ba243b75a919a9e34a4a70d", |
1979 | - "md5": "0a4cb79338406b275ad0d5be08c9e0dd", |
1980 | - "size": 8623028 |
1981 | - }, |
1982 | - "rootfs.img.gz": { |
1983 | - "ftype": "rootfs.img.gz", |
1984 | - "path": "0.3.1~pre3/cirros-0.3.1~pre3-x86_64-rootfs.img.gz", |
1985 | - "sha256": "cba564b4f9176ba0efceb09f646a38485c647e938b7d1150c1b8d00e012905b1", |
1986 | - "md5": "1c649a0761e80e6e81b34371e3186deb", |
1987 | - "size": 12328845 |
1988 | - }, |
1989 | - "lxc.tar.gz": { |
1990 | - "ftype": "lxc.tar.gz", |
1991 | - "path": "0.3.1~pre3/cirros-0.3.1~pre3-x86_64-lxc.tar.gz", |
1992 | - "sha256": "9abee551668c7afada5b550d6f5760c105ba8b0011e37cbe77985b3834862395", |
1993 | - "md5": "9fb61f717b367c0d0459eada51fee35f", |
1994 | - "size": 3527698 |
1995 | - } |
1996 | - }, |
1997 | - "version": "0.3.1~pre3", |
1998 | - "pubname": "cirros-0.3.1~pre3-x86_64" |
1999 | - } |
2000 | - } |
2001 | - } |
2002 | - }, |
2003 | - "format": "products:1.0" |
2004 | -} |
2005 | |
2006 | === removed file 'examples/cirros/streams/v1/net.cirros-cloud:released:download.json' |
2007 | --- examples/cirros/streams/v1/net.cirros-cloud:released:download.json 2013-05-15 12:54:54 +0000 |
2008 | +++ examples/cirros/streams/v1/net.cirros-cloud:released:download.json 1970-01-01 00:00:00 +0000 |
2009 | @@ -1,216 +0,0 @@ |
2010 | -{ |
2011 | - "datatype": "image-downloads", |
2012 | - "updated": "Sat, 04 May 2013 01:58:57 +0000", |
2013 | - "content_id": "net.cirros-cloud:released:download", |
2014 | - "products": { |
2015 | - "net.cirros-cloud:standard:0.3:i386": { |
2016 | - "arch": "i386", |
2017 | - "stream": "released", |
2018 | - "versions": { |
2019 | - "20111020": { |
2020 | - "items": { |
2021 | - "disk.img": { |
2022 | - "ftype": "disk.img", |
2023 | - "path": "0.3.0/cirros-0.3.0-i386-disk.img", |
2024 | - "sha256": "3309675d0d409128b1c2651d576bc8092ca9ab93e15f3d3aa458f40947569b61", |
2025 | - "md5": "90169ba6f09b5906a7f0755bd00bf2c3", |
2026 | - "size": 9159168 |
2027 | - }, |
2028 | - "uec.tar.gz": { |
2029 | - "ftype": "uec.tar.gz", |
2030 | - "path": "0.3.0/cirros-0.3.0-i386-uec.tar.gz", |
2031 | - "sha256": "b57e0acb32852f89734ff11a511ae0897e8cecb41882d03551649289b6854a1b", |
2032 | - "md5": "115ca6afa47089dc083c0dc9f9b7ff03", |
2033 | - "size": 6596586 |
2034 | - }, |
2035 | - "rootfs.img.gz": { |
2036 | - "ftype": "rootfs.img.gz", |
2037 | - "path": "0.3.0/cirros-0.3.0-i386-rootfs.img.gz", |
2038 | - "sha256": "981eb0be5deed016a6b7d668537a2ca8c7c8f8ac02f265acb63eab9a8adc4b98", |
2039 | - "md5": "174d97541fadaf4e88d526f656c1e0a5", |
2040 | - "size": 8566441 |
2041 | - }, |
2042 | - "lxc.tar.gz": { |
2043 | - "ftype": "lxc.tar.gz", |
2044 | - "path": "0.3.0/cirros-0.3.0-i386-lxc.tar.gz", |
2045 | - "sha256": "cac7887628527604b65a89e8caa34096d51c2dc1acfe405c15db2fc58495142a", |
2046 | - "md5": "e760bf470841f57c2c1bb426d407d169", |
2047 | - "size": 1845928 |
2048 | - } |
2049 | - }, |
2050 | - "version": "0.3.0", |
2051 | - "pubname": "cirros-0.3.0-i386" |
2052 | - }, |
2053 | - "20130207": { |
2054 | - "items": { |
2055 | - "disk.img": { |
2056 | - "ftype": "disk.img", |
2057 | - "path": "0.3.1/cirros-0.3.1-i386-disk.img", |
2058 | - "sha256": "b8aa1ce5d11939eaa01205fc31348532a31b82790921d45ceb397fbe76492787", |
2059 | - "md5": "6ba617eafc992e33e7c141c679225e53", |
2060 | - "size": 12251136 |
2061 | - }, |
2062 | - "uec.tar.gz": { |
2063 | - "ftype": "uec.tar.gz", |
2064 | - "path": "0.3.1/cirros-0.3.1-i386-uec.tar.gz", |
2065 | - "sha256": "88dda2e505b862a95d0e0044013addcaa3200e602150c9d73e32c2e29345d6f3", |
2066 | - "md5": "52845de5142e58faf211e135d2b45721", |
2067 | - "size": 8197543 |
2068 | - }, |
2069 | - "rootfs.img.gz": { |
2070 | - "ftype": "rootfs.img.gz", |
2071 | - "path": "0.3.1/cirros-0.3.1-i386-rootfs.img.gz", |
2072 | - "sha256": "27decd793c659063988dbb48ecd159a3f6664f9552d0fda9c58ce8984af5ba54", |
2073 | - "md5": "cf14209217f41ea26844bf0b9cdd20ef", |
2074 | - "size": 11565966 |
2075 | - }, |
2076 | - "lxc.tar.gz": { |
2077 | - "ftype": "lxc.tar.gz", |
2078 | - "path": "0.3.1/cirros-0.3.1-i386-lxc.tar.gz", |
2079 | - "sha256": "70a8c9c175589f7ac7054c6151cf2bb7eb9e210cefbe310446df2fb1a436b504", |
2080 | - "md5": "fc404d9fc9dc5f0eb33ebaa03920a046", |
2081 | - "size": 3191593 |
2082 | - } |
2083 | - }, |
2084 | - "version": "0.3.1", |
2085 | - "pubname": "cirros-0.3.1-i386" |
2086 | - } |
2087 | - } |
2088 | - }, |
2089 | - "net.cirros-cloud:standard:0.3:x86_64": { |
2090 | - "arch": "x86_64", |
2091 | - "stream": "released", |
2092 | - "versions": { |
2093 | - "20111020": { |
2094 | - "items": { |
2095 | - "disk.img": { |
2096 | - "ftype": "disk.img", |
2097 | - "path": "0.3.0/cirros-0.3.0-x86_64-disk.img", |
2098 | - "sha256": "648782e9287288630250d07531fed9944ecc3986764a6664f0bf6c050ec06afd", |
2099 | - "md5": "50bdc35edb03a38d91b1b071afb20a3c", |
2100 | - "size": 9761280 |
2101 | - }, |
2102 | - "uec.tar.gz": { |
2103 | - "ftype": "uec.tar.gz", |
2104 | - "path": "0.3.0/cirros-0.3.0-x86_64-uec.tar.gz", |
2105 | - "sha256": "043a3e090a5d76d23758a3919fcaff93f77ce7b97594d9d10fc8d00e85f83191", |
2106 | - "md5": "f56d3cffa47b7d209d2b6905628f07b9", |
2107 | - "size": 6957349 |
2108 | - }, |
2109 | - "rootfs.img.gz": { |
2110 | - "ftype": "rootfs.img.gz", |
2111 | - "path": "0.3.0/cirros-0.3.0-x86_64-rootfs.img.gz", |
2112 | - "sha256": "fb0f51c0ec8cfae9d2cef18e4897142e6a81688378fc52f3836ddb5d027a6761", |
2113 | - "md5": "83cd7edde7c99ae520e26d338d397875", |
2114 | - "size": 9184057 |
2115 | - }, |
2116 | - "lxc.tar.gz": { |
2117 | - "ftype": "lxc.tar.gz", |
2118 | - "path": "0.3.0/cirros-0.3.0-x86_64-lxc.tar.gz", |
2119 | - "sha256": "0e78796a30641dd7184f752c302a87d66f1eba9985c876911e4f26b4d8ba4a88", |
2120 | - "md5": "1a480e5150db4d93be2aa3c9ced94fa1", |
2121 | - "size": 2115217 |
2122 | - } |
2123 | - }, |
2124 | - "version": "0.3.0", |
2125 | - "pubname": "cirros-0.3.0-x86_64" |
2126 | - }, |
2127 | - "20130207": { |
2128 | - "items": { |
2129 | - "disk.img": { |
2130 | - "ftype": "disk.img", |
2131 | - "path": "0.3.1/cirros-0.3.1-x86_64-disk.img", |
2132 | - "sha256": "e01302fb2d2b13ae65226a0300335172e4487bbe60bb1e5c8b0843a25f126d34", |
2133 | - "md5": "d972013792949d0d3ba628fbe8685bce", |
2134 | - "size": 13147648 |
2135 | - }, |
2136 | - "uec.tar.gz": { |
2137 | - "ftype": "uec.tar.gz", |
2138 | - "path": "0.3.1/cirros-0.3.1-x86_64-uec.tar.gz", |
2139 | - "sha256": "51eb03b83123a68d4f866c7c15b195204e62db9e33475509a38b79b3122cde38", |
2140 | - "md5": "e1849016cb71a00808093b7bf986f36a", |
2141 | - "size": 8633554 |
2142 | - }, |
2143 | - "rootfs.img.gz": { |
2144 | - "ftype": "rootfs.img.gz", |
2145 | - "path": "0.3.1/cirros-0.3.1-x86_64-rootfs.img.gz", |
2146 | - "sha256": "8af2572729827ef89eabcdba36eaa130abb04e83e5910a0c20009ef48f4be237", |
2147 | - "md5": "069f6411ea252bf4b343953017f35968", |
2148 | - "size": 12339939 |
2149 | - }, |
2150 | - "lxc.tar.gz": { |
2151 | - "ftype": "lxc.tar.gz", |
2152 | - "path": "0.3.1/cirros-0.3.1-x86_64-lxc.tar.gz", |
2153 | - "sha256": "a086fcf2758468972d45957dc78ec6317c06f356930dbbc6cad6a8d1855f135e", |
2154 | - "md5": "38252f1a49fec0ebedebc820854497e0", |
2155 | - "size": 3534564 |
2156 | - } |
2157 | - }, |
2158 | - "version": "0.3.1", |
2159 | - "pubname": "cirros-0.3.1-x86_64" |
2160 | - } |
2161 | - } |
2162 | - }, |
2163 | - "net.cirros-cloud:standard:0.3:arm": { |
2164 | - "arch": "arm", |
2165 | - "stream": "released", |
2166 | - "versions": { |
2167 | - "20111020": { |
2168 | - "items": { |
2169 | - "uec.tar.gz": { |
2170 | - "ftype": "uec.tar.gz", |
2171 | - "path": "0.3.0/cirros-0.3.0-arm-uec.tar.gz", |
2172 | - "sha256": "b871823406f818430f57744333b1bb17ce0047e551a316f316641f1bd70d9152", |
2173 | - "md5": "c31e05f7829ad45f9d9995c35d232769", |
2174 | - "size": 5761642 |
2175 | - }, |
2176 | - "rootfs.img.gz": { |
2177 | - "ftype": "rootfs.img.gz", |
2178 | - "path": "0.3.0/cirros-0.3.0-arm-rootfs.img.gz", |
2179 | - "sha256": "731821e5293f6b66688a2127094537ce79c103f45a82b27b00a08992e3aa5a7a", |
2180 | - "md5": "b268cfa7e634f070af401f8169adff79", |
2181 | - "size": 7914961 |
2182 | - }, |
2183 | - "lxc.tar.gz": { |
2184 | - "ftype": "lxc.tar.gz", |
2185 | - "path": "0.3.0/cirros-0.3.0-arm-lxc.tar.gz", |
2186 | - "sha256": "fcd3723c956a1c232730dc28513b466657cbe984232ba2fcc30a4e1f55aa91e9", |
2187 | - "md5": "91add49e56cbe6b5004015a4d2f51dbc", |
2188 | - "size": 2043822 |
2189 | - } |
2190 | - }, |
2191 | - "version": "0.3.0", |
2192 | - "pubname": "cirros-0.3.0-arm" |
2193 | - }, |
2194 | - "20130207": { |
2195 | - "items": { |
2196 | - "uec.tar.gz": { |
2197 | - "ftype": "uec.tar.gz", |
2198 | - "path": "0.3.1/cirros-0.3.1-arm-uec.tar.gz", |
2199 | - "sha256": "09dcd3ea6f1d48b3519232973e4dc00fc5e73cbea974cda6b5f7cfa380c6b428", |
2200 | - "md5": "d04e6f26aed123bba2c096581b269e7f", |
2201 | - "size": 7314471 |
2202 | - }, |
2203 | - "rootfs.img.gz": { |
2204 | - "ftype": "rootfs.img.gz", |
2205 | - "path": "0.3.1/cirros-0.3.1-arm-rootfs.img.gz", |
2206 | - "sha256": "9841beefe7a60969585d07cb9f403ce8e73fd56f47b13f8ed111443a0ca50fb3", |
2207 | - "md5": "24205ff08d67b94b13588cee256e83b3", |
2208 | - "size": 10945168 |
2209 | - }, |
2210 | - "lxc.tar.gz": { |
2211 | - "ftype": "lxc.tar.gz", |
2212 | - "path": "0.3.1/cirros-0.3.1-arm-lxc.tar.gz", |
2213 | - "sha256": "2060e59e642b3b2bdf6e34aba3ed15f468bc6f9a8417fc196d01d29b2075493e", |
2214 | - "md5": "7ddea367ecb7ecb91554e18bed7c71bd", |
2215 | - "size": 3466149 |
2216 | - } |
2217 | - }, |
2218 | - "version": "0.3.1", |
2219 | - "pubname": "cirros-0.3.1-arm" |
2220 | - } |
2221 | - } |
2222 | - } |
2223 | - }, |
2224 | - "format": "products:1.0" |
2225 | -} |
2226 | |
2227 | === removed directory 'examples/foocloud' |
2228 | === removed directory 'examples/foocloud/files' |
2229 | === removed directory 'examples/foocloud/files/beta-2' |
2230 | === removed file 'examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-amd64-disk1.img' |
2231 | --- examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-amd64-disk1.img 2013-03-20 17:58:13 +0000 |
2232 | +++ examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-amd64-disk1.img 1970-01-01 00:00:00 +0000 |
2233 | @@ -1,1 +0,0 @@ |
2234 | -fake-content: foovendor-6.1-beta2-server-cloudimg-amd64-disk1.img |
2235 | |
2236 | === removed file 'examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-amd64-root.tar.gz' |
2237 | --- examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-amd64-root.tar.gz 2013-03-20 17:58:13 +0000 |
2238 | +++ examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-amd64-root.tar.gz 1970-01-01 00:00:00 +0000 |
2239 | @@ -1,1 +0,0 @@ |
2240 | -fake-content: foovendor-6.1-beta2-server-cloudimg-amd64-root.tar.gz |
2241 | |
2242 | === removed file 'examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-amd64.tar.gz' |
2243 | --- examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-amd64.tar.gz 2013-03-20 17:58:13 +0000 |
2244 | +++ examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-amd64.tar.gz 1970-01-01 00:00:00 +0000 |
2245 | @@ -1,1 +0,0 @@ |
2246 | -fake-content: foovendor-6.1-beta2-server-cloudimg-amd64.tar.gz |
2247 | |
2248 | === removed file 'examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-i386-disk1.img' |
2249 | --- examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-i386-disk1.img 2013-03-20 17:58:13 +0000 |
2250 | +++ examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-i386-disk1.img 1970-01-01 00:00:00 +0000 |
2251 | @@ -1,1 +0,0 @@ |
2252 | -fake-content: foovendor-6.1-beta2-server-cloudimg-i386-disk1.img |
2253 | |
2254 | === removed file 'examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-i386-root.tar.gz' |
2255 | --- examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-i386-root.tar.gz 2013-03-20 17:58:13 +0000 |
2256 | +++ examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-i386-root.tar.gz 1970-01-01 00:00:00 +0000 |
2257 | @@ -1,1 +0,0 @@ |
2258 | -fake-content: foovendor-6.1-beta2-server-cloudimg-i386-root.tar.gz |
2259 | |
2260 | === removed file 'examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-i386.tar.gz' |
2261 | --- examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-i386.tar.gz 2013-03-20 17:58:13 +0000 |
2262 | +++ examples/foocloud/files/beta-2/foovendor-6.1-beta2-server-cloudimg-i386.tar.gz 1970-01-01 00:00:00 +0000 |
2263 | @@ -1,1 +0,0 @@ |
2264 | -fake-content: foovendor-6.1-beta2-server-cloudimg-i386.tar.gz |
2265 | |
2266 | === removed directory 'examples/foocloud/files/release-20121001' |
2267 | === removed file 'examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-amd64-disk1.img' |
2268 | --- examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-amd64-disk1.img 2013-03-20 17:58:13 +0000 |
2269 | +++ examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-amd64-disk1.img 1970-01-01 00:00:00 +0000 |
2270 | @@ -1,1 +0,0 @@ |
2271 | -fake-content: foovendor-6.1-server-cloudimg-amd64-disk1.img |
2272 | |
2273 | === removed file 'examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-amd64-root.tar.gz' |
2274 | --- examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-amd64-root.tar.gz 2013-03-20 17:58:13 +0000 |
2275 | +++ examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-amd64-root.tar.gz 1970-01-01 00:00:00 +0000 |
2276 | @@ -1,1 +0,0 @@ |
2277 | -fake-content: foovendor-6.1-server-cloudimg-amd64-root.tar.gz |
2278 | |
2279 | === removed file 'examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-amd64.tar.gz' |
2280 | --- examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-amd64.tar.gz 2013-03-20 17:58:13 +0000 |
2281 | +++ examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-amd64.tar.gz 1970-01-01 00:00:00 +0000 |
2282 | @@ -1,1 +0,0 @@ |
2283 | -fake-content: foovendor-6.1-server-cloudimg-amd64.tar.gz |
2284 | |
2285 | === removed file 'examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-i386-disk1.img' |
2286 | --- examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-i386-disk1.img 2013-03-20 17:58:13 +0000 |
2287 | +++ examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-i386-disk1.img 1970-01-01 00:00:00 +0000 |
2288 | @@ -1,1 +0,0 @@ |
2289 | -fake-content: foovendor-6.1-server-cloudimg-i386-disk1.img |
2290 | |
2291 | === removed file 'examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-i386-root.tar.gz' |
2292 | --- examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-i386-root.tar.gz 2013-03-20 17:58:13 +0000 |
2293 | +++ examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-i386-root.tar.gz 1970-01-01 00:00:00 +0000 |
2294 | @@ -1,1 +0,0 @@ |
2295 | -fake-content: foovendor-6.1-server-cloudimg-i386-root.tar.gz |
2296 | |
2297 | === removed file 'examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-i386.tar.gz' |
2298 | --- examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-i386.tar.gz 2013-03-20 17:58:13 +0000 |
2299 | +++ examples/foocloud/files/release-20121001/foovendor-6.1-server-cloudimg-i386.tar.gz 1970-01-01 00:00:00 +0000 |
2300 | @@ -1,1 +0,0 @@ |
2301 | -fake-content: foovendor-6.1-server-cloudimg-i386.tar.gz |
2302 | |
2303 | === removed directory 'examples/foocloud/files/release-20121026.1' |
2304 | === removed file 'examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-amd64-disk1.img' |
2305 | --- examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-amd64-disk1.img 2013-03-20 17:58:13 +0000 |
2306 | +++ examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-amd64-disk1.img 1970-01-01 00:00:00 +0000 |
2307 | @@ -1,1 +0,0 @@ |
2308 | -fake-content: foovendor-6.1-server-cloudimg-amd64-disk1.img |
2309 | |
2310 | === removed file 'examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-amd64-root.tar.gz' |
2311 | --- examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-amd64-root.tar.gz 2013-03-20 17:58:13 +0000 |
2312 | +++ examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-amd64-root.tar.gz 1970-01-01 00:00:00 +0000 |
2313 | @@ -1,1 +0,0 @@ |
2314 | -fake-content: foovendor-6.1-server-cloudimg-amd64-root.tar.gz |
2315 | |
2316 | === removed file 'examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-amd64.tar.gz' |
2317 | --- examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-amd64.tar.gz 2013-03-20 17:58:13 +0000 |
2318 | +++ examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-amd64.tar.gz 1970-01-01 00:00:00 +0000 |
2319 | @@ -1,1 +0,0 @@ |
2320 | -fake-content: foovendor-6.1-server-cloudimg-amd64.tar.gz |
2321 | |
2322 | === removed file 'examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-i386-disk1.img' |
2323 | --- examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-i386-disk1.img 2013-03-20 17:58:13 +0000 |
2324 | +++ examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-i386-disk1.img 1970-01-01 00:00:00 +0000 |
2325 | @@ -1,1 +0,0 @@ |
2326 | -fake-content: foovendor-6.1-server-cloudimg-i386-disk1.img |
2327 | |
2328 | === removed file 'examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-i386-root.tar.gz' |
2329 | --- examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-i386-root.tar.gz 2013-03-20 17:58:13 +0000 |
2330 | +++ examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-i386-root.tar.gz 1970-01-01 00:00:00 +0000 |
2331 | @@ -1,1 +0,0 @@ |
2332 | -fake-content: foovendor-6.1-server-cloudimg-i386-root.tar.gz |
2333 | |
2334 | === removed file 'examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-i386.tar.gz' |
2335 | --- examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-i386.tar.gz 2013-03-20 17:58:13 +0000 |
2336 | +++ examples/foocloud/files/release-20121026.1/foovendor-6.1-server-cloudimg-i386.tar.gz 1970-01-01 00:00:00 +0000 |
2337 | @@ -1,1 +0,0 @@ |
2338 | -fake-content: foovendor-6.1-server-cloudimg-i386.tar.gz |
2339 | |
2340 | === removed directory 'examples/foocloud/streams' |
2341 | === removed directory 'examples/foocloud/streams/v1' |
2342 | === removed file 'examples/foocloud/streams/v1/com.example.foovendor:released:aws.json' |
2343 | --- examples/foocloud/streams/v1/com.example.foovendor:released:aws.json 2013-05-15 12:54:54 +0000 |
2344 | +++ examples/foocloud/streams/v1/com.example.foovendor:released:aws.json 1970-01-01 00:00:00 +0000 |
2345 | @@ -1,122 +0,0 @@ |
2346 | -{ |
2347 | - "datatype": "image-ids", |
2348 | - "updated": "Wed, 20 Mar 2013 17:56:57 +0000", |
2349 | - "content_id": "com.example.foovendor:released:aws", |
2350 | - "products": { |
2351 | - "com.example.foovendor:pinky:server:amd64": { |
2352 | - "endpoint": "https://ec2.us-east-1.amazonaws.com", |
2353 | - "stream": "released", |
2354 | - "versions": { |
2355 | - "20121026.1": { |
2356 | - "items": { |
2357 | - "usee1pe": { |
2358 | - "name": "ebs/foovendor-pinky-12.04-amd64-server-20121026.1", |
2359 | - "root_store": "ebs", |
2360 | - "id": "ami-e720ad8e" |
2361 | - }, |
2362 | - "usee1pi": { |
2363 | - "name": "foovendor-pinky-12.04-amd64-server-20121026.1", |
2364 | - "root_store": "instance-store", |
2365 | - "id": "ami-1f24a976" |
2366 | - } |
2367 | - }, |
2368 | - "label": "release" |
2369 | - }, |
2370 | - "20120929": { |
2371 | - "items": { |
2372 | - "usee1pe": { |
2373 | - "name": "ebs/foovendor-pinky-12.04-amd64-server-20120929", |
2374 | - "root_store": "ebs", |
2375 | - "id": "ami-3b4ff252" |
2376 | - }, |
2377 | - "usee1pi": { |
2378 | - "name": "foovendor-pinky-12.04-amd64-server-20120929", |
2379 | - "root_store": "instance-store", |
2380 | - "id": "ami-cd4cf1a4" |
2381 | - } |
2382 | - }, |
2383 | - "label": "beta2" |
2384 | - }, |
2385 | - "20121001": { |
2386 | - "items": { |
2387 | - "usee1pe": { |
2388 | - "name": "ebs/foovendor-pinky-12.04-amd64-server-20121001", |
2389 | - "root_store": "ebs", |
2390 | - "id": "ami-9878c0f1" |
2391 | - }, |
2392 | - "usee1pi": { |
2393 | - "name": "foovendor-pinky-12.04-amd64-server-20121001", |
2394 | - "root_store": "instance-store", |
2395 | - "id": "ami-52863e3b" |
2396 | - } |
2397 | - }, |
2398 | - "label": "release" |
2399 | - } |
2400 | - }, |
2401 | - "virt_type": "paravirtual", |
2402 | - "region": "us-east-1", |
2403 | - "version": "6.1", |
2404 | - "build": "server", |
2405 | - "release": "pinky", |
2406 | - "arch": "amd64" |
2407 | - }, |
2408 | - "com.example.foovendor:pinky:server:i386": { |
2409 | - "endpoint": "https://ec2.us-east-1.amazonaws.com", |
2410 | - "stream": "released", |
2411 | - "versions": { |
2412 | - "20121026.1": { |
2413 | - "items": { |
2414 | - "usee1pe": { |
2415 | - "name": "ebs/foovendor-pinky-12.04-i386-server-20121026.1", |
2416 | - "root_store": "ebs", |
2417 | - "id": "ami-e720ad8e" |
2418 | - }, |
2419 | - "usee1pi": { |
2420 | - "name": "foovendor-pinky-12.04-i386-server-20121026.1", |
2421 | - "root_store": "instance-store", |
2422 | - "id": "ami-1f24a976" |
2423 | - } |
2424 | - }, |
2425 | - "label": "release" |
2426 | - }, |
2427 | - "20120929": { |
2428 | - "items": { |
2429 | - "usee1pe": { |
2430 | - "name": "ebs/foovendor-pinky-12.04-i386-server-20120929", |
2431 | - "root_store": "ebs", |
2432 | - "id": "ami-3b4ff252" |
2433 | - }, |
2434 | - "usee1pi": { |
2435 | - "name": "foovendor-pinky-12.04-i386-server-20120929", |
2436 | - "root_store": "instance-store", |
2437 | - "id": "ami-cd4cf1a4" |
2438 | - } |
2439 | - }, |
2440 | - "label": "beta2" |
2441 | - }, |
2442 | - "20121001": { |
2443 | - "items": { |
2444 | - "usee1pe": { |
2445 | - "name": "ebs/foovendor-pinky-12.04-i386-server-20121001", |
2446 | - "root_store": "ebs", |
2447 | - "id": "ami-9878c0f1" |
2448 | - }, |
2449 | - "usee1pi": { |
2450 | - "name": "foovendor-pinky-12.04-i386-server-20121001", |
2451 | - "root_store": "instance-store", |
2452 | - "id": "ami-52863e3b" |
2453 | - } |
2454 | - }, |
2455 | - "label": "release" |
2456 | - } |
2457 | - }, |
2458 | - "virt_type": "paravirtual", |
2459 | - "region": "us-east-1", |
2460 | - "version": "6.1", |
2461 | - "build": "server", |
2462 | - "release": "pinky", |
2463 | - "arch": "i386" |
2464 | - } |
2465 | - }, |
2466 | - "format": "products:1.0" |
2467 | -} |
2468 | |
2469 | === removed file 'examples/foocloud/streams/v1/com.example.foovendor:released:download.json' |
2470 | --- examples/foocloud/streams/v1/com.example.foovendor:released:download.json 2015-09-18 13:41:23 +0000 |
2471 | +++ examples/foocloud/streams/v1/com.example.foovendor:released:download.json 1970-01-01 00:00:00 +0000 |
2472 | @@ -1,208 +0,0 @@ |
2473 | -{ |
2474 | - "datatype": "image-downloads", |
2475 | - "updated": "Wed, 20 Mar 2013 17:56:57 +0000", |
2476 | - "content_id": "com.example.foovendor:released:download", |
2477 | - "products": { |
2478 | - "com.example.foovendor:pinky:server:amd64": { |
2479 | - "version": "6.1", |
2480 | - "build": "server", |
2481 | - "stream": "released", |
2482 | - "versions": { |
2483 | - "20121026.1": { |
2484 | - "items": { |
2485 | - "tar.gz": { |
2486 | - "name": "foovendor-pinky-6.1-amd64-server-20121026.1.tar.gz", |
2487 | - "path": "files/release-20121026.1/foovendor-6.1-server-cloudimg-amd64.tar.gz", |
2488 | - "md5": "187ea3b68f9080d4c447b910c8d0838e", |
2489 | - "size": 57, |
2490 | - "ftype": "tar.gz" |
2491 | - }, |
2492 | - "disk1.img": { |
2493 | - "name": "foovendor-pinky-6.1-amd64-server-20121026.1-disk1.img", |
2494 | - "path": "files/release-20121026.1/foovendor-6.1-server-cloudimg-amd64-disk1.img", |
2495 | - "md5": "da499b246265a34db8576983371c6c2a", |
2496 | - "size": 60, |
2497 | - "ftype": "disk1.img" |
2498 | - }, |
2499 | - "root.tar.gz": { |
2500 | - "name": "foovendor-pinky-6.1-amd64-server-20121026.1-root.tar.gz", |
2501 | - "path": "files/release-20121026.1/foovendor-6.1-server-cloudimg-amd64-root.tar.gz", |
2502 | - "md5": "da939f41059a1b1eca16c0c5856f47cd", |
2503 | - "size": 62, |
2504 | - "ftype": "root.tar.gz" |
2505 | - } |
2506 | - }, |
2507 | - "label": "release" |
2508 | - }, |
2509 | - "20120328": { |
2510 | - "items": { |
2511 | - "tar.gz": { |
2512 | - "name": "foovendor-pinky-6.1-beta2-amd64-server-20120328.tar.gz", |
2513 | - "path": "files/beta-2/foovendor-6.1-beta2-server-cloudimg-amd64.tar.gz", |
2514 | - "md5": "c245123c1a7c16dd43962b71c604c5ee", |
2515 | - "size": 63, |
2516 | - "ftype": "tar.gz" |
2517 | - }, |
2518 | - "disk1.img": { |
2519 | - "name": "foovendor-pinky-6.1-beta2-amd64-server-20120328-disk1.img", |
2520 | - "path": "files/beta-2/foovendor-6.1-beta2-server-cloudimg-amd64-disk1.img", |
2521 | - "md5": "34cec541a18352783e736ba280a12201", |
2522 | - "size": 66, |
2523 | - "ftype": "disk1.img" |
2524 | - }, |
2525 | - "root.tar.gz": { |
2526 | - "name": "foovendor-pinky-6.1-beta2-amd64-server-20120328-root.tar.gz", |
2527 | - "path": "files/beta-2/foovendor-6.1-beta2-server-cloudimg-amd64-root.tar.gz", |
2528 | - "md5": "55686ef088f7baf0ebea9349055daa85", |
2529 | - "size": 68, |
2530 | - "ftype": "root.tar.gz" |
2531 | - } |
2532 | - }, |
2533 | - "label": "beta2" |
2534 | - }, |
2535 | - "20121001": { |
2536 | - "items": { |
2537 | - "tar.gz": { |
2538 | - "name": "foovendor-pinky-6.1-amd64-server-20121001.tar.gz", |
2539 | - "path": "files/release-20121001/foovendor-6.1-server-cloudimg-amd64.tar.gz", |
2540 | - "md5": "187ea3b68f9080d4c447b910c8d0838e", |
2541 | - "size": 57, |
2542 | - "ftype": "tar.gz" |
2543 | - }, |
2544 | - "disk1.img": { |
2545 | - "name": "foovendor-pinky-6.1-amd64-server-20121001-disk1.img", |
2546 | - "path": "files/release-20121001/foovendor-6.1-server-cloudimg-amd64-disk1.img", |
2547 | - "md5": "da499b246265a34db8576983371c6c2a", |
2548 | - "size": 60, |
2549 | - "ftype": "disk1.img" |
2550 | - }, |
2551 | - "root.tar.gz": { |
2552 | - "name": "foovendor-pinky-6.1-amd64-server-20121001-root.tar.gz", |
2553 | - "path": "files/release-20121001/foovendor-6.1-server-cloudimg-amd64-root.tar.gz", |
2554 | - "md5": "da939f41059a1b1eca16c0c5856f47cd", |
2555 | - "size": 62, |
2556 | - "ftype": "root.tar.gz" |
2557 | - } |
2558 | - }, |
2559 | - "label": "release" |
2560 | - } |
2561 | - }, |
2562 | - "release": "pinky", |
2563 | - "arch": "amd64" |
2564 | - }, |
2565 | - "com.example.foovendor:pinky:server:i386": { |
2566 | - "version": "6.1", |
2567 | - "build": "server", |
2568 | - "stream": "released", |
2569 | - "versions": { |
2570 | - "20121026.1": { |
2571 | - "items": { |
2572 | - "tar.gz": { |
2573 | - "name": "foovendor-pinky-6.1-i386-server-20121026.1.tar.gz", |
2574 | - "path": "files/release-20121026.1/foovendor-6.1-server-cloudimg-i386.tar.gz", |
2575 | - "md5": "1534e487730c8162131dde430aa5fa5a", |
2576 | - "size": 56, |
2577 | - "ftype": "tar.gz" |
2578 | - }, |
2579 | - "disk1.img": { |
2580 | - "name": "foovendor-pinky-6.1-i386-server-20121026.1-disk1.img", |
2581 | - "path": "files/release-20121026.1/foovendor-6.1-server-cloudimg-i386-disk1.img", |
2582 | - "md5": "d8fa9a536e8cf1bebcee1e26875060bb", |
2583 | - "size": 59, |
2584 | - "ftype": "disk1.img" |
2585 | - }, |
2586 | - "root.tar.gz": { |
2587 | - "name": "foovendor-pinky-6.1-i386-server-20121026.1-root.tar.gz", |
2588 | - "path": "files/release-20121026.1/foovendor-6.1-server-cloudimg-i386-root.tar.gz", |
2589 | - "md5": "de2b46e0fe2ce8c6eda2b4cd809505a9", |
2590 | - "size": 61, |
2591 | - "ftype": "root.tar.gz" |
2592 | - } |
2593 | - }, |
2594 | - "label": "release" |
2595 | - }, |
2596 | - "20120328": { |
2597 | - "items": { |
2598 | - "tar.gz": { |
2599 | - "name": "foovendor-pinky-6.1-beta2-i386-server-20120328.tar.gz", |
2600 | - "path": "files/beta-2/foovendor-6.1-beta2-server-cloudimg-i386.tar.gz", |
2601 | - "md5": "2cd18b60f892af68c9d49c64ce1638e4", |
2602 | - "size": 62, |
2603 | - "ftype": "tar.gz" |
2604 | - }, |
2605 | - "disk1.img": { |
2606 | - "name": "foovendor-pinky-6.1-beta2-i386-server-20120328-disk1.img", |
2607 | - "path": "files/beta-2/foovendor-6.1-beta2-server-cloudimg-i386-disk1.img", |
2608 | - "md5": "e80df7995beb31571e104947e4d7b001", |
2609 | - "size": 65, |
2610 | - "ftype": "disk1.img" |
2611 | - }, |
2612 | - "root.tar.gz": { |
2613 | - "name": "foovendor-pinky-6.1-beta2-i386-server-20120328-root.tar.gz", |
2614 | - "path": "files/beta-2/foovendor-6.1-beta2-server-cloudimg-i386-root.tar.gz", |
2615 | - "md5": "5d86b3e75e56e10e1019fe1153fe488f", |
2616 | - "size": 67, |
2617 | - "ftype": "root.tar.gz" |
2618 | - } |
2619 | - }, |
2620 | - "label": "beta2" |
2621 | - }, |
2622 | - "20121001": { |
2623 | - "items": { |
2624 | - "tar.gz": { |
2625 | - "name": "foovendor-pinky-6.1-i386-server-20121001.tar.gz", |
2626 | - "path": "files/release-20121001/foovendor-6.1-server-cloudimg-i386.tar.gz", |
2627 | - "md5": "1534e487730c8162131dde430aa5fa5a", |
2628 | - "size": 56, |
2629 | - "ftype": "tar.gz" |
2630 | - }, |
2631 | - "disk1.img": { |
2632 | - "name": "foovendor-pinky-6.1-i386-server-20121001-disk1.img", |
2633 | - "path": "files/release-20121001/foovendor-6.1-server-cloudimg-i386-disk1.img", |
2634 | - "md5": "d8fa9a536e8cf1bebcee1e26875060bb", |
2635 | - "size": 59, |
2636 | - "ftype": "disk1.img" |
2637 | - }, |
2638 | - "root.tar.gz": { |
2639 | - "name": "foovendor-pinky-6.1-i386-server-20121001-root.tar.gz", |
2640 | - "path": "files/release-20121001/foovendor-6.1-server-cloudimg-i386-root.tar.gz", |
2641 | - "md5": "de2b46e0fe2ce8c6eda2b4cd809505a9", |
2642 | - "size": 61, |
2643 | - "ftype": "root.tar.gz" |
2644 | - } |
2645 | - }, |
2646 | - "label": "release" |
2647 | - }, |
2648 | - "samepaths": { |
2649 | - "items": { |
2650 | - "tar.gz": { |
2651 | - "name": "foovendor-pinky-6.1-i386-server-20121001.tar.gz", |
2652 | - "path": "files/release-20121001/foovendor-6.1-server-cloudimg-i386.tar.gz", |
2653 | - "md5": "1534e487730c8162131dde430aa5fa5a", |
2654 | - "size": 56, |
2655 | - "ftype": "tar.gz" |
2656 | - }, |
2657 | - "disk1.img": { |
2658 | - "name": "foovendor-pinky-6.1-i386-server-20121001-disk1.img", |
2659 | - "path": "files/release-20121001/foovendor-6.1-server-cloudimg-i386-disk1.img", |
2660 | - "md5": "d8fa9a536e8cf1bebcee1e26875060bb", |
2661 | - "size": 59, |
2662 | - "ftype": "disk1.img" |
2663 | - }, |
2664 | - "root.tar.gz": { |
2665 | - "name": "foovendor-pinky-6.1-i386-server-20121001-root.tar.gz", |
2666 | - "path": "files/release-20121001/foovendor-6.1-server-cloudimg-i386-root.tar.gz", |
2667 | - "md5": "de2b46e0fe2ce8c6eda2b4cd809505a9", |
2668 | - "size": 61, |
2669 | - "ftype": "root.tar.gz" |
2670 | - } |
2671 | - }, |
2672 | - "label": "release" |
2673 | - } |
2674 | - }, |
2675 | - "release": "pinky", |
2676 | - "arch": "i386" |
2677 | - } |
2678 | - }, |
2679 | - "format": "products:1.0" |
2680 | -} |
2681 | |
2682 | === removed file 'examples/foocloud/streams/v1/index.json' |
2683 | --- examples/foocloud/streams/v1/index.json 2013-05-15 12:54:54 +0000 |
2684 | +++ examples/foocloud/streams/v1/index.json 1970-01-01 00:00:00 +0000 |
2685 | @@ -1,26 +0,0 @@ |
2686 | -{ |
2687 | - "index": { |
2688 | - "com.example.foovendor:released:aws": { |
2689 | - "datatype": "image-ids", |
2690 | - "path": "streams/v1/com.example.foovendor:released:aws.json", |
2691 | - "updated": "Wed, 20 Mar 2013 17:56:57 +0000", |
2692 | - "products": [ |
2693 | - "com.example.foovendor:pinky:server:amd64", |
2694 | - "com.example.foovendor:pinky:server:i386" |
2695 | - ], |
2696 | - "format": "products:1.0" |
2697 | - }, |
2698 | - "com.example.foovendor:released:download": { |
2699 | - "datatype": "image-downloads", |
2700 | - "path": "streams/v1/com.example.foovendor:released:download.json", |
2701 | - "updated": "Wed, 20 Mar 2013 17:56:57 +0000", |
2702 | - "products": [ |
2703 | - "com.example.foovendor:pinky:server:amd64", |
2704 | - "com.example.foovendor:pinky:server:i386" |
2705 | - ], |
2706 | - "format": "products:1.0" |
2707 | - } |
2708 | - }, |
2709 | - "updated": "Wed, 20 Mar 2013 17:56:57 +0000", |
2710 | - "format": "index:1.0" |
2711 | -} |
2712 | |
2713 | === removed directory 'examples/keys' |
2714 | === removed file 'examples/keys/README.txt' |
2715 | --- examples/keys/README.txt 2014-06-17 19:23:23 +0000 |
2716 | +++ examples/keys/README.txt 1970-01-01 00:00:00 +0000 |
2717 | @@ -1,21 +0,0 @@ |
2718 | -example.sec, example.pub: |
2719 | - These are example gpg public and private keys. |
2720 | - They are generated by tools/gen-example-key. |
2721 | - |
2722 | - You should be sure to *not* trust anything simply because it is signed |
2723 | - with these keys. |
2724 | - |
2725 | -cloud-images.pub: |
2726 | - pub 4096R/476CF100 2012-10-27 Ubuntu Cloud Image Builder |
2727 | - sub 4096R/9D817405 2012-10-27 |
2728 | - |
2729 | - This is the public key for the entity that signs data on |
2730 | - cloud-images.ubuntu.com data. |
2731 | - |
2732 | -cirros.pub: |
2733 | - pub 4096R/8F4CE6D0 2013-02-26 Cirros Signing Key <signing@cirros-cloud.net> |
2734 | - sub 4096R/0B2CED65 2013-02-26 |
2735 | - sub 4096R/A5DDB840 2013-02-26 [expires: 2020-02-25] |
2736 | - |
2737 | - This is the public key for the entity that signs simplestream |
2738 | - data for http://download.cirros-cloud.net/ . |
2739 | |
2740 | === removed file 'examples/keys/cirros.pub' |
2741 | --- examples/keys/cirros.pub 2013-04-08 19:56:16 +0000 |
2742 | +++ examples/keys/cirros.pub 1970-01-01 00:00:00 +0000 |
2743 | @@ -1,86 +0,0 @@ |
2744 | ------BEGIN PGP PUBLIC KEY BLOCK----- |
2745 | -Version: GnuPG v1.4.12 (GNU/Linux) |
2746 | - |
2747 | -mQINBFEsA6QBEACyuJn4L+OaplLC8+W0cQw7Qqothe2bKArhXOYBwjiu231OCacd |
2748 | -k8B1ebvCcpNXYQ6KyAE7tDuaU0bxUNcgDKkpBDxH99nys4DHIovUgDOJS01G4RAI |
2749 | -Qagy5FtpEDrU1eJ41x5RP1GEA/waOxYvLnjbG7tAm3bpPpQhHldeD/ByYKset35P |
2750 | -he6b0kggUZM8ca9HDUty4I4yWPxyb2pSWLCHnM0oN05sFOig2o6X47dz8FYLtfiT |
2751 | -Ab1bLlhthVwc0vrYll7YFAoGKPwwFDA+ANuOSKcfHgR9gJtzWXODvAK0gYVsSWOh |
2752 | -0G2EVEufeohws1oS2tED3BCH1wyCYqLCxD2IQM1EShKUVhY81mQc4sdyoz1uurbO |
2753 | -gu9tPN7fCp6PRmS83q+Ic2m521dcykeWA/qkYksYIwwcfXnkZOs2XouXIv3lDKT0 |
2754 | -rq+bS9qf87dyGAV3Jgat5IbK3nWzN+iOGu+q3X5XVWZxImK25MqHLRrxR3/n4Rkk |
2755 | -jQsa3dOk/o2Adj70gGyONKDH9/UTaBB6fEKBbUZyCW82K2HcZeuhCzYxV1BR5iQ/ |
2756 | -1Jlk53tNac5gjIR2IzBu6r4zW+KWCnnE1AtNkJM4fe0ggsGvcV1j5VNSeL8XZOjn |
2757 | -4UCOXtgJ/rYkxaCcqCJNHzrDJCYltlUq7Tdx2FZlp+Z9RDhS4GoZBKnZHQARAQAB |
2758 | -tC1DaXJyb3MgU2lnbmluZyBLZXkgPHNpZ25pbmdAY2lycm9zLWNsb3VkLm5ldD6J |
2759 | -AjgEEwECACIFAlEsA6QCGwMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEJWT |
2760 | -hISPTObQ+ooP/12NlKbc3EwG+37w9xR1/n05pUh1x0j0P++QEO8AFNiFhrt6gtoz |
2761 | -z50LpCYaqINuNDrY+7rXLKh5IWlNSxKnI/H06sTZaOsYtYshv9MlIZW8aJrtFuAv |
2762 | -HVLqDbHs4TnzAD0DL8GioepPjg424g9ocnh+J/A/sFEUw6zY+Q4kYeF+6kWWKovT |
2763 | -fWsb966fNRQmAclg4JkpJjyB+cRUbj8MAvP8ZMhvPDAs575kC7kOlk1isF1mZb6z |
2764 | -MVKybFzq4kg/s2Xgq8l3jBtx4BVGKXR8evTaJh9ABqN893yK+jpicAzeya9Yqshv |
2765 | -GoQkgk6X5xzcUQ3feGtM/zThUKQ4KA2tifoEDPQYKI2jHiHrf+SUsJQlAXo/VIC4 |
2766 | -PFkUxyTKxnti3elwmj3WVGTuU87lfsdvbg0OM9FpfYhDVi1wYpjoFux3XRjHTrdy |
2767 | -ll6iWzhpcDPGsV8jqqXqIphoU2sEHwMZC/GwII87AFsRRiItUX9lTAMrKNzxunVe |
2768 | -YWTt1no1A/te5IsQK6hA31K9L0M30h0AC4vJvHpiwDl1PUfrAdyCDtcS++eT9jdK |
2769 | -NccMpyYmE5ZORR9xkOsfiTMNN8aP2fW2t/wB5rBOacTLVCZnu6FZ+rbB522G8vOa |
2770 | -yO4sBogj5H9SijrsUJq1W4CkGtFmMEEeCLjjwuhOd5bauTPrxb8G16/RuQINBFEs |
2771 | -A6QBEADEk7k2S2P2VH6l2HFUz5BaVnFtcGSMT8xQki2gGXt5bl67czs3Ej2vSVWa |
2772 | -D0lZzYxDixobwuih2ox5g9upez8SZKx6mxuLUDU493sWOTF+8uVH5h5ig+3+TOBx |
2773 | -U5uFks7xJpuihxmAwxslJUpoQyUA8a2WzzsXGUGKdnh/lTmm8h/XeUWuAu6Ht6ed |
2774 | -zgzgFaleG3BROaMVO5DWsHp3EZAq3HjEpCo6dFBV/A5b9ZQb6jIVpTInLFb6OoIh |
2775 | -W1w1UYIFkcsRf51Oek6W6TB9lkp5raNH3/Irg3M0zsK5i4Zaq15EdgqliH0XhpLC |
2776 | -1MJNLEJU6gP5Yr9GiWgRdWFmVykxG2AacHxH/hFPWZC32L4y4GX7WeAzJJg2k6Uz |
2777 | -5qz/DgJFa1/vfZW/0Df6TJAnSp4W12tesxgLghdwCzLdogEKqBoWLwoFhnNBe+5h |
2778 | -xpP8eO+nOvwfZeB1mXhVKcq0LNLrKGOediakxhrUlHUtrRDHcRSjzD1tRZO8EsCc |
2779 | -C2jcJjeVZ/ReH/Q/F7P3gQ3QoQzLkY0EZ+FO1z5g8T5C3KOyB7r8dHD2I2J29SOX |
2780 | -i+pFcSpHYw6mZXC4CvxrzpugxvvvmemZFc/Lw99NomFZZoXIUK5qhma+tMdyRQ88 |
2781 | -MakkIll951X5U7LLtrKW5wWOSunXSYRpNSLbqCsfC/7u3NiUAwARAQABiQIfBBgB |
2782 | -AgAJBQJRLAOkAhsMAAoJEJWThISPTObQ/YgQAI/l1puhMa/+THkHH9j9RaEHA3cR |
2783 | -MVgp33QR6zA30+Rl2iFWSZjmSLOVXtlTRe2vIng9Gj5f+Oi24pdQcl6qu6UZ/89l |
2784 | -8X7l3pt1zOeGyliK2blCKXdBLR0tlHb+twCI5fPZ+K5NGPtMYS8zbAnrKKfWfuOr |
2785 | -04iiV3rJ5j4MHwGbu63HpgzwHQOQYcFWuqBk/bjPFwudt5+u/FVNAdstDkDDk9dF |
2786 | -W4DUFv0Yd2q1aI3/pF1HqzzmrP/1mFA7RoyiT/csihpp0WWlazN7+fTsNd6cikN5 |
2787 | -hJtzEKD66abjLB2S3IYIgbJHKR1XylYTnFQG9fxlCR4W3xB27XaXAoGOni1DwAIT |
2788 | -3yUoAMWCxuXcMd5oqwQDNArc1VyRedhrQPQM4jF5vRljoLV2kkZ6WkDFNQBzB3I5 |
2789 | -mD8NRGmkWgFGvyj6hhNgIwWijOBIG4FbwLT/HUDhiS0uoIG0lL6qGa5V+j9jnWaM |
2790 | -M77OG9U/z+SHuC0AL/DpKDvj0Xii+qpXeIiHQxA0XQMWTgnQozfKeBQLsKN0RMHb |
2791 | -IBzQg9qvws2gOtORniO7UMfv+U4rL9AQSMEan/Tohk6ZmUisHvi4vtWNsAxqNjXJ |
2792 | -7dqmmy8SBwkI/+eirT2Q9+vRGHqMC1Z7JDMGPSMGARRks9xKRln0FdPTyxTmObOQ |
2793 | -26TVo7HvWs+vVZDbuQINBFEsBg4BEADO6FgdZBI5PwpDvTplDVm10cQo7N9mcCJn |
2794 | -eRcrj4VQ89OTfSmJH3Qpf6JkG/UGS/kO6vIDF5b2SzRPAYT1QM3lVYhixU1gVPv1 |
2795 | -mp4zHOJse5thnaD7HlpvM/VBnN8h+qAo6YSYhlmYc9FqLSmZRoNE2+WGp/6G/5iB |
2796 | -r2lOs1Iii1HW2XYgl9Rw/HnwHjXAaZiCCt0EXvLoutw3KvIirHHfkVEsX8p1dloR |
2797 | -HCSu40l2t29e1ujkl/LWb1UkBv9a/OrrQEVqpDfnO/ai/PJ8KSEMUYnB9eIhM5J4 |
2798 | -OvhiaKVJI5uJVsMRFm8NUCmguVB1eXeQ1ndvWn1CeKJeyKO04BFR2ZwMVq9Pdcbe |
2799 | -Ga8Rz8poHI/dsut/EPPZdOnTr3LbqH+f0f+P+UsRMLXuV8O4tKZu4mrl9XEdb3yJ |
2800 | -18atOL2bHNvAHXXN45UXCLU6j1qWolO9yOuBNw6fPbsagK3kfvo6SBlAp1LcHjHd |
2801 | -OKVWM3cqUll7/xo3cBiIvMRTvZlzGSAssGWe0kt9O/0a5pPJRxyj8G1HGZ8BzDZz |
2802 | -JpPD9dcU/NFD5qB+gZjGrJqycdgw79JMyUCHRZpzeRDDZb0AN+NFiVqgQFnhMLek |
2803 | -UkILyJnVnLHaSM0vh0/++P3O6lqsQ99AKaFm1pNZCUMNF9ZU0i8/if8VKhu7Hly0 |
2804 | -dbjDMsjWMQARAQABiQREBBgBAgAPBQJRLAYOAhsCBQkNKGiAAikJEJWThISPTObQ |
2805 | -wV0gBBkBAgAGBQJRLAYOAAoJEGRyWpml3bhA+SQQAMegxIPVOb7TnOzf5VazTa0a |
2806 | -sC+PuEWDNIz2jns2TfNHhRQx+Eb5BXQKW0OwXxyAv4+TgA2WTpWueCzEtnfXdIxH |
2807 | -rnjp96MLUOB/j1jIzAJADGVjcEc1kO6VVF61ba3D7ST2Z7YTQ07krsZiGD78UlxF |
2808 | -zoOHBkiQTIkXjIAFOu0/TqlwN4JBNRr61GtMHyI5awwgB0RParT0Vfkki3NlR2T/ |
2809 | -bym02l2uIlGLsq0owiRdY5H9RoOyMdhKC72CSBv5UyeAqk9P5B99OyWHoQ7WZTWO |
2810 | -aRHkWpXaql4wWyzdoQdtJH5J5XN9/5RFUxlltcXRy/+grJUrlpd886hN8vrrg3eB |
2811 | -fOyts/K2JIk99WBMRf4BxwyFA9wWvoGoozFVjSzBFtluOqPtSWRHgzm5cqdZTCVT |
2812 | -TcSxgYkCdPlHClxv78aVi9MmEEk5TIWSHb/jjE5Lv0vOPCgdmRlhAVC7ghFj+BO1 |
2813 | -5a5Um3TS5StZskOrAQtzg2Y7asWET9fsaWXCS/iom5saekmkbBXO4EwiQKlkoFWU |
2814 | -8oGSWFcIc4LnJ467QHDMGMBFq4AQfOLgi9+G1HiphXdJrDesBXV755/mBZfiIKOM |
2815 | -W2QLoCWi065FTRD3V7y0V5dpKjt6wVkNrVozeF0rWivErVu/r8H6Aee2L0VCPB6j |
2816 | -NF73z67E9Dzj4QT3LtoaWZgQAI445UYbBD/SdwtbYWTwlRkJY88isJGA2nPpDMfq |
2817 | -PR9JlBHoCCBf0IrsXoLXuFoCFlviROqOCsfvJ6R7bsZmmWwqWvBqENvrW8rwJTVB |
2818 | -XcSj23TNLaqQ/kef8JDuscVn7tDwb7dCIye0fG/eZskTsMJ9Osgt9I6S5Fz0yFHv |
2819 | -7xJlXjEwkxYXdyGoXEW3MbQuM7Y3LHSm8Y/M6boo9OMyrdK1XObiqhgYUoBzbD0y |
2820 | -nBdxQvr18wNLoM1KysvOs0yvBHhMRZXyt3pdTFCzLBYl5C94267DhiL9EJ3x8qMG |
2821 | -E7Yqgu9sjHrgGy/rZUlGj/l2uzd6pYzlcyaABKLO9T0H1Y2Xpx/+d9GGyy0DHVdO |
2822 | -FYORNtZIi3Gc5mKlL38P8eL4AAoPLp5nasy9Y3aAAKOBR2YW/BhnEpMjRndOvoxy |
2823 | -NCQgPZxyAKKnzCFyLvlbRN0AYhOWQDjXFHbc+RZsrJcgAR6XS9PwBe6yW1sh888c |
2824 | -dCSi9/XNyKJX9IR8ucdInZUAc4qrfi9zCt//4ZoHeW48OS7OgnoA3Y6RZR+UbSQE |
2825 | -6aBTt6z5e6SyaKRx7OlcqK3G19KmEuFzH18THtPD1s+kiUMHKXouooUoLbMEvW8P |
2826 | -oKte55W4stewkhS8DZV5IkvYZzPMQ8ks6GMdzHiNVkEujUkUNsEualm5Q8hEzPBA |
2827 | -8dxY |
2828 | -=NgGK |
2829 | ------END PGP PUBLIC KEY BLOCK----- |
2830 | |
2831 | === removed file 'examples/keys/cloud-images.pub' |
2832 | --- examples/keys/cloud-images.pub 2013-03-22 16:51:38 +0000 |
2833 | +++ examples/keys/cloud-images.pub 1970-01-01 00:00:00 +0000 |
2834 | @@ -1,53 +0,0 @@ |
2835 | ------BEGIN PGP PUBLIC KEY BLOCK----- |
2836 | -Version: GnuPG v1.4.12 (GNU/Linux) |
2837 | - |
2838 | -mQINBFCMc9EBEADDKn9mOi9VZhW+0cxmu3aFZWMg0p7NEKuIokkEdd6P+BRITccO |
2839 | -ddDLaBuuamMbt/V1vrxWC5J+UXe33TwgO6KGfH+ECnXD5gYdEOyjVKkUyIzYV5RV |
2840 | -U5BMrxTukHuh+PkcMVUy5vossCk9MivtCRIqM6eRqfeXv6IBV9MFkAbG3x96ZNI/ |
2841 | -TqaWTlaHGszz2Axf9JccHCNfb3muLI2uVnUaojtDiZPm9SHTn6O0p7Tz7M7+P8qy |
2842 | -vc6bdn5FYAk+Wbo+zejYVBG/HLLE4+fNZPESGVCWZtbZODBPxppTnNVm3E84CTFt |
2843 | -pmWFBvBE/q2G9e8s5/mP2ATrzLdUKMxr3vcbNX+NY1Uyvn0Z02PjbxThiz1G+4qh |
2844 | -6Ct7gprtwXPOB/bCITZL9YLrchwXiNgLLKcGF0XjlpD1hfELGi0aPZaHFLAa6qq8 |
2845 | -Ro9WSJljY/Z0g3woj6sXpM9TdWe/zaWhxBGmteJl33WBV7a1GucN0zF1dHIvev4F |
2846 | -krp13Uej3bMWLKUWCmZ01OHStLASshTqVxIBj2rgsxIcqH66DKTSdZWyBQtgm/kC |
2847 | -qBvuoQLFfUgIlGZihTQ96YZXqn+VfBiFbpnh1vLt24CfnVdKmzibp48KkhfqduDE |
2848 | -Xxx/f/uZENH7t8xCuNd3p+u1zemGNnxuO8jxS6Ico3bvnJaG4DAl48vaBQARAQAB |
2849 | -tG9VYnVudHUgQ2xvdWQgSW1hZ2UgQnVpbGRlciAoQ2Fub25pY2FsIEludGVybmFs |
2850 | -IENsb3VkIEltYWdlIEJ1aWxkZXIpIDx1YnVudHUtY2xvdWRidWlsZGVyLW5vcmVw |
2851 | -bHlAY2Fub25pY2FsLmNvbT6JAjgEEwECACIFAlCMc9ECGwMGCwkIBwMCBhUIAgkK |
2852 | -CwQWAgMBAh4BAheAAAoJEH/z9AhHbPEAvRIQAMLE4ZMYiLvwSoWPAicM+3FInaqP |
2853 | -2rf1ZEf1k6175/G2n8cG3vK0nIFQE9Cus+ty2LrTggm79onV2KBGGScKe3ga+meO |
2854 | -txj601Wd7zde10IWUa1wlTxPXBxLo6tpF4s4aw6xWOf4OFqYfPU4esKblFYn1eMK |
2855 | -Dd53s3/123u8BZqzFC8WSMokY6WgBa+hvr5J3qaNT95UXo1tkMf65ZXievcQJ+Hr |
2856 | -bp1m5pslHgd5PqzlultNWePwzqmHXXf14zI1QKtbc4UjXPQ+a59ulZLVdcpvmbjx |
2857 | -HdZfK0NJpQX+j5PU6bMuQ3QTMscuvrH4W41/zcZPFaPkdJE5+VcYDL17DBFVzknJ |
2858 | -eC1uzNHxRqSMRQy9fzOuZ72ARojvL3+cyPR1qrqSCceX1/Kp838P2/CbeNvJxadt |
2859 | -liwI6rzUgK7mq1Bw5LTyBo3mLwzRJ0+eJHevNpxl6VoFyuoA3rCeoyE4on3oah1G |
2860 | -iAJt576xXMDoa1Gdj3YtnZItEaX3jb9ZB3iz9WkzZWlZsssdyZMNmpYV30Ayj3CE |
2861 | -KyurYF9lzIQWyYsNPBoXORNh73jkHJmL6g1sdMaxAZeQqKqznXbuhBbt8lkbEHMJ |
2862 | -Stxc2IGZaNpQ+/3LCwbwCphVnSMq+xl3iLg6c0s4uRn6FGX+8aknmc/fepvRe+ba |
2863 | -ntqvgz+SMPKrjeevuQINBFCMc9EBEADKGFPKBL7/pMSTKf5YH1zhFH2lr7tf5hbz |
2864 | -ztsx6j3y+nODiaQumdG+TPMbrFlgRlJ6Ah1FTuJZqdPYObGSQ7qd/VvvYZGnDYJv |
2865 | -Z1kPkNDmCJrWJs+6PwNARvyLw2bMtjCIOAq/k8wByKkMzegobJgWsbr2Jb5fT4cv |
2866 | -FxYpm3l0QxQSw49rriO5HmwyiyG1ncvaFUcpxXJY8A2s7qX1jmjsqDY1fWsv5PaN |
2867 | -ue0Fr3VXfOi9p+0CfaPY0Pl4GHzat/D+wLwnOhnjl3hFtfbhY5bPl5+cD51SbOnh |
2868 | -2nFv+bUK5HxiZlz0bw8hTUBN3oSbAC+2zViRD/9GaBYY1QjimOuAfpO1GZmqohVI |
2869 | -msZKxHNIIsk5H98mN2+LB3vH+B6zrSMDm3d2Hi7ZA8wH26mLIKLbVkh7hr8RGQjf |
2870 | -UZRxeQEf+f8F3KVoSqmfXGJfBMUtGQMTkaIeEFpMobVeHZZ3wk+Wj3dCMZ6bbt2i |
2871 | -QBaoa7SU5ZmRShJkPJzCG3SkqN+g9ZcbFMQsybl+wLN7UnZ2MbSk7JEy6SLsyuVi |
2872 | -7EjLmqHmG2gkybisnTu3wjJezpG12oz//cuylOzjuPWUWowVQQiLs3oANzYdZ0Hp |
2873 | -SuNjjtEILSRnN5FAeogs0AKH6sy3kKjxtlj764CIgn1hNidSr2Hyb4xbJ/1GE3Rk |
2874 | -sjJi6uYIJwARAQABiQIfBBgBAgAJBQJQjHPRAhsMAAoJEH/z9AhHbPEA6IsP/3jJ |
2875 | -DaowJcKOBhU2TXZglHM+ZRMauHRZavo+xAKmqgQc/izgtyMxsLwJQ+wcTEQT5uqE |
2876 | -4DoWH2T7DGiHZd/89Qe6HuRExR4p7lQwUop7kdoabqm1wQfcqr+77Znp1+KkRDyS |
2877 | -lWfbsh9ARU6krQGryODEOpXJdqdzTgYhdbVRxq6dUopz1Gf+XDreFgnqJ+okGve2 |
2878 | -fJGERKYynUmHxkFZJPWZg5ifeGVt+YY6vuOCg489dzx/CmULpjZeiOQmWyqUzqy2 |
2879 | -QJ70/sC8BJYCjsESId9yPmgdDoMFd+gf3jhjpuZ0JHTeUUw+ncf+1kRf7LAALPJp |
2880 | -2PTSo7VXUwoEXDyUTM+dI02dIMcjTcY4yxvnpxRFFOtklvXt8Pwa9x/aCmJb9f0E |
2881 | -5FO0nj7l9pRd2g7UCJWETFRfSW52iktvdtDrBCft9OytmTl492wAmgbbGeoRq3ze |
2882 | -QtzkRx9cPiyNQokjXXF+SQcq586oEd8K/JUSFPdvth3IoKlfnXSQnt/hRKv71kbZ |
2883 | -IXmR3B/q5x2Msr+NfUxyXfUnYOZ5KertdprUfbZjudjmQ78LOvqPF8TdtHg3gD2H |
2884 | -+G2z+IoH7qsOsc7FaJsIIa4+dljwV3QZTE7JFmsas90bRcMuM4D37p3snOpHAHY3 |
2885 | -p7vH1ewg+vd9ySST0+OkWXYpbMOIARfBKyrGM3nu |
2886 | -=+MFT |
2887 | ------END PGP PUBLIC KEY BLOCK----- |
2888 | |
2889 | === removed file 'examples/keys/example.pub' |
2890 | --- examples/keys/example.pub 2013-02-26 04:47:24 +0000 |
2891 | +++ examples/keys/example.pub 1970-01-01 00:00:00 +0000 |
2892 | @@ -1,14 +0,0 @@ |
2893 | ------BEGIN PGP PUBLIC KEY BLOCK----- |
2894 | -Version: GnuPG v1.4.11 (GNU/Linux) |
2895 | - |
2896 | -mI0EUSw66gEEAM6AjeB/KtvuLbkbn6F0Whew2sYx5O2j2smSgwJ0oevnlRzneyXh |
2897 | -kUIR+wH5KBDIz5Ikp35ZrZFYoP++7VMALDTp9l+OOlrbz4rQzwI8HvXumkhT+BgE |
2898 | -lfN10eu0rBkVNxqt9lXuMNYwgJJtfBPzXVBQju6QDYx5Uodxk9C9TXapABEBAAG0 |
2899 | -XFNpbXBsZSBTdHJlYW1zIFRlc3QgVXNlciAoVGVzdCBVc2FnZSBPbmx5LiBEbyBO |
2900 | -b3QgSW1wb3J0LikgPHNpbXBsZXN0cmVhbXNAYm9ndXMuZXhhbXBsZS5jb20+iL4E |
2901 | -EwECACgFAlEsOuoCGy8FCRLMAwAGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJ |
2902 | -EKlxSiA5Z1NuK0ID/R8iBwVt/9tqFy7eeJzCDK0O7QcpmhvKyjPLLmsUhysx8kC7 |
2903 | -S89yuWyr6iQcjAoAMK6EkOZgRoFfOIA+hZkFC0blFHLCrdSghSQQm6hL/XJuWtkf |
2904 | -HBdu7yKudGzGyYmpGYYG69zz+he5EZUtY1fR9PSGSM+ZwCLznHdCJix7bNi0 |
2905 | -=HEJL |
2906 | ------END PGP PUBLIC KEY BLOCK----- |
2907 | |
2908 | === removed file 'examples/keys/example.sec' |
2909 | --- examples/keys/example.sec 2013-02-26 04:47:24 +0000 |
2910 | +++ examples/keys/example.sec 1970-01-01 00:00:00 +0000 |
2911 | @@ -1,21 +0,0 @@ |
2912 | ------BEGIN PGP PRIVATE KEY BLOCK----- |
2913 | -Version: GnuPG v1.4.11 (GNU/Linux) |
2914 | - |
2915 | -lQHXBFEsOuoBBADOgI3gfyrb7i25G5+hdFoXsNrGMeTto9rJkoMCdKHr55Uc53sl |
2916 | -4ZFCEfsB+SgQyM+SJKd+Wa2RWKD/vu1TACw06fZfjjpa28+K0M8CPB717ppIU/gY |
2917 | -BJXzddHrtKwZFTcarfZV7jDWMICSbXwT811QUI7ukA2MeVKHcZPQvU12qQARAQAB |
2918 | -AAP2KSNzIEY1Q5svgLEAHCoRyKZy7wkBklYSQBXwA404tMZt7lQvNFy7k24Bk2MP |
2919 | -mEhpEbQ7qfAzo8EEUe63WNGv/H6yl37pcS2rKxGdar9/dFV2t/TbJaehKotIvG9D |
2920 | -x1CvuT/7DQRj9rGWrDrhx2XIz8hpD21bxrDb2TEF5WjfAQIA05tN+7zxTXSKq7Wt |
2921 | -215ba4kBhKKuvrYMN5m871O/cNJfVh9ABea4xRFOOTkcpXsHAl1JPV52wRlHpBoe |
2922 | -b36goQIA+dMapApF9zYflJ5rp3RLCwH0YwmY55+MBL5OTN7PM6DFs61rQG1ZO3x8 |
2923 | -VJ1GNvpVhEuIBUmsD2O4BVYekDsxCQIAuqMgVMVDfj7P2MeMKZ888XphQuYeJdIq |
2924 | -IckpdKnZSKSU0oXKiB9y0AyptB1Aih8IhF00EIURWjMI//19JkBXuJNetFxTaW1w |
2925 | -bGUgU3RyZWFtcyBUZXN0IFVzZXIgKFRlc3QgVXNhZ2UgT25seS4gRG8gTm90IElt |
2926 | -cG9ydC4pIDxzaW1wbGVzdHJlYW1zQGJvZ3VzLmV4YW1wbGUuY29tPoi+BBMBAgAo |
2927 | -BQJRLDrqAhsvBQkSzAMABgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRCpcUog |
2928 | -OWdTbitCA/0fIgcFbf/bahcu3nicwgytDu0HKZobysozyy5rFIcrMfJAu0vPcrls |
2929 | -q+okHIwKADCuhJDmYEaBXziAPoWZBQtG5RRywq3UoIUkEJuoS/1yblrZHxwXbu8i |
2930 | -rnRsxsmJqRmGBuvc8/oXuRGVLWNX0fT0hkjPmcAi85x3QiYse2zYtA== |
2931 | -=svaP |
2932 | ------END PGP PRIVATE KEY BLOCK----- |
2933 | |
2934 | === removed directory 'examples/minimal' |
2935 | === removed directory 'examples/minimal/product1' |
2936 | === removed directory 'examples/minimal/product1/20150915' |
2937 | === removed file 'examples/minimal/product1/20150915/root.img' |
2938 | --- examples/minimal/product1/20150915/root.img 2015-09-15 20:31:52 +0000 |
2939 | +++ examples/minimal/product1/20150915/root.img 1970-01-01 00:00:00 +0000 |
2940 | @@ -1,1 +0,0 @@ |
2941 | -content of product1/20150915/root.img |
2942 | |
2943 | === removed file 'examples/minimal/product1/20150915/text.txt' |
2944 | --- examples/minimal/product1/20150915/text.txt 2015-09-15 20:31:52 +0000 |
2945 | +++ examples/minimal/product1/20150915/text.txt 1970-01-01 00:00:00 +0000 |
2946 | @@ -1,1 +0,0 @@ |
2947 | -content of product1/20150915/text.txt |
2948 | |
2949 | === removed directory 'examples/minimal/streams' |
2950 | === removed directory 'examples/minimal/streams/v1' |
2951 | === removed file 'examples/minimal/streams/v1/download.json' |
2952 | --- examples/minimal/streams/v1/download.json 2015-09-15 20:31:52 +0000 |
2953 | +++ examples/minimal/streams/v1/download.json 1970-01-01 00:00:00 +0000 |
2954 | @@ -1,28 +0,0 @@ |
2955 | -{ |
2956 | - "datatype": "image-downloads", |
2957 | - "format": "products:1.0", |
2958 | - "updated": "Tue, 15 Sep 2015 16:15:24 -0400", |
2959 | - "content_id": "com.example:download", |
2960 | - "products": { |
2961 | - "com.example:product1": { |
2962 | - "versions": { |
2963 | - "20150915": { |
2964 | - "items": { |
2965 | - "item1": { |
2966 | - "ftype": "text", |
2967 | - "path": "product1/20150915/text.txt", |
2968 | - "sha256": "f4797060c79363d37129656e5069e817cfd144ba9a1db0a392eeba0c534316dd", |
2969 | - "size": 38 |
2970 | - }, |
2971 | - "item2": { |
2972 | - "ftype": "root.img", |
2973 | - "path": "product1/20150915/root.img", |
2974 | - "sha256": "0e2f431f4e4063483708ce24448af8586e115c984e483d60bdb532194536ece4", |
2975 | - "size": 38 |
2976 | - } |
2977 | - } |
2978 | - } |
2979 | - } |
2980 | - } |
2981 | - } |
2982 | -} |
2983 | |
2984 | === removed file 'examples/minimal/streams/v1/index.json' |
2985 | --- examples/minimal/streams/v1/index.json 2015-09-15 20:31:52 +0000 |
2986 | +++ examples/minimal/streams/v1/index.json 1970-01-01 00:00:00 +0000 |
2987 | @@ -1,15 +0,0 @@ |
2988 | -{ |
2989 | - "index": { |
2990 | - "com.example:download": { |
2991 | - "datatype": "image-downloads", |
2992 | - "path": "streams/v1/download.json", |
2993 | - "updated": "Tue, 15 Sep 2015 16:15:24 -0400", |
2994 | - "products": [ |
2995 | - "com.example:product1" |
2996 | - ], |
2997 | - "format": "products:1.0" |
2998 | - } |
2999 | - }, |
3000 | - "updated": "Tue, 15 Sep 2015 16:15:24 -0400", |
3001 | - "format": "index:1.0" |
3002 | -} |
3003 | |
3004 | === removed file 'setup.py' |
3005 | --- setup.py 2016-08-02 20:12:59 +0000 |
3006 | +++ setup.py 1970-01-01 00:00:00 +0000 |
3007 | @@ -1,28 +0,0 @@ |
3008 | -from distutils.core import setup |
3009 | -from glob import glob |
3010 | -import os |
3011 | - |
3012 | -VERSION = '0.1.0' |
3013 | - |
3014 | - |
3015 | -def is_f(p): |
3016 | - return os.path.isfile(p) |
3017 | - |
3018 | - |
3019 | -setup( |
3020 | - name="python-simplestreams", |
3021 | - description='Library and tools for using Simple Streams data', |
3022 | - version=VERSION, |
3023 | - author='Scott Moser', |
3024 | - author_email='scott.moser@canonical.com', |
3025 | - license="AGPL", |
3026 | - url='http://launchpad.net/simplestreams/', |
3027 | - packages=['simplestreams', 'simplestreams.mirrors', |
3028 | - 'simplestreams.objectstores'], |
3029 | - scripts=glob('bin/*'), |
3030 | - data_files=[ |
3031 | - ('lib/simplestreams', glob('tools/hook-*')), |
3032 | - ('share/doc/simplestreams', |
3033 | - [f for f in glob('doc/*') if is_f(f)]), |
3034 | - ] |
3035 | -) |
3036 | |
3037 | === modified file 'simplestreams/__init__.py' |
3038 | --- simplestreams/__init__.py 2018-06-25 18:03:13 +0000 |
3039 | +++ simplestreams/__init__.py 2018-06-27 19:28:50 +0000 |
3040 | @@ -1,16 +1,10 @@ |
3041 | import os |
3042 | +import warnings |
3043 | |
3044 | _readme = os.path.join(os.path.dirname(__file__), "..", "README.txt") |
3045 | if os.path.exists(_readme): |
3046 | - from datetime import date |
3047 | - import warnings |
3048 | with open(_readme, "r") as fp: |
3049 | content = fp.read() |
3050 | - if (not os.environ.get("SIMPLESTREAMS_BZR") and |
3051 | - date.today() > date(2018, 7, 31)): |
3052 | - raise DeprecationWarning("\n" + content) |
3053 | - else: |
3054 | - warnings.showwarning("\n" + content, UserWarning, |
3055 | - filename=None, lineno=None, line=False) |
3056 | + raise RuntimeError('\n' + content) |
3057 | |
3058 | # vi: ts=4 expandtab |
3059 | |
3060 | === removed file 'simplestreams/checksum_util.py' |
3061 | --- simplestreams/checksum_util.py 2015-09-22 14:48:33 +0000 |
3062 | +++ simplestreams/checksum_util.py 1970-01-01 00:00:00 +0000 |
3063 | @@ -1,110 +0,0 @@ |
3064 | -# Copyright (C) 2015 Canonical Ltd. |
3065 | -# |
3066 | -# Author: Scott Moser <scott.moser@canonical.com> |
3067 | -# |
3068 | -# Simplestreams is free software: you can redistribute it and/or modify it |
3069 | -# under the terms of the GNU Affero General Public License as published by |
3070 | -# the Free Software Foundation, either version 3 of the License, or (at your |
3071 | -# option) any later version. |
3072 | -# |
3073 | -# Simplestreams is distributed in the hope that it will be useful, but |
3074 | -# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
3075 | -# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public |
3076 | -# License for more details. |
3077 | -# |
3078 | -# You should have received a copy of the GNU Affero General Public License |
3079 | -# along with Simplestreams. If not, see <http://www.gnu.org/licenses/>. |
3080 | -import hashlib |
3081 | - |
3082 | -# these are in order of increasing preference |
3083 | -CHECKSUMS = ("md5", "sha256", "sha512") |
3084 | - |
3085 | -try: |
3086 | - ALGORITHMS = list(getattr(hashlib, 'algorithms')) |
3087 | -except AttributeError: |
3088 | - ALGORITHMS = list(hashlib.algorithms_available) |
3089 | - |
3090 | - |
3091 | -class checksummer(object): |
3092 | - _hasher = None |
3093 | - algorithm = None |
3094 | - expected = None |
3095 | - |
3096 | - def __init__(self, checksums): |
3097 | - if not checksums: |
3098 | - self._hasher = None |
3099 | - return |
3100 | - |
3101 | - for meth in CHECKSUMS: |
3102 | - if meth in checksums and meth in ALGORITHMS: |
3103 | - self._hasher = hashlib.new(meth) |
3104 | - self.algorithm = meth |
3105 | - |
3106 | - self.expected = checksums.get(self.algorithm, None) |
3107 | - |
3108 | - if not self._hasher: |
3109 | - raise TypeError("Unable to find suitable hash algorithm") |
3110 | - |
3111 | - def update(self, data): |
3112 | - if self._hasher is None: |
3113 | - return |
3114 | - self._hasher.update(data) |
3115 | - |
3116 | - def hexdigest(self): |
3117 | - if self._hasher is None: |
3118 | - return None |
3119 | - return self._hasher.hexdigest() |
3120 | - |
3121 | - def check(self): |
3122 | - return (self.expected is None or self.expected == self.hexdigest()) |
3123 | - |
3124 | - def __str__(self): |
3125 | - return ("checksummer (algorithm=%s expected=%s)" % |
3126 | - (self.algorithm, self.expected)) |
3127 | - |
3128 | - |
3129 | -def item_checksums(item): |
3130 | - return {k: item[k] for k in CHECKSUMS if k in item} |
3131 | - |
3132 | - |
3133 | -class SafeCheckSummer(checksummer): |
3134 | - """SafeCheckSummer raises ValueError if checksums are not provided.""" |
3135 | - def __init__(self, checksums, allowed=None): |
3136 | - if allowed is None: |
3137 | - allowed = CHECKSUMS |
3138 | - super(SafeCheckSummer, self).__init__(checksums) |
3139 | - if self.algorithm not in allowed: |
3140 | - raise ValueError( |
3141 | - "provided checksums (%s) did not include any allowed (%s)" % |
3142 | - (checksums, allowed)) |
3143 | - |
3144 | - |
3145 | -class InvalidChecksum(ValueError): |
3146 | - def __init__(self, path, cksum, size=None, expected_size=None, msg=None): |
3147 | - self.path = path |
3148 | - self.cksum = cksum |
3149 | - self.size = size |
3150 | - self.expected_size = expected_size |
3151 | - self.msg = msg |
3152 | - |
3153 | - def __str__(self): |
3154 | - if self.msg is not None: |
3155 | - return self.msg |
3156 | - if not isinstance(self.expected_size, int): |
3157 | - msg = "Invalid size '%s' at %s." % (self.expected_size, self.path) |
3158 | - else: |
3159 | - msg = ("Invalid %s Checksum at %s. Found %s. Expected %s. " |
3160 | - "read %s bytes expected %s bytes." % |
3161 | - (self.cksum.algorithm, self.path, |
3162 | - self.cksum.hexdigest(), self.cksum.expected, |
3163 | - self.size, self.expected_size)) |
3164 | - if self.size: |
3165 | - msg += (" (size %s expected %s)" % |
3166 | - (self.size, self.expected_size)) |
3167 | - return msg |
3168 | - |
3169 | - |
3170 | -def invalid_checksum_for_reader(reader, msg=None): |
3171 | - return InvalidChecksum(path=reader.url, cksum=reader.checksummer, |
3172 | - size=reader.bytes_read, expected_size=reader.size, |
3173 | - msg=msg) |
3174 | |
3175 | === removed file 'simplestreams/contentsource.py' |
3176 | --- simplestreams/contentsource.py 2017-10-24 13:33:34 +0000 |
3177 | +++ simplestreams/contentsource.py 1970-01-01 00:00:00 +0000 |
3178 | @@ -1,472 +0,0 @@ |
3179 | -# Copyright (C) 2013 Canonical Ltd. |
3180 | -# |
3181 | -# Author: Scott Moser <scott.moser@canonical.com> |
3182 | -# |
3183 | -# Simplestreams is free software: you can redistribute it and/or modify it |
3184 | -# under the terms of the GNU Affero General Public License as published by |
3185 | -# the Free Software Foundation, either version 3 of the License, or (at your |
3186 | -# option) any later version. |
3187 | -# |
3188 | -# Simplestreams is distributed in the hope that it will be useful, but |
3189 | -# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
3190 | -# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public |
3191 | -# License for more details. |
3192 | -# |
3193 | -# You should have received a copy of the GNU Affero General Public License |
3194 | -# along with Simplestreams. If not, see <http://www.gnu.org/licenses/>. |
3195 | - |
3196 | -import errno |
3197 | -import io |
3198 | -import os |
3199 | -import sys |
3200 | - |
3201 | -from . import checksum_util |
3202 | - |
3203 | -if sys.version_info > (3, 0): |
3204 | - import urllib.parse as urlparse |
3205 | - import urllib.request as urllib_request |
3206 | - import urllib.error as urllib_error |
3207 | -else: |
3208 | - import urlparse |
3209 | - import urllib2 as urllib_request |
3210 | - urllib_error = urllib_request |
3211 | - |
3212 | -READ_BUFFER_SIZE = 1024 * 10 |
3213 | - |
3214 | -try: |
3215 | - # We try to use requests because we can do gzip encoding with it. |
3216 | - # however requests < 1.1 didn't have 'stream' argument to 'get' |
3217 | - # making it completely unsuitable for downloading large files. |
3218 | - import requests |
3219 | - from distutils.version import LooseVersion |
3220 | - import pkg_resources |
3221 | - _REQ = pkg_resources.get_distribution('requests') |
3222 | - _REQ_VER = LooseVersion(_REQ.version) |
3223 | - if _REQ_VER < LooseVersion('1.1'): |
3224 | - raise ImportError("Requests version < 1.1, not suitable for usage.") |
3225 | - URL_READER_CLASSNAME = "RequestsUrlReader" |
3226 | -except ImportError: |
3227 | - URL_READER_CLASSNAME = "Urllib2UrlReader" |
3228 | - requests = None |
3229 | - |
3230 | - |
3231 | -class ContentSource(object): |
3232 | - url = None |
3233 | - |
3234 | - def open(self): |
3235 | - # open can be explicitly called to 'open', but might be implicitly |
3236 | - # called from read() |
3237 | - pass |
3238 | - |
3239 | - def read(self, size=-1): |
3240 | - raise NotImplementedError() |
3241 | - |
3242 | - def set_start_pos(self, offset): |
3243 | - """ Implemented if the ContentSource supports seeking within content. |
3244 | - Used to resume failed transfers. """ |
3245 | - |
3246 | - class SetStartPosNotImplementedError(NotImplementedError): |
3247 | - pass |
3248 | - |
3249 | - raise SetStartPosNotImplementedError() |
3250 | - |
3251 | - def __enter__(self): |
3252 | - self.open() |
3253 | - return self |
3254 | - |
3255 | - def __exit__(self, etype, value, trace): |
3256 | - self.close() |
3257 | - |
3258 | - def close(self): |
3259 | - raise NotImplementedError() |
3260 | - |
3261 | - |
3262 | -class UrlContentSource(ContentSource): |
3263 | - fd = None |
3264 | - |
3265 | - def __init__(self, url, mirrors=None, url_reader=None): |
3266 | - if mirrors is None: |
3267 | - mirrors = [] |
3268 | - self.mirrors = mirrors |
3269 | - self.input_url = url |
3270 | - self.url = url |
3271 | - self.offset = None |
3272 | - self.fd = None |
3273 | - if url_reader is None: |
3274 | - self.url_reader = URL_READER |
3275 | - else: |
3276 | - self.url_reader = url_reader |
3277 | - |
3278 | - def _urlinfo(self, url): |
3279 | - parsed = urlparse.urlparse(url) |
3280 | - if not parsed.scheme: |
3281 | - if url.startswith("/"): |
3282 | - url = "file://%s" % url |
3283 | - else: |
3284 | - url = "file://%s/%s" % (os.getcwd(), url) |
3285 | - parsed = urlparse.urlparse(url) |
3286 | - |
3287 | - if parsed.scheme == "file": |
3288 | - return (url, FileReader, (parsed.path,)) |
3289 | - else: |
3290 | - return (url, self.url_reader, (url,)) |
3291 | - |
3292 | - def _open(self): |
3293 | - for url in [self.input_url] + self.mirrors: |
3294 | - try: |
3295 | - (normurl, opener, oargs) = self._urlinfo(url) |
3296 | - self.url = normurl |
3297 | - return opener(*oargs, offset=self.offset) |
3298 | - except IOError as e: |
3299 | - if e.errno != errno.ENOENT: |
3300 | - raise |
3301 | - continue |
3302 | - myerr = IOError("Unable to open %s. mirrors=%s" % |
3303 | - (self.input_url, self.mirrors)) |
3304 | - myerr.errno = errno.ENOENT |
3305 | - raise myerr |
3306 | - |
3307 | - def open(self): |
3308 | - if self.fd is None: |
3309 | - self.fd = self._open() |
3310 | - |
3311 | - def read(self, size=-1): |
3312 | - if self.fd is None: |
3313 | - self.open() |
3314 | - return self.fd.read(size) |
3315 | - |
3316 | - def set_start_pos(self, offset): |
3317 | - if self.fd is not None: |
3318 | - raise Exception("can't set start pos after open()") |
3319 | - self.offset = offset |
3320 | - |
3321 | - def close(self): |
3322 | - if self.fd: |
3323 | - self.fd.close() |
3324 | - self.fd = None |
3325 | - |
3326 | - |
3327 | -class FdContentSource(ContentSource): |
3328 | - def __init__(self, fd, url=None): |
3329 | - self.fd = fd |
3330 | - self.url = url |
3331 | - |
3332 | - def read(self, size=-1): |
3333 | - return self.fd.read(size) |
3334 | - |
3335 | - def close(self): |
3336 | - self.fd.close() |
3337 | - |
3338 | - |
3339 | -class IteratorContentSource(ContentSource): |
3340 | - def __init__(self, itgen, url=None): |
3341 | - self.itgen = itgen |
3342 | - self.url = url |
3343 | - self.r_iter = None |
3344 | - self.leftover = bytes() |
3345 | - self.consumed = False |
3346 | - |
3347 | - def open(self): |
3348 | - if self.r_iter: |
3349 | - return |
3350 | - |
3351 | - try: |
3352 | - self.r_iter = self.itgen() |
3353 | - except Exception as exc: |
3354 | - if self.is_enoent(exc): |
3355 | - enoent = IOError(exc) |
3356 | - enoent.errno = errno.ENOENT |
3357 | - raise enoent |
3358 | - raise exc |
3359 | - |
3360 | - def is_enoent(self, exc): |
3361 | - return (isinstance(exc, IOError) and exc.errno == errno.ENOENT) |
3362 | - |
3363 | - def read(self, size=None): |
3364 | - self.open() |
3365 | - |
3366 | - if self.consumed: |
3367 | - return bytes() |
3368 | - |
3369 | - if (size is None or size < 0): |
3370 | - # read everything |
3371 | - ret = self.leftover |
3372 | - self.leftover = bytes() |
3373 | - for buf in self.r_iter: |
3374 | - ret += buf |
3375 | - self.consumed = True |
3376 | - return ret |
3377 | - |
3378 | - ret = bytes() |
3379 | - |
3380 | - if self.leftover: |
3381 | - if len(self.leftover) > size: |
3382 | - ret = self.leftover[0:size] |
3383 | - self.leftover = self.leftover[size:] |
3384 | - return ret |
3385 | - ret = self.leftover |
3386 | - self.leftover = bytes() |
3387 | - |
3388 | - while True: |
3389 | - try: |
3390 | - ret += next(self.r_iter) |
3391 | - if len(ret) >= size: |
3392 | - self.leftover = ret[size:] |
3393 | - ret = ret[0:size] |
3394 | - break |
3395 | - except StopIteration: |
3396 | - self.consumed = True |
3397 | - break |
3398 | - return ret |
3399 | - |
3400 | - def close(self): |
3401 | - pass |
3402 | - |
3403 | - |
3404 | -class MemoryContentSource(FdContentSource): |
3405 | - def __init__(self, url=None, content=""): |
3406 | - if isinstance(content, str): |
3407 | - content = content.encode('utf-8') |
3408 | - fd = io.BytesIO(content) |
3409 | - if url is None: |
3410 | - url = "MemoryContentSource://undefined" |
3411 | - super(MemoryContentSource, self).__init__(fd=fd, url=url) |
3412 | - |
3413 | - |
3414 | -class ChecksummingContentSource(ContentSource): |
3415 | - def __init__(self, csrc, checksums, size=None): |
3416 | - self.cs = csrc |
3417 | - self.bytes_read = 0 |
3418 | - self.checksummer = None |
3419 | - self.size = size |
3420 | - |
3421 | - try: |
3422 | - csummer = checksum_util.SafeCheckSummer(checksums) |
3423 | - except ValueError as e: |
3424 | - raise checksum_util.invalid_checksum_for_reader(self, msg=str(e)) |
3425 | - |
3426 | - self._set_checksummer(csummer) |
3427 | - |
3428 | - try: |
3429 | - self.size = int(size) |
3430 | - except TypeError: |
3431 | - self.size = size |
3432 | - raise checksum_util.invalid_checksum_for_reader(self) |
3433 | - |
3434 | - def resume(self, offset, checksummer): |
3435 | - self.cs.set_start_pos(offset) |
3436 | - self._set_checksummer(checksummer) |
3437 | - self.bytes_read = offset |
3438 | - |
3439 | - @property |
3440 | - def algorithm(self): |
3441 | - return self.checksummer.algorithm |
3442 | - |
3443 | - def _set_checksummer(self, checksummer): |
3444 | - if checksummer.algorithm not in checksum_util.CHECKSUMS: |
3445 | - raise ValueError("algorithm %s is not valid (%s)" % |
3446 | - (checksummer.algorithm, checksum_util.CHECKSUMS)) |
3447 | - self.checksummer = checksummer |
3448 | - |
3449 | - def check(self): |
3450 | - return self.bytes_read == self.size and self.checksummer.check() |
3451 | - |
3452 | - def read(self, size=-1): |
3453 | - buf = self.cs.read(size) |
3454 | - buflen = len(buf) |
3455 | - self.checksummer.update(buf) |
3456 | - self.bytes_read += buflen |
3457 | - |
3458 | - # read size was different size than expected. |
3459 | - # if its not the end, something wrong |
3460 | - if buflen != size and self.size != self.bytes_read: |
3461 | - raise checksum_util.invalid_checksum_for_reader(self) |
3462 | - |
3463 | - if self.bytes_read == self.size and not self.check(): |
3464 | - raise checksum_util.invalid_checksum_for_reader(self) |
3465 | - return buf |
3466 | - |
3467 | - def open(self): |
3468 | - return self.cs.open() |
3469 | - |
3470 | - def close(self): |
3471 | - return self.cs.close() |
3472 | - |
3473 | - @property |
3474 | - def url(self): |
3475 | - return self.cs.url |
3476 | - |
3477 | - |
3478 | -class UrlReader(object): |
3479 | - def read(self, size=-1): |
3480 | - raise NotImplementedError() |
3481 | - |
3482 | - def close(self): |
3483 | - raise NotImplementedError() |
3484 | - |
3485 | - |
3486 | -class FileReader(UrlReader): |
3487 | - def __init__(self, path, offset=None, user_agent=None): |
3488 | - if path.startswith("file://"): |
3489 | - path = path[7:] |
3490 | - self.fd = open(path, "rb") |
3491 | - if offset is not None: |
3492 | - self.fd.seek(offset) |
3493 | - |
3494 | - def read(self, size=-1): |
3495 | - return _read_fd(self.fd, size) |
3496 | - |
3497 | - def close(self): |
3498 | - return self.fd.close() |
3499 | - |
3500 | - |
3501 | -class Urllib2UrlReader(UrlReader): |
3502 | - def __init__(self, url, offset=None, user_agent=None): |
3503 | - (url, username, password) = parse_url_auth(url) |
3504 | - self.url = url |
3505 | - if username is None: |
3506 | - opener = urllib_request.urlopen |
3507 | - else: |
3508 | - mgr = urllib_request.HTTPPasswordMgrWithDefaultRealm() |
3509 | - mgr.add_password(None, url, username, password) |
3510 | - handler = urllib_request.HTTPBasicAuthHandler(mgr) |
3511 | - opener = urllib_request.build_opener(handler).open |
3512 | - |
3513 | - try: |
3514 | - req = urllib_request.Request(url) |
3515 | - if user_agent is not None: |
3516 | - req.add_header('User-Agent', user_agent) |
3517 | - if offset is not None: |
3518 | - req.add_header('Range', 'bytes=%d-' % offset) |
3519 | - self.req = opener(req) |
3520 | - except urllib_error.HTTPError as e: |
3521 | - if e.code == 404: |
3522 | - myerr = IOError("Unable to open %s" % url) |
3523 | - myerr.errno = errno.ENOENT |
3524 | - raise myerr |
3525 | - raise e |
3526 | - |
3527 | - def read(self, size=-1): |
3528 | - return _read_fd(self.req, size) |
3529 | - |
3530 | - def close(self): |
3531 | - return self.req.close() |
3532 | - |
3533 | - |
3534 | -class RequestsUrlReader(UrlReader): |
3535 | - # This provides a url reader that supports deflate/gzip encoding |
3536 | - # but still implements 'read'. |
3537 | - # r = RequestsUrlReader(http://example.com) |
3538 | - # r.read(10) |
3539 | - # r.close() |
3540 | - def __init__(self, url, buflen=None, offset=None, user_agent=None): |
3541 | - if requests is None: |
3542 | - raise ImportError("Attempt to use RequestsUrlReader " |
3543 | - "without suitable requests library.") |
3544 | - self.url = url |
3545 | - (url, user, password) = parse_url_auth(url) |
3546 | - if user is None: |
3547 | - auth = None |
3548 | - else: |
3549 | - auth = (user, password) |
3550 | - |
3551 | - headers = {} |
3552 | - if user_agent is not None: |
3553 | - headers['User-Agent'] = user_agent |
3554 | - if offset is not None: |
3555 | - headers['Range'] = 'bytes=%d-' % offset |
3556 | - if headers == {}: |
3557 | - headers = None |
3558 | - |
3559 | - self.req = requests.get(url, stream=True, auth=auth, headers=headers) |
3560 | - self.r_iter = None |
3561 | - if buflen is None: |
3562 | - buflen = READ_BUFFER_SIZE |
3563 | - self.buflen = buflen |
3564 | - self.leftover = bytes() |
3565 | - self.consumed = False |
3566 | - |
3567 | - if (self.req.status_code == requests.codes.NOT_FOUND): |
3568 | - myerr = IOError("Unable to open %s" % url) |
3569 | - myerr.errno = errno.ENOENT |
3570 | - raise myerr |
3571 | - |
3572 | - ce = self.req.headers.get('content-encoding', '').lower() |
3573 | - if 'gzip' in ce or 'deflate' in ce: |
3574 | - self._read = self.read_compressed |
3575 | - else: |
3576 | - self._read = self.read_raw |
3577 | - |
3578 | - def read(self, size=-1): |
3579 | - return self._read(size) |
3580 | - |
3581 | - def read_compressed(self, size=None): |
3582 | - if not self.r_iter: |
3583 | - self.r_iter = self.req.iter_content(self.buflen) |
3584 | - |
3585 | - if self.consumed: |
3586 | - return bytes() |
3587 | - |
3588 | - if (size is None or size < 0): |
3589 | - # read everything |
3590 | - ret = self.leftover |
3591 | - self.leftover = bytes() |
3592 | - for buf in self.r_iter: |
3593 | - ret += buf |
3594 | - self.consumed = True |
3595 | - return ret |
3596 | - |
3597 | - ret = bytes() |
3598 | - |
3599 | - if self.leftover: |
3600 | - if len(self.leftover) > size: |
3601 | - ret = self.leftover[0:size] |
3602 | - self.leftover = self.leftover[size:] |
3603 | - return ret |
3604 | - ret = self.leftover |
3605 | - self.leftover = bytes() |
3606 | - |
3607 | - while True: |
3608 | - try: |
3609 | - ret += next(self.r_iter) |
3610 | - if len(ret) >= size: |
3611 | - self.leftover = ret[size:] |
3612 | - ret = ret[0:size] |
3613 | - break |
3614 | - except StopIteration: |
3615 | - self.consumed = True |
3616 | - break |
3617 | - return ret |
3618 | - |
3619 | - def read_raw(self, size=-1): |
3620 | - return _read_fd(self.req.raw, size) |
3621 | - |
3622 | - def close(self): |
3623 | - self.req.close() |
3624 | - |
3625 | - |
3626 | -def parse_url_auth(url): |
3627 | - parsed = urlparse.urlparse(url) |
3628 | - authtok = "%s:%s@" % (parsed.username, parsed.password) |
3629 | - if parsed.netloc.startswith(authtok): |
3630 | - url = url.replace(authtok, "", 1) |
3631 | - return (url, parsed.username, parsed.password) |
3632 | - |
3633 | - |
3634 | -def _read_fd(fd, size=-1): |
3635 | - # normalize calling of fd.read() |
3636 | - # python3 generally wants fd.read(size=None) |
3637 | - # python2 generally wants fd.read(size=-1) |
3638 | - if size is None or size < 0: |
3639 | - return fd.read() |
3640 | - return fd.read(size) |
3641 | - |
3642 | - |
3643 | -if URL_READER_CLASSNAME == "RequestsUrlReader": |
3644 | - URL_READER = RequestsUrlReader |
3645 | -elif URL_READER_CLASSNAME == "Urllib2UrlReader": |
3646 | - URL_READER = Urllib2UrlReader |
3647 | -else: |
3648 | - raise Exception("Unknown URL_READER_CLASSNAME: %s" % URL_READER_CLASSNAME) |
3649 | - |
3650 | -# vi: ts=4 expandtab |
3651 | |
3652 | === removed file 'simplestreams/filters.py' |
3653 | --- simplestreams/filters.py 2016-10-17 20:26:06 +0000 |
3654 | +++ simplestreams/filters.py 1970-01-01 00:00:00 +0000 |
3655 | @@ -1,76 +0,0 @@ |
3656 | -# Copyright (C) 2013 Canonical Ltd. |
3657 | -# |
3658 | -# Author: Scott Moser <scott.moser@canonical.com> |
3659 | -# |
3660 | -# Simplestreams is free software: you can redistribute it and/or modify it |
3661 | -# under the terms of the GNU Affero General Public License as published by |
3662 | -# the Free Software Foundation, either version 3 of the License, or (at your |
3663 | -# option) any later version. |
3664 | -# |
3665 | -# Simplestreams is distributed in the hope that it will be useful, but |
3666 | -# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
3667 | -# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public |
3668 | -# License for more details. |
3669 | -# |
3670 | -# You should have received a copy of the GNU Affero General Public License |
3671 | -# along with Simplestreams. If not, see <http://www.gnu.org/licenses/>. |
3672 | - |
3673 | -from simplestreams import util |
3674 | - |
3675 | -import re |
3676 | - |
3677 | - |
3678 | -class ItemFilter(object): |
3679 | - def __init__(self, content, noneval=""): |
3680 | - rparsefmt = r"([\w|\-]+)[ ]*([!]{0,1}[=~])[ ]*(.*)[ ]*$" |
3681 | - parsed = re.match(rparsefmt, content) |
3682 | - |
3683 | - if not parsed: |
3684 | - raise ValueError("Unable to parse expression %s" % content) |
3685 | - |
3686 | - (key, op, val) = parsed.groups() |
3687 | - |
3688 | - if op in ("!=", "="): |
3689 | - self._matches = val.__eq__ |
3690 | - elif op in ("!~", "~"): |
3691 | - self._matches = re.compile(val).search |
3692 | - else: |
3693 | - raise ValueError("Bad parsing of %s" % content) |
3694 | - |
3695 | - self.negator = (op[0] != "!") |
3696 | - self.op = op |
3697 | - self.key = key |
3698 | - self.value = val |
3699 | - self.content = content |
3700 | - self.noneval = noneval |
3701 | - |
3702 | - def __str__(self): |
3703 | - return "%s %s %s [none=%s]" % (self.key, self.op, |
3704 | - self.value, self.noneval) |
3705 | - |
3706 | - def __repr__(self): |
3707 | - return self.__str__() |
3708 | - |
3709 | - def matches(self, item): |
3710 | - val = str(item.get(self.key, self.noneval)) |
3711 | - return (self.negator == bool(self._matches(val))) |
3712 | - |
3713 | - |
3714 | -def get_filters(filters, noneval=""): |
3715 | - flist = [] |
3716 | - for f in filters: |
3717 | - flist.append(ItemFilter(f, noneval=noneval)) |
3718 | - return flist |
3719 | - |
3720 | - |
3721 | -def filter_item(filters, data, src, pedigree): |
3722 | - "Apply filter list to a products entity. Flatten before doing so." |
3723 | - return filter_dict(filters, util.products_exdata(src, pedigree)) |
3724 | - |
3725 | - |
3726 | -def filter_dict(filters, data): |
3727 | - "Apply filter list to dict. Does not flatten." |
3728 | - for f in filters: |
3729 | - if not f.matches(data): |
3730 | - return False |
3731 | - return True |
3732 | |
3733 | === removed file 'simplestreams/generate_simplestreams.py' |
3734 | --- simplestreams/generate_simplestreams.py 2015-11-09 17:47:21 +0000 |
3735 | +++ simplestreams/generate_simplestreams.py 1970-01-01 00:00:00 +0000 |
3736 | @@ -1,110 +0,0 @@ |
3737 | -# Copyright (C) 2013, 2015 Canonical Ltd. |
3738 | -# |
3739 | -# Author: Scott Moser <scott.moser@canonical.com>, |
3740 | -# Aaron Bentley <aaron.bentley@canonical.com> |
3741 | -# |
3742 | -# Simplestreams is free software: you can redistribute it and/or modify it |
3743 | -# under the terms of the GNU Affero General Public License as published by |
3744 | -# the Free Software Foundation, either version 3 of the License, or (at your |
3745 | -# option) any later version. |
3746 | -# |
3747 | -# Simplestreams is distributed in the hope that it will be useful, but |
3748 | -# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
3749 | -# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public |
3750 | -# License for more details. |
3751 | -# |
3752 | -from collections import namedtuple |
3753 | -from copy import deepcopy |
3754 | -import json |
3755 | -import os |
3756 | -import sys |
3757 | - |
3758 | -from simplestreams import util |
3759 | - |
3760 | - |
3761 | -Item = namedtuple('Item', ['content_id', 'product_name', 'version_name', |
3762 | - 'item_name', 'data']) |
3763 | - |
3764 | - |
3765 | -def items2content_trees(itemslist, exdata): |
3766 | - # input is a list with each item having: |
3767 | - # (content_id, product_name, version_name, item_name, {data}) |
3768 | - ctrees = {} |
3769 | - for (content_id, prodname, vername, itemname, data) in itemslist: |
3770 | - if content_id not in ctrees: |
3771 | - ctrees[content_id] = {'content_id': content_id, |
3772 | - 'format': 'products:1.0', 'products': {}} |
3773 | - ctrees[content_id].update(exdata) |
3774 | - |
3775 | - ctree = ctrees[content_id] |
3776 | - if prodname not in ctree['products']: |
3777 | - ctree['products'][prodname] = {'versions': {}} |
3778 | - |
3779 | - prodtree = ctree['products'][prodname] |
3780 | - if vername not in prodtree['versions']: |
3781 | - prodtree['versions'][vername] = {'items': {}} |
3782 | - |
3783 | - vertree = prodtree['versions'][vername] |
3784 | - |
3785 | - if itemname in vertree['items']: |
3786 | - raise ValueError("%s: already existed" % |
3787 | - str([content_id, prodname, vername, itemname])) |
3788 | - |
3789 | - vertree['items'][itemname] = data |
3790 | - return ctrees |
3791 | - |
3792 | - |
3793 | -class FileNamer: |
3794 | - |
3795 | - streamdir = 'streams/v1' |
3796 | - |
3797 | - @classmethod |
3798 | - def get_index_path(cls): |
3799 | - return "%s/%s" % (cls.streamdir, 'index.json') |
3800 | - |
3801 | - @classmethod |
3802 | - def get_content_path(cls, content_id): |
3803 | - return "%s/%s.json" % (cls.streamdir, content_id) |
3804 | - |
3805 | - |
3806 | -def generate_index(trees, updated, namer): |
3807 | - index = {"index": {}, 'format': 'index:1.0', 'updated': updated} |
3808 | - not_copied_up = ['content_id'] |
3809 | - for content_id, content in trees.items(): |
3810 | - index['index'][content_id] = { |
3811 | - 'products': list(content['products'].keys()), |
3812 | - 'path': namer.get_content_path(content_id), |
3813 | - } |
3814 | - for k in util.stringitems(content): |
3815 | - if k not in not_copied_up: |
3816 | - index['index'][content_id][k] = content[k] |
3817 | - return index |
3818 | - |
3819 | - |
3820 | -def write_streams(out_d, trees, updated, namer=None, condense=True): |
3821 | - if namer is None: |
3822 | - namer = FileNamer |
3823 | - index = generate_index(trees, updated, namer) |
3824 | - to_write = [(namer.get_index_path(), index,)] |
3825 | - # Don't let products_condense modify the input |
3826 | - trees = deepcopy(trees) |
3827 | - for content_id in trees: |
3828 | - if condense: |
3829 | - util.products_condense(trees[content_id], |
3830 | - sticky=['path', 'sha256', 'md5', 'size']) |
3831 | - content = trees[content_id] |
3832 | - to_write.append((index['index'][content_id]['path'], content,)) |
3833 | - out_filenames = [] |
3834 | - for (outfile, data) in to_write: |
3835 | - filef = os.path.join(out_d, outfile) |
3836 | - util.mkdir_p(os.path.dirname(filef)) |
3837 | - json_dump(data, filef) |
3838 | - out_filenames.append(filef) |
3839 | - return out_filenames |
3840 | - |
3841 | - |
3842 | -def json_dump(data, filename): |
3843 | - with open(filename, "w") as fp: |
3844 | - sys.stderr.write(u"writing %s\n" % filename) |
3845 | - fp.write(json.dumps(data, indent=2, sort_keys=True, |
3846 | - separators=(',', ': ')) + "\n") |
3847 | |
3848 | === removed file 'simplestreams/json2streams.py' |
3849 | --- simplestreams/json2streams.py 2016-03-10 16:25:44 +0000 |
3850 | +++ simplestreams/json2streams.py 1970-01-01 00:00:00 +0000 |
3851 | @@ -1,110 +0,0 @@ |
3852 | -#!/usr/bin/env python3 |
3853 | -# Copyright (C) 2013, 2015 Canonical Ltd. |
3854 | - |
3855 | -from argparse import ArgumentParser |
3856 | -import json |
3857 | -import os |
3858 | -import sys |
3859 | - |
3860 | -from simplestreams import util |
3861 | - |
3862 | -from simplestreams.generate_simplestreams import ( |
3863 | - FileNamer, |
3864 | - Item, |
3865 | - items2content_trees, |
3866 | - json_dump, |
3867 | - write_streams, |
3868 | - ) |
3869 | - |
3870 | - |
3871 | -class JujuFileNamer(FileNamer): |
3872 | - |
3873 | - @classmethod |
3874 | - def get_index_path(cls): |
3875 | - return "%s/%s" % (cls.streamdir, 'index2.json') |
3876 | - |
3877 | - @classmethod |
3878 | - def get_content_path(cls, content_id): |
3879 | - return "%s/%s.json" % (cls.streamdir, content_id.replace(':', '-')) |
3880 | - |
3881 | - |
3882 | -def dict_to_item(item_dict): |
3883 | - """Convert a dict into an Item, mutating input.""" |
3884 | - item_dict.pop('item_url', None) |
3885 | - size = item_dict.get('size') |
3886 | - if size is not None: |
3887 | - item_dict['size'] = int(size) |
3888 | - content_id = item_dict.pop('content_id') |
3889 | - product_name = item_dict.pop('product_name') |
3890 | - version_name = item_dict.pop('version_name') |
3891 | - item_name = item_dict.pop('item_name') |
3892 | - return Item(content_id, product_name, version_name, item_name, item_dict) |
3893 | - |
3894 | - |
3895 | -def read_items_file(filename): |
3896 | - with open(filename) as items_file: |
3897 | - item_list = json.load(items_file) |
3898 | - return (dict_to_item(item) for item in item_list) |
3899 | - |
3900 | - |
3901 | -def write_release_index(out_d): |
3902 | - in_path = os.path.join(out_d, JujuFileNamer.get_index_path()) |
3903 | - with open(in_path) as in_file: |
3904 | - full_index = json.load(in_file) |
3905 | - full_index['index'] = dict( |
3906 | - (k, v) for k, v in list(full_index['index'].items()) |
3907 | - if k == 'com.ubuntu.juju:released:tools') |
3908 | - out_path = os.path.join(out_d, FileNamer.get_index_path()) |
3909 | - json_dump(full_index, out_path) |
3910 | - return out_path |
3911 | - |
3912 | - |
3913 | -def filenames_to_streams(filenames, updated, out_d, juju_format=False): |
3914 | - """Convert a list of filenames into simplestreams. |
3915 | - |
3916 | - File contents must be json simplestream stanzas. |
3917 | - 'updated' is the date to use for 'updated' in the streams. |
3918 | - out_d is the directory to create streams in. |
3919 | - """ |
3920 | - items = [] |
3921 | - for items_file in filenames: |
3922 | - items.extend(read_items_file(items_file)) |
3923 | - |
3924 | - data = {'updated': updated, 'datatype': 'content-download'} |
3925 | - trees = items2content_trees(items, data) |
3926 | - if juju_format: |
3927 | - write = write_juju_streams |
3928 | - else: |
3929 | - write = write_streams |
3930 | - return write(out_d, trees, updated) |
3931 | - |
3932 | - |
3933 | -def write_juju_streams(out_d, trees, updated): |
3934 | - out_filenames = write_streams(out_d, trees, updated, JujuFileNamer) |
3935 | - out_filenames.append(write_release_index(out_d)) |
3936 | - return out_filenames |
3937 | - |
3938 | - |
3939 | -def parse_args(argv=None): |
3940 | - parser = ArgumentParser() |
3941 | - parser.add_argument( |
3942 | - 'items_file', metavar='items-file', help='File to read items from', |
3943 | - nargs='+') |
3944 | - parser.add_argument( |
3945 | - 'out_d', metavar='output-dir', |
3946 | - help='The directory to write stream files to.') |
3947 | - parser.add_argument( |
3948 | - '--juju-format', action='store_true', |
3949 | - help='Write stream files in juju format.') |
3950 | - return parser.parse_args(argv) |
3951 | - |
3952 | - |
3953 | -def main(): |
3954 | - args = parse_args() |
3955 | - updated = util.timestamp() |
3956 | - filenames_to_streams(args.items_file, updated, args.out_d, |
3957 | - args.juju_format) |
3958 | - |
3959 | - |
3960 | -if __name__ == '__main__': |
3961 | - sys.exit(main()) |
3962 | |
3963 | === removed file 'simplestreams/log.py' |
3964 | --- simplestreams/log.py 2014-07-15 21:33:53 +0000 |
3965 | +++ simplestreams/log.py 1970-01-01 00:00:00 +0000 |
3966 | @@ -1,68 +0,0 @@ |
3967 | -# Copyright (C) 2013 Canonical Ltd. |
3968 | -# |
3969 | -# Author: Scott Moser <scott.moser@canonical.com> |
3970 | -# |
3971 | -# Simplestreams is free software: you can redistribute it and/or modify it |
3972 | -# under the terms of the GNU Affero General Public License as published by |
3973 | -# the Free Software Foundation, either version 3 of the License, or (at your |
3974 | -# option) any later version. |
3975 | -# |
3976 | -# Simplestreams is distributed in the hope that it will be useful, but |
3977 | -# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
3978 | -# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public |
3979 | -# License for more details. |
3980 | -# |
3981 | -# You should have received a copy of the GNU Affero General Public License |
3982 | -# along with Simplestreams. If not, see <http://www.gnu.org/licenses/>. |
3983 | - |
3984 | -import logging |
3985 | - |
3986 | -DEBUG = logging.DEBUG |
3987 | -ERROR = logging.ERROR |
3988 | -FATAL = logging.FATAL |
3989 | -INFO = logging.INFO |
3990 | -NOTSET = logging.NOTSET |
3991 | -WARN = logging.WARN |
3992 | -WARNING = logging.WARNING |
3993 | - |
3994 | - |
3995 | -class NullHandler(logging.Handler): |
3996 | - def emit(self, record): |
3997 | - pass |
3998 | - |
3999 | - |
4000 | -def basicConfig(**kwargs): |
4001 | - # basically like logging.basicConfig but only output for our logger |
4002 | - if kwargs.get('filename'): |
4003 | - handler = logging.FileHandler(filename=kwargs['filename'], |
4004 | - mode=kwargs.get('filemode', 'a')) |
4005 | - elif kwargs.get('stream'): |
4006 | - handler = logging.StreamHandler(stream=kwargs['stream']) |
4007 | - else: |
4008 | - handler = NullHandler() |
4009 | - |
4010 | - level = kwargs.get('level', NOTSET) |
4011 | - |
4012 | - handler.setFormatter(logging.Formatter(fmt=kwargs.get('format'), |
4013 | - datefmt=kwargs.get('datefmt'))) |
4014 | - handler.setLevel(level) |
4015 | - |
4016 | - logging.getLogger().setLevel(level) |
4017 | - |
4018 | - logger = _getLogger() |
4019 | - for h in list(logger.handlers): |
4020 | - logger.removeHandler(h) |
4021 | - logger.setLevel(level) |
4022 | - logger.addHandler(handler) |
4023 | - |
4024 | - |
4025 | -def _getLogger(name='sstreams'): |
4026 | - return logging.getLogger(name) |
4027 | - |
4028 | - |
4029 | -if not logging.getLogger().handlers: |
4030 | - logging.getLogger().addHandler(NullHandler()) |
4031 | - |
4032 | -LOG = _getLogger() |
4033 | - |
4034 | -# vi: ts=4 expandtab syntax=python |
4035 | |
4036 | === removed directory 'simplestreams/mirrors' |
4037 | === removed file 'simplestreams/mirrors/__init__.py' |
4038 | --- simplestreams/mirrors/__init__.py 2016-06-10 11:20:18 +0000 |
4039 | +++ simplestreams/mirrors/__init__.py 1970-01-01 00:00:00 +0000 |
4040 | @@ -1,585 +0,0 @@ |
4041 | -# Copyright (C) 2013 Canonical Ltd. |
4042 | -# |
4043 | -# Author: Scott Moser <scott.moser@canonical.com> |
4044 | -# |
4045 | -# Simplestreams is free software: you can redistribute it and/or modify it |
4046 | -# under the terms of the GNU Affero General Public License as published by |
4047 | -# the Free Software Foundation, either version 3 of the License, or (at your |
4048 | -# option) any later version. |
4049 | -# |
4050 | -# Simplestreams is distributed in the hope that it will be useful, but |
4051 | -# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
4052 | -# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public |
4053 | -# License for more details. |
4054 | -# |
4055 | -# You should have received a copy of the GNU Affero General Public License |
4056 | -# along with Simplestreams. If not, see <http://www.gnu.org/licenses/>. |
4057 | -import errno |
4058 | -import io |
4059 | -import json |
4060 | - |
4061 | -import simplestreams.filters as filters |
4062 | -import simplestreams.util as util |
4063 | -from simplestreams import checksum_util |
4064 | -import simplestreams.contentsource as cs |
4065 | -from simplestreams.log import LOG |
4066 | - |
4067 | -DEFAULT_USER_AGENT = "python-simplestreams/0.1" |
4068 | - |
4069 | - |
4070 | -class MirrorReader(object): |
4071 | - def __init__(self, policy=util.policy_read_signed): |
4072 | - """ policy should be a function which returns the extracted payload or |
4073 | - raises an exception if the policy is violated. """ |
4074 | - self.policy = policy |
4075 | - |
4076 | - def load_products(self, path): |
4077 | - _, content = self.read_json(path) |
4078 | - return util.load_content(content) |
4079 | - |
4080 | - def read_json(self, path): |
4081 | - with self.source(path) as source: |
4082 | - raw = source.read().decode('utf-8') |
4083 | - return raw, self.policy(content=raw, path=path) |
4084 | - |
4085 | - def source(self, path): |
4086 | - raise NotImplementedError() |
4087 | - |
4088 | - |
4089 | -class MirrorWriter(object): |
4090 | - def load_products(self, path=None, content_id=None): |
4091 | - raise NotImplementedError() |
4092 | - |
4093 | - def sync_products(self, reader, path=None, products=None, content=None): |
4094 | - # reader: a Reader for opening files referenced in products |
4095 | - # path: the path of where to store this. |
4096 | - # if path is None, do not store the products file itself |
4097 | - # products: a products file in products:1.0 format |
4098 | - # content: a rendered products tree, allowing you to store |
4099 | - # externally signed content. |
4100 | - # |
4101 | - # One of content, path, or products is required. |
4102 | - # * if path is not given, no rendering of products tree will be stored |
4103 | - # * if content is None, it will be loaded from reader(path).read() |
4104 | - # or rendered (json.dumps(products)) from products. |
4105 | - # * if products is None, it will be loaded from content |
4106 | - raise NotImplementedError() |
4107 | - |
4108 | - def sync_index(self, reader, path=None, src=None, content=None): |
4109 | - # reader: a Reader for opening files referenced in index or products |
4110 | - # files |
4111 | - # path: the path of where to store this. |
4112 | - # if path is None, do not store the index file itself |
4113 | - # src: a dictionary in index:1.0 format |
4114 | - # content: a rendered products tree, allowing you to store |
4115 | - # externally signed content. |
4116 | - # |
4117 | - # One of content, path, or products is required. |
4118 | - # * if path not given, no rendering of products tree will be stored |
4119 | - # * if content is None, it will be loaded from reader(path).read() |
4120 | - # or rendered (json.dumps(products)) from products. |
4121 | - # * if products is None, it will be loaded from content |
4122 | - raise NotImplementedError() |
4123 | - |
4124 | - def sync(self, reader, path): |
4125 | - content, payload = reader.read_json(path) |
4126 | - data = util.load_content(payload) |
4127 | - fmt = data.get("format", "UNSPECIFIED") |
4128 | - if fmt == "products:1.0": |
4129 | - return self.sync_products(reader, path, data, content) |
4130 | - elif fmt == "index:1.0": |
4131 | - return self.sync_index(reader, path, data, content) |
4132 | - else: |
4133 | - raise TypeError("Unknown format '%s' in '%s'" % (fmt, path)) |
4134 | - |
4135 | - # Index Operations |
4136 | - def filter_index_entry(self, data, src, pedigree): |
4137 | - # src is source index tree. |
4138 | - # data is src['index'][ped[0]] |
4139 | - return True |
4140 | - |
4141 | - def insert_index(self, path, src, content): |
4142 | - # src is the source index tree |
4143 | - # content is None or a json rendering (possibly signed) of src |
4144 | - pass |
4145 | - |
4146 | - def insert_index_entry(self, data, src, pedigree, contentsource): |
4147 | - # src is the top level index (index:1.0 format) |
4148 | - # data is src['index'][pedigree[0]] |
4149 | - # contentsource is a ContentSource if 'path' exists in data or None |
4150 | - pass |
4151 | - |
4152 | - # Products Operations |
4153 | - def filter_product(self, data, src, target, pedigree): |
4154 | - # src and target are top level products:1.0 |
4155 | - # data is src['products'][ped[0]] |
4156 | - return True |
4157 | - |
4158 | - def filter_version(self, data, src, target, pedigree): |
4159 | - # src and target are top level products:1.0 |
4160 | - # data is src['products'][ped[0]]['versions'][ped[1]] |
4161 | - return True |
4162 | - |
4163 | - def filter_item(self, data, src, target, pedigree): |
4164 | - # src and target are top level products:1.0 |
4165 | - # data is src['products'][ped[0]]['versions'][ped[1]]['items'][ped[2]] |
4166 | - return True |
4167 | - |
4168 | - def insert_products(self, path, target, content): |
4169 | - # path is the path to store data (where it came from on source mirror) |
4170 | - # target is the target products:1.0 tree |
4171 | - # content is None or a json rendering (possibly signed) of src |
4172 | - pass |
4173 | - |
4174 | - def insert_product(self, data, src, target, pedigree): |
4175 | - # src and target are top level products:1.0 |
4176 | - # data is src['products'][ped[0]] |
4177 | - pass |
4178 | - |
4179 | - def insert_version(self, data, src, target, pedigree): |
4180 | - # src and target are top level products:1.0 |
4181 | - # data is src['products'][ped[0]]['versions'][ped[1]] |
4182 | - pass |
4183 | - |
4184 | - def insert_item(self, data, src, target, pedigree, contentsource): |
4185 | - # src and target are top level products:1.0 |
4186 | - # data is src['products'][ped[0]]['versions'][ped[1]]['items'][ped[2]] |
4187 | - # contentsource is a ContentSource if 'path' exists in data or None |
4188 | - pass |
4189 | - |
4190 | - def remove_product(self, data, src, target, pedigree): |
4191 | - # src and target are top level products:1.0 |
4192 | - # data is src['products'][ped[0]] |
4193 | - pass |
4194 | - |
4195 | - def remove_version(self, data, src, target, pedigree): |
4196 | - # src and target are top level products:1.0 |
4197 | - # data is src['products'][ped[0]]['versions'][ped[1]] |
4198 | - pass |
4199 | - |
4200 | - def remove_item(self, data, src, target, pedigree): |
4201 | - # src and target are top level products:1.0 |
4202 | - # data is src['products'][ped[0]]['versions'][ped[1]]['items'][ped[2]] |
4203 | - pass |
4204 | - |
4205 | - |
4206 | -class UrlMirrorReader(MirrorReader): |
4207 | - def __init__(self, prefix, mirrors=None, policy=util.policy_read_signed, |
4208 | - user_agent=DEFAULT_USER_AGENT): |
4209 | - super(UrlMirrorReader, self).__init__(policy=policy) |
4210 | - self._cs = cs.UrlContentSource |
4211 | - if mirrors is None: |
4212 | - mirrors = [] |
4213 | - self.mirrors = mirrors |
4214 | - self.user_agent = user_agent |
4215 | - self.prefix = prefix |
4216 | - self._trailing_slash_checked = self.prefix.endswith("/") |
4217 | - |
4218 | - def source(self, path): |
4219 | - mirrors = [m + path for m in self.mirrors] |
4220 | - |
4221 | - if self.user_agent is not None: |
4222 | - # Create a custom UrlReader with the user_agent passed in, |
4223 | - # using the default cs.URL_READER. |
4224 | - |
4225 | - def url_reader_factory(*args, **kwargs): |
4226 | - return cs.URL_READER( |
4227 | - *args, user_agent=self.user_agent, **kwargs) |
4228 | - else: |
4229 | - url_reader_factory = None |
4230 | - |
4231 | - if self._trailing_slash_checked: |
4232 | - return self._cs(self.prefix + path, mirrors=mirrors, |
4233 | - url_reader=url_reader_factory) |
4234 | - |
4235 | - # A little hack to fix up the user's path. It's fairly common to |
4236 | - # specify URLs without a trailing slash, so we try to do that here as |
4237 | - # well. We open, then close and then get a new one (so the one we |
4238 | - # returned is not yet open (LP: #1237658) |
4239 | - self._trailing_slash_checked = True |
4240 | - try: |
4241 | - with self._cs(self.prefix + path, mirrors=None, |
4242 | - url_reader=url_reader_factory) as csource: |
4243 | - csource.read(1024) |
4244 | - except Exception as e: |
4245 | - if isinstance(e, IOError) and (e.errno == errno.ENOENT): |
4246 | - LOG.warn("got ENOENT for (%s, %s), trying with trailing /", |
4247 | - self.prefix, path) |
4248 | - self.prefix = self.prefix + '/' |
4249 | - else: |
4250 | - # this raised exception, but it was sneaky to do it |
4251 | - # so just ignore it. |
4252 | - LOG.debug("trailing / check on (%s, %s) resulted in %s", |
4253 | - self.prefix, path, e) |
4254 | - |
4255 | - return self._cs(self.prefix + path, mirrors=mirrors, |
4256 | - url_reader=url_reader_factory) |
4257 | - |
4258 | - |
4259 | -class ObjectStoreMirrorReader(MirrorReader): |
4260 | - def __init__(self, objectstore, policy=util.policy_read_signed): |
4261 | - super(ObjectStoreMirrorReader, self).__init__(policy=policy) |
4262 | - self.objectstore = objectstore |
4263 | - |
4264 | - def source(self, path): |
4265 | - return self.objectstore.source(path) |
4266 | - |
4267 | - |
4268 | -class BasicMirrorWriter(MirrorWriter): |
4269 | - def __init__(self, config=None): |
4270 | - super(BasicMirrorWriter, self).__init__() |
4271 | - if config is None: |
4272 | - config = {} |
4273 | - self.config = config |
4274 | - self.checksumming_reader = self.config.get('checksumming_reader', True) |
4275 | - |
4276 | - def load_products(self, path=None, content_id=None): |
4277 | - super(BasicMirrorWriter, self).load_products(path, content_id) |
4278 | - |
4279 | - def sync_index(self, reader, path=None, src=None, content=None): |
4280 | - (src, content) = _get_data_content(path, src, content, reader) |
4281 | - |
4282 | - util.expand_tree(src) |
4283 | - |
4284 | - check_tree_paths(src) |
4285 | - |
4286 | - itree = src.get('index') |
4287 | - for content_id, index_entry in itree.items(): |
4288 | - if not self.filter_index_entry(index_entry, src, (content_id,)): |
4289 | - continue |
4290 | - epath = index_entry.get('path', None) |
4291 | - mycs = None |
4292 | - if epath: |
4293 | - if index_entry.get('format') in ("index:1.0", "products:1.0"): |
4294 | - self.sync(reader, path=epath) |
4295 | - mycs = reader.source(epath) |
4296 | - |
4297 | - self.insert_index_entry(index_entry, src, (content_id,), mycs) |
4298 | - |
4299 | - self.insert_index(path, src, content) |
4300 | - |
4301 | - def sync_products(self, reader, path=None, src=None, content=None): |
4302 | - (src, content) = _get_data_content(path, src, content, reader) |
4303 | - |
4304 | - util.expand_tree(src) |
4305 | - |
4306 | - check_tree_paths(src) |
4307 | - |
4308 | - content_id = src['content_id'] |
4309 | - target = self.load_products(path, content_id) |
4310 | - if not target: |
4311 | - target = util.stringitems(src) |
4312 | - |
4313 | - util.expand_tree(target) |
4314 | - |
4315 | - stree = src.get('products', {}) |
4316 | - if 'products' not in target: |
4317 | - target['products'] = {} |
4318 | - |
4319 | - tproducts = target['products'] |
4320 | - |
4321 | - filtered_products = [] |
4322 | - prodname = None |
4323 | - for prodname, product in stree.items(): |
4324 | - if not self.filter_product(product, src, target, (prodname,)): |
4325 | - filtered_products.append(prodname) |
4326 | - continue |
4327 | - |
4328 | - if prodname not in tproducts: |
4329 | - tproducts[prodname] = util.stringitems(product) |
4330 | - tproduct = tproducts[prodname] |
4331 | - if 'versions' not in tproduct: |
4332 | - tproduct['versions'] = {} |
4333 | - |
4334 | - src_filtered_items = [] |
4335 | - |
4336 | - def _filter(itemkey): |
4337 | - ret = self.filter_version(product['versions'][itemkey], |
4338 | - src, target, (prodname, itemkey)) |
4339 | - if not ret: |
4340 | - src_filtered_items.append(itemkey) |
4341 | - return ret |
4342 | - |
4343 | - (to_add, to_remove) = util.resolve_work( |
4344 | - src=list(product.get('versions', {}).keys()), |
4345 | - target=list(tproduct.get('versions', {}).keys()), |
4346 | - maxnum=self.config.get('max_items'), |
4347 | - keep=self.config.get('keep_items'), itemfilter=_filter) |
4348 | - |
4349 | - LOG.info("%s/%s: to_add=%s to_remove=%s", content_id, prodname, |
4350 | - to_add, to_remove) |
4351 | - |
4352 | - tversions = tproduct['versions'] |
4353 | - skipped_versions = [] |
4354 | - for vername in to_add: |
4355 | - version = product['versions'][vername] |
4356 | - |
4357 | - if vername not in tversions: |
4358 | - tversions[vername] = util.stringitems(version) |
4359 | - |
4360 | - added_items = [] |
4361 | - for itemname, item in version.get('items', {}).items(): |
4362 | - pgree = (prodname, vername, itemname) |
4363 | - if not self.filter_item(item, src, target, pgree): |
4364 | - LOG.debug("Filtered out item: %s/%s", itemname, item) |
4365 | - continue |
4366 | - |
4367 | - added_items.append(itemname) |
4368 | - |
4369 | - ipath = item.get('path', None) |
4370 | - ipath_cs = None |
4371 | - if ipath and reader: |
4372 | - if self.checksumming_reader: |
4373 | - flat = util.products_exdata(src, pgree) |
4374 | - ipath_cs = cs.ChecksummingContentSource( |
4375 | - csrc=reader.source(ipath), |
4376 | - size=flat.get('size'), |
4377 | - checksums=checksum_util.item_checksums(flat)) |
4378 | - else: |
4379 | - ipath_cs = reader.source(ipath) |
4380 | - |
4381 | - self.insert_item(item, src, target, pgree, ipath_cs) |
4382 | - |
4383 | - if len(added_items): |
4384 | - # do not insert versions that had all items filtered |
4385 | - self.insert_version(version, src, target, |
4386 | - (prodname, vername)) |
4387 | - else: |
4388 | - skipped_versions.append(vername) |
4389 | - |
4390 | - for vername in skipped_versions: |
4391 | - if vername in tproduct['versions']: |
4392 | - del tproduct['versions'][vername] |
4393 | - |
4394 | - if self.config.get('delete_filtered_items', False): |
4395 | - tkeys = tproduct.get('versions', {}).keys() |
4396 | - for v in src_filtered_items: |
4397 | - if v not in to_remove and v in tkeys: |
4398 | - to_remove.append(v) |
4399 | - LOG.info("After deletions %s/%s: to_add=%s to_remove=%s", |
4400 | - content_id, prodname, to_add, to_remove) |
4401 | - |
4402 | - for vername in to_remove: |
4403 | - tversion = tversions[vername] |
4404 | - for itemname in list(tversion.get('items', {}).keys()): |
4405 | - self.remove_item(tversion['items'][itemname], src, target, |
4406 | - (prodname, vername, itemname)) |
4407 | - |
4408 | - self.remove_version(tversion, src, target, (prodname, vername)) |
4409 | - del tversions[vername] |
4410 | - |
4411 | - self.insert_product(tproduct, src, target, (prodname,)) |
4412 | - |
4413 | - # FIXME: below will remove products if they're in target |
4414 | - # (result of load_products) but not in the source products. |
4415 | - # that could accidentally delete a lot. |
4416 | - # |
4417 | - del_products = [] |
4418 | - if self.config.get('delete_products', False): |
4419 | - del_products.extend([p for p in list(tproducts.keys()) |
4420 | - if p not in stree]) |
4421 | - if self.config.get('delete_filtered_products', False): |
4422 | - del_products.extend([p for p in filtered_products |
4423 | - if p not in stree]) |
4424 | - |
4425 | - for prodname in del_products: |
4426 | - # FIXME: we remove a product here, but unless that acts |
4427 | - # recursively, nothing will remove the items in that product |
4428 | - self.remove_product(tproducts[prodname], src, target, (prodname,)) |
4429 | - del tproducts[prodname] |
4430 | - |
4431 | - self.insert_products(path, target, content) |
4432 | - |
4433 | - |
4434 | -# ObjectStoreMirrorWriter stores data in <prefix>/.data/<content_id> |
4435 | -class ObjectStoreMirrorWriter(BasicMirrorWriter): |
4436 | - def __init__(self, config, objectstore): |
4437 | - super(ObjectStoreMirrorWriter, self).__init__(config=config) |
4438 | - self.store = objectstore |
4439 | - |
4440 | - def products_data_path(self, content_id): |
4441 | - return ".data/%s" % content_id |
4442 | - |
4443 | - def _reference_count_data_path(self): |
4444 | - return ".data/references.json" |
4445 | - |
4446 | - def _load_rc_dict(self): |
4447 | - try: |
4448 | - with self.source(self._reference_count_data_path()) as source: |
4449 | - raw = source.read() |
4450 | - return json.load(io.StringIO(raw.decode('utf-8'))) |
4451 | - except IOError as e: |
4452 | - if e.errno == errno.ENOENT: |
4453 | - return {} |
4454 | - raise |
4455 | - |
4456 | - def _persist_rc_dict(self, rc): |
4457 | - source = cs.MemoryContentSource(content=json.dumps(rc)) |
4458 | - self.store.insert(self._reference_count_data_path(), source) |
4459 | - |
4460 | - def _build_rc_id(self, src, pedigree): |
4461 | - return '/'.join([src['content_id']] + list(pedigree)) |
4462 | - |
4463 | - def _inc_rc(self, path, src, pedigree): |
4464 | - rc = self._load_rc_dict() |
4465 | - id_ = self._build_rc_id(src, pedigree) |
4466 | - if path not in rc: |
4467 | - rc[path] = [id_] |
4468 | - else: |
4469 | - rc[path].append(id_) |
4470 | - self._persist_rc_dict(rc) |
4471 | - |
4472 | - def _dec_rc(self, path, src, pedigree): |
4473 | - rc = self._load_rc_dict() |
4474 | - id_ = self._build_rc_id(src, pedigree) |
4475 | - entry = rc.get(path, None) |
4476 | - ok_to_delete = False |
4477 | - if entry is not None: |
4478 | - if len(entry) == 1: |
4479 | - del rc[path] |
4480 | - ok_to_delete = True |
4481 | - else: |
4482 | - rc[path] = list(filter(lambda x: x != id_, rc[path])) |
4483 | - self._persist_rc_dict(rc) |
4484 | - return ok_to_delete |
4485 | - |
4486 | - def load_products(self, path=None, content_id=None): |
4487 | - if content_id: |
4488 | - try: |
4489 | - dpath = self.products_data_path(content_id) |
4490 | - with self.source(dpath) as source: |
4491 | - return util.load_content(source.read()) |
4492 | - except IOError as e: |
4493 | - if e.errno != errno.ENOENT: |
4494 | - raise |
4495 | - |
4496 | - if path: |
4497 | - # we possibly have 'path' that we could read. |
4498 | - # but returning that would indicate we have inserted all items |
4499 | - # rather than just the list of items that were mirrored. |
4500 | - # this is because the .data/ entry was missing. |
4501 | - # thus, just return empty. |
4502 | - return {} |
4503 | - |
4504 | - raise TypeError("unable to load_products with no path") |
4505 | - |
4506 | - def source(self, path): |
4507 | - return self.store.source(path) |
4508 | - |
4509 | - def insert_item(self, data, src, target, pedigree, contentsource): |
4510 | - util.products_set(target, data, pedigree) |
4511 | - if 'path' not in data: |
4512 | - return |
4513 | - if not self.config.get('item_download', True): |
4514 | - return |
4515 | - LOG.debug("inserting %s to %s", contentsource.url, data['path']) |
4516 | - self.store.insert(data['path'], contentsource, |
4517 | - checksums=checksum_util.item_checksums(data), |
4518 | - mutable=False, size=data.get('size')) |
4519 | - self._inc_rc(data['path'], src, pedigree) |
4520 | - |
4521 | - def insert_index_entry(self, data, src, pedigree, contentsource): |
4522 | - epath = data.get('path', None) |
4523 | - if not epath: |
4524 | - return |
4525 | - self.store.insert(epath, contentsource, |
4526 | - checksums=checksum_util.item_checksums(data)) |
4527 | - |
4528 | - def insert_products(self, path, target, content): |
4529 | - dpath = self.products_data_path(target['content_id']) |
4530 | - self.store.insert_content(dpath, util.dump_data(target)) |
4531 | - if not path: |
4532 | - return |
4533 | - if not content: |
4534 | - content = util.dump_data(target) |
4535 | - self.store.insert_content(path, content) |
4536 | - |
4537 | - def insert_index(self, path, src, content): |
4538 | - if not path: |
4539 | - return |
4540 | - if not content: |
4541 | - content = util.dump_data(src) |
4542 | - self.store.insert_content(path, content) |
4543 | - |
4544 | - def remove_item(self, data, src, target, pedigree): |
4545 | - util.products_del(target, pedigree) |
4546 | - if 'path' not in data: |
4547 | - return |
4548 | - if self._dec_rc(data['path'], src, pedigree): |
4549 | - self.store.remove(data['path']) |
4550 | - |
4551 | - |
4552 | -class ObjectFilterMirror(ObjectStoreMirrorWriter): |
4553 | - def __init__(self, *args, **kwargs): |
4554 | - super(ObjectFilterMirror, self).__init__(*args, **kwargs) |
4555 | - self.filters = self.config.get('filters', []) |
4556 | - |
4557 | - def filter_item(self, data, src, target, pedigree): |
4558 | - return filters.filter_item(self.filters, data, src, pedigree) |
4559 | - |
4560 | - |
4561 | -class DryRunMirrorWriter(ObjectFilterMirror): |
4562 | - def __init__(self, *args, **kwargs): |
4563 | - super(DryRunMirrorWriter, self).__init__(*args, **kwargs) |
4564 | - self.downloading = [] |
4565 | - self.removing = [] |
4566 | - |
4567 | - # All insert/remove operations are noops. |
4568 | - def noop(*args): |
4569 | - pass |
4570 | - |
4571 | - insert_index = noop |
4572 | - insert_index_entry = noop |
4573 | - insert_products = noop |
4574 | - insert_product = noop |
4575 | - insert_version = noop |
4576 | - remove_product = noop |
4577 | - remove_version = noop |
4578 | - |
4579 | - def insert_item(self, data, src, target, pedigree, contentsource): |
4580 | - data = util.products_exdata(src, pedigree) |
4581 | - if 'size' in data and 'path' in data: |
4582 | - self.downloading.append( |
4583 | - (pedigree, data['path'], int(data['size']))) |
4584 | - |
4585 | - def remove_item(self, data, src, target, pedigree): |
4586 | - data = util.products_exdata(src, pedigree) |
4587 | - if 'size' in data and 'path' in data: |
4588 | - self.removing.append( |
4589 | - (pedigree, data['path'], int(data['size']))) |
4590 | - |
4591 | - @property |
4592 | - def size(self): |
4593 | - downloading = sum([size for _, _, size in self.downloading]) |
4594 | - removing = sum([size for _, _, size in self.removing]) |
4595 | - return int(downloading - removing) |
4596 | - |
4597 | - |
4598 | -def _get_data_content(path, data, content, reader): |
4599 | - if content is None and path: |
4600 | - _, content = reader.read(path) |
4601 | - if isinstance(content, bytes): |
4602 | - content = content.decode('utf-8') |
4603 | - |
4604 | - if data is None and content: |
4605 | - data = util.load_content(content) |
4606 | - |
4607 | - if not data: |
4608 | - raise ValueError("Data could not be loaded. " |
4609 | - "Path or content is required") |
4610 | - return (data, content) |
4611 | - |
4612 | - |
4613 | -def check_tree_paths(tree, fmt=None): |
4614 | - if fmt is None: |
4615 | - fmt = tree.get('format') |
4616 | - if fmt == "products:1.0": |
4617 | - def check_path(item, tree, pedigree): |
4618 | - util.assert_safe_path(item.get('path')) |
4619 | - util.walk_products(tree, cb_item=check_path) |
4620 | - elif fmt == "index:1.0": |
4621 | - index = tree.get('index') |
4622 | - for content_id in index: |
4623 | - util.assert_safe_path(index[content_id].get('path')) |
4624 | - |
4625 | -# vi: ts=4 expandtab |
4626 | |
4627 | === removed file 'simplestreams/mirrors/command_hook.py' |
4628 | --- simplestreams/mirrors/command_hook.py 2014-07-15 21:39:59 +0000 |
4629 | +++ simplestreams/mirrors/command_hook.py 1970-01-01 00:00:00 +0000 |
4630 | @@ -1,302 +0,0 @@ |
4631 | -# Copyright (C) 2013 Canonical Ltd. |
4632 | -# |
4633 | -# Author: Scott Moser <scott.moser@canonical.com> |
4634 | -# |
4635 | -# Simplestreams is free software: you can redistribute it and/or modify it |
4636 | -# under the terms of the GNU Affero General Public License as published by |
4637 | -# the Free Software Foundation, either version 3 of the License, or (at your |
4638 | -# option) any later version. |
4639 | -# |
4640 | -# Simplestreams is distributed in the hope that it will be useful, but |
4641 | -# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
4642 | -# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public |
4643 | -# License for more details. |
4644 | -# |
4645 | -# You should have received a copy of the GNU Affero General Public License |
4646 | -# along with Simplestreams. If not, see <http://www.gnu.org/licenses/>. |
4647 | - |
4648 | -import simplestreams.mirrors as mirrors |
4649 | -import simplestreams.util as util |
4650 | - |
4651 | -import os |
4652 | -import errno |
4653 | -import signal |
4654 | -import subprocess |
4655 | -import tempfile |
4656 | - |
4657 | -REQUIRED_FIELDS = ("load_products",) |
4658 | -HOOK_NAMES = ( |
4659 | - "filter_index_entry", |
4660 | - "filter_item", |
4661 | - "filter_product", |
4662 | - "filter_version", |
4663 | - "insert_index", |
4664 | - "insert_index_entry", |
4665 | - "insert_item", |
4666 | - "insert_product", |
4667 | - "insert_products", |
4668 | - "insert_version", |
4669 | - "load_products", |
4670 | - "remove_item", |
4671 | - "remove_product", |
4672 | - "remove_version", |
4673 | -) |
4674 | - |
4675 | -DEFAULT_HOOK_NAME = "hook" |
4676 | -ENV_HOOK_NAME = "HOOK" |
4677 | -ENV_FIELDS_NAME = "FIELDS" |
4678 | - |
4679 | - |
4680 | -class CommandHookMirror(mirrors.BasicMirrorWriter): |
4681 | - """ |
4682 | - CommandHookMirror: invoke commands to implement a SimpleStreamMirror |
4683 | - |
4684 | - Available command hooks: |
4685 | - load_products: |
4686 | - invoked to list items in the products in a given content_id. |
4687 | - See product_load_output_format. |
4688 | - |
4689 | - filter_index_entry, filter_item, filter_product, filter_version: |
4690 | - invoked to determine if the named entity should be operated on |
4691 | - exit 0 for "yes", 1 for "no". |
4692 | - |
4693 | - insert_index, insert_index_entry, insert_item, insert_product, |
4694 | - insert_products, insert_version : |
4695 | - invoked to insert the given entity. |
4696 | - |
4697 | - remove_product, remove_version, remove_item: |
4698 | - invoked to remove the given entity |
4699 | - |
4700 | - |
4701 | - Other Configuration: |
4702 | - product_load_output_format: one of [serial_list, json] |
4703 | - serial_list: The default output should be white space delimited |
4704 | - output of product_name and version. |
4705 | - json: output should be a json formated dictionary formated like |
4706 | - products:1.0 content. |
4707 | - |
4708 | - Environments / Variables: |
4709 | - When a hook is invoked, data about the relevant entity is |
4710 | - made available in the environment. |
4711 | - |
4712 | - In all cases: |
4713 | - * a special 'FIELDS' key is available which is a space delimited |
4714 | - list of keys |
4715 | - * a special 'HOOK' field is available that specifies which |
4716 | - hook is being called. |
4717 | - |
4718 | - For an item in a products:1.0 file that has a 'path' item, the item |
4719 | - will be downloaded and a 'path_local' field inserted into the metadata |
4720 | - which will contain the path to the local file. |
4721 | - |
4722 | - If the configuration setting 'item_skip_download' is set to True, then |
4723 | - 'path_url' will be set instead to a url where the item can be found. |
4724 | - """ |
4725 | - def __init__(self, config): |
4726 | - if isinstance(config, str): |
4727 | - config = util.load_content(config) |
4728 | - check_config(config) |
4729 | - |
4730 | - super(CommandHookMirror, self).__init__(config=config) |
4731 | - |
4732 | - def load_products(self, path=None, content_id=None): |
4733 | - (_rc, output) = self.call_hook('load_products', |
4734 | - data={'content_id': content_id}, |
4735 | - capture=True) |
4736 | - fmt = self.config.get("product_load_output_format", "serial_list") |
4737 | - |
4738 | - loaded = load_product_output(output=output, content_id=content_id, |
4739 | - fmt=fmt) |
4740 | - return loaded |
4741 | - |
4742 | - def filter_index_entry(self, data, src, pedigree): |
4743 | - mdata = util.stringitems(src) |
4744 | - mdata['content_id'] = pedigree[0] |
4745 | - mdata.update(util.stringitems(data)) |
4746 | - |
4747 | - (ret, _output) = self.call_hook('filter_index_entry', data=mdata, |
4748 | - rcs=[0, 1]) |
4749 | - return ret == 0 |
4750 | - |
4751 | - def filter_product(self, data, src, target, pedigree): |
4752 | - return self._call_filter('filter_product', src, pedigree) |
4753 | - |
4754 | - def filter_version(self, data, src, target, pedigree): |
4755 | - return self._call_filter('filter_version', src, pedigree) |
4756 | - |
4757 | - def filter_item(self, data, src, target, pedigree): |
4758 | - return self._call_filter('filter_item', src, pedigree) |
4759 | - |
4760 | - def _call_filter(self, name, src, pedigree): |
4761 | - data = util.products_exdata(src, pedigree) |
4762 | - (ret, _output) = self.call_hook(name, data=data, rcs=[0, 1]) |
4763 | - return ret == 0 |
4764 | - |
4765 | - def insert_index(self, path, src, content): |
4766 | - return self.call_hook('insert_index', data=src, content=content, |
4767 | - extra={'path': path}) |
4768 | - |
4769 | - def insert_products(self, path, target, content): |
4770 | - return self.call_hook('insert_products', data=target, |
4771 | - content=content, extra={'path': path}) |
4772 | - |
4773 | - def insert_product(self, data, src, target, pedigree): |
4774 | - return self.call_hook('insert_product', |
4775 | - data=util.products_exdata(src, pedigree)) |
4776 | - |
4777 | - def insert_version(self, data, src, target, pedigree): |
4778 | - return self.call_hook('insert_version', |
4779 | - data=util.products_exdata(src, pedigree)) |
4780 | - |
4781 | - def insert_item(self, data, src, target, pedigree, contentsource): |
4782 | - mdata = util.products_exdata(src, pedigree) |
4783 | - |
4784 | - tmp_path = None |
4785 | - tmp_del = None |
4786 | - extra = {} |
4787 | - if 'path' in data: |
4788 | - extra.update({'item_url': contentsource.url}) |
4789 | - if not self.config.get('item_skip_download', False): |
4790 | - try: |
4791 | - (tmp_path, tmp_del) = util.get_local_copy(contentsource) |
4792 | - extra['path_local'] = tmp_path |
4793 | - finally: |
4794 | - contentsource.close() |
4795 | - |
4796 | - try: |
4797 | - ret = self.call_hook('insert_item', data=mdata, extra=extra) |
4798 | - finally: |
4799 | - if tmp_del and os.path.exists(tmp_path): |
4800 | - os.unlink(tmp_path) |
4801 | - return ret |
4802 | - |
4803 | - def remove_product(self, data, src, target, pedigree): |
4804 | - return self.call_hook('remove_product', |
4805 | - data=util.products_exdata(src, pedigree)) |
4806 | - |
4807 | - def remove_version(self, data, src, target, pedigree): |
4808 | - return self.call_hook('remove_version', |
4809 | - data=util.products_exdata(src, pedigree)) |
4810 | - |
4811 | - def remove_item(self, data, src, target, pedigree): |
4812 | - return self.call_hook('remove_item', |
4813 | - data=util.products_exdata(target, pedigree)) |
4814 | - |
4815 | - def call_hook(self, hookname, data, capture=False, rcs=None, extra=None, |
4816 | - content=None): |
4817 | - command = self.config.get(hookname, self.config.get(DEFAULT_HOOK_NAME)) |
4818 | - if not command: |
4819 | - # return successful execution with no output |
4820 | - return (0, '') |
4821 | - |
4822 | - if isinstance(command, str): |
4823 | - command = ['sh', '-c', command] |
4824 | - |
4825 | - fdata = util.stringitems(data) |
4826 | - |
4827 | - content_file = None |
4828 | - if content is not None: |
4829 | - (tfd, content_file) = tempfile.mkstemp() |
4830 | - tfile = os.fdopen(tfd, "w") |
4831 | - tfile.write(content) |
4832 | - tfile.close() |
4833 | - fdata['content_file_path'] = content_file |
4834 | - |
4835 | - if extra: |
4836 | - fdata.update(extra) |
4837 | - fdata['HOOK'] = hookname |
4838 | - |
4839 | - try: |
4840 | - return call_hook(command=command, data=fdata, |
4841 | - unset=self.config.get('unset_value', None), |
4842 | - capture=capture, rcs=rcs) |
4843 | - finally: |
4844 | - if content_file: |
4845 | - os.unlink(content_file) |
4846 | - |
4847 | - |
4848 | -def call_hook(command, data, unset=None, capture=False, rcs=None): |
4849 | - env = os.environ.copy() |
4850 | - data = data.copy() |
4851 | - |
4852 | - data[ENV_FIELDS_NAME] = ' '.join([k for k in data if k != ENV_HOOK_NAME]) |
4853 | - |
4854 | - mcommand = render(command, data, unset=unset) |
4855 | - |
4856 | - env.update(data) |
4857 | - return run_command(mcommand, env=env, capture=capture, rcs=rcs) |
4858 | - |
4859 | - |
4860 | -def render(inputs, data, unset=None): |
4861 | - fdata = data.copy() |
4862 | - outputs = [] |
4863 | - for i in inputs: |
4864 | - while True: |
4865 | - try: |
4866 | - outputs.append(i % fdata) |
4867 | - break |
4868 | - except KeyError as err: |
4869 | - if unset is None: |
4870 | - raise |
4871 | - for key in err.args: |
4872 | - fdata[key] = unset |
4873 | - return outputs |
4874 | - |
4875 | - |
4876 | -def check_config(config): |
4877 | - missing = [] |
4878 | - for f in REQUIRED_FIELDS: |
4879 | - if f not in config and config.get(DEFAULT_HOOK_NAME) is None: |
4880 | - missing.append(f) |
4881 | - if missing: |
4882 | - raise TypeError("Missing required config entries for %s" % missing) |
4883 | - |
4884 | - |
4885 | -def load_product_output(output, content_id, fmt="serial_list"): |
4886 | - # parse command output and return |
4887 | - |
4888 | - if fmt == "serial_list": |
4889 | - # "line" format just is a list of serials that are present |
4890 | - working = {'content_id': content_id, 'products': {}} |
4891 | - for line in output.splitlines(): |
4892 | - (product_id, version) = line.split(None, 1) |
4893 | - if product_id not in working['products']: |
4894 | - working['products'][product_id] = {'versions': {}} |
4895 | - working['products'][product_id]['versions'][version] = {} |
4896 | - return working |
4897 | - |
4898 | - elif fmt == "json": |
4899 | - return util.load_content(output) |
4900 | - |
4901 | - return |
4902 | - |
4903 | - |
4904 | -def run_command(cmd, env=None, capture=False, rcs=None): |
4905 | - if not rcs: |
4906 | - rcs = [0] |
4907 | - |
4908 | - if not capture: |
4909 | - stdout = None |
4910 | - else: |
4911 | - stdout = subprocess.PIPE |
4912 | - |
4913 | - sp = subprocess.Popen(cmd, env=env, stdout=stdout, shell=False) |
4914 | - (out, _err) = sp.communicate() |
4915 | - rc = sp.returncode |
4916 | - |
4917 | - if rc == 0x80 | signal.SIGPIPE: |
4918 | - exc = IOError("Child Received SIGPIPE: %s" % str(cmd)) |
4919 | - exc.errno = errno.EPIPE |
4920 | - raise exc |
4921 | - |
4922 | - if rc not in rcs: |
4923 | - raise subprocess.CalledProcessError(rc, cmd) |
4924 | - |
4925 | - if out is None: |
4926 | - out = '' |
4927 | - elif isinstance(out, bytes): |
4928 | - out = out.decode('utf-8') |
4929 | - |
4930 | - return (rc, out) |
4931 | - |
4932 | -# vi: ts=4 expandtab syntax=python |
4933 | |
4934 | === removed file 'simplestreams/mirrors/glance.py' |
4935 | --- simplestreams/mirrors/glance.py 2017-11-02 18:43:37 +0000 |
4936 | +++ simplestreams/mirrors/glance.py 1970-01-01 00:00:00 +0000 |
4937 | @@ -1,641 +0,0 @@ |
4938 | -# Copyright (C) 2013 Canonical Ltd. |
4939 | -# |
4940 | -# Author: Scott Moser <scott.moser@canonical.com> |
4941 | -# |
4942 | -# Simplestreams is free software: you can redistribute it and/or modify it |
4943 | -# under the terms of the GNU Affero General Public License as published by |
4944 | -# the Free Software Foundation, either version 3 of the License, or (at your |
4945 | -# option) any later version. |
4946 | -# |
4947 | -# Simplestreams is distributed in the hope that it will be useful, but |
4948 | -# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
4949 | -# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public |
4950 | -# License for more details. |
4951 | -# |
4952 | -# You should have received a copy of the GNU Affero General Public License |
4953 | -# along with Simplestreams. If not, see <http://www.gnu.org/licenses/>. |
4954 | - |
4955 | -import simplestreams.filters as filters |
4956 | -import simplestreams.mirrors as mirrors |
4957 | -import simplestreams.util as util |
4958 | -from simplestreams import checksum_util |
4959 | -import simplestreams.openstack as openstack |
4960 | -from simplestreams.log import LOG |
4961 | - |
4962 | -import copy |
4963 | -import errno |
4964 | -import glanceclient |
4965 | -import json |
4966 | -import os |
4967 | -import re |
4968 | - |
4969 | - |
4970 | -def get_glanceclient(version='1', **kwargs): |
4971 | - # newer versions of the glanceclient will do this 'strip_version' for |
4972 | - # us, but older versions do not. |
4973 | - kwargs['endpoint'] = _strip_version(kwargs['endpoint']) |
4974 | - pt = ('endpoint', 'token', 'insecure', 'cacert') |
4975 | - kskw = {k: kwargs.get(k) for k in pt if k in kwargs} |
4976 | - if kwargs.get('session'): |
4977 | - sess = kwargs.get('session') |
4978 | - return glanceclient.Client(version, session=sess) |
4979 | - else: |
4980 | - return glanceclient.Client(version, **kskw) |
4981 | - |
4982 | - |
4983 | -def empty_iid_products(content_id): |
4984 | - return {'content_id': content_id, 'products': {}, |
4985 | - 'datatype': 'image-ids', 'format': 'products:1.0'} |
4986 | - |
4987 | - |
4988 | -def canonicalize_arch(arch): |
4989 | - '''Canonicalize Ubuntu archs for use in OpenStack''' |
4990 | - newarch = arch.lower() |
4991 | - if newarch == "amd64": |
4992 | - newarch = "x86_64" |
4993 | - if newarch == "i386": |
4994 | - newarch = "i686" |
4995 | - if newarch == "ppc64el": |
4996 | - newarch = "ppc64le" |
4997 | - if newarch == "powerpc": |
4998 | - newarch = "ppc" |
4999 | - if newarch == "armhf": |
5000 | - newarch = "armv7l" |
I ran this by the team today and we're +1 on it. The glance- symplestreams- sync charm installs from the python- simplestreams package which I don't foresee this will have any affect on.