Merge lp:~gesha/linaro-license-protection/build-info-doc into lp:~linaro-automation/linaro-license-protection/trunk

Proposed by Georgy Redkozubov
Status: Merged
Merged at revision: 82
Proposed branch: lp:~gesha/linaro-license-protection/build-info-doc
Merge into: lp:~linaro-automation/linaro-license-protection/trunk
Diff against target: 87 lines (+78/-0)
1 file modified
README (+78/-0)
To merge this branch: bzr merge lp:~gesha/linaro-license-protection/build-info-doc
Reviewer Review Type Date Requested Status
Fathi Boudra Approve
Deepti B. Kalakeri (community) Needs Fixing
Milo Casagrande (community) Approve
Review via email: mp+110776@code.launchpad.net

Description of the change

This branch adds description of the BUILD-INFO.txt to the README

To post a comment you must log in.
Revision history for this message
Milo Casagrande (milo) wrote :

Hello Georgy,

merge request looks good to me.

review: Approve
Revision history for this message
Deepti B. Kalakeri (deeptik) wrote :

Hello Gesha,

Changes looks fine. Just few typos:

18 +Build-Name: landing-snowball
19 + Would be a unique over all the builds of the same type. For now used as

>> Should be instead "Would be unique over all the builds of the same type. For now used as"

29 +OpenID-Launchpad-Teams: linaro
30 + LP team names members of are allowed to access protected files. No OpenID

>> Should be instead "LP team names, members of which are allowed to access protected files. No OpenID"

33 + Default to 'no' if not present. If the field is set to 'yes' then

>> Should be instead "Defaults to 'no' if not present. If the field is set to 'yes' then"

46 +If no BUILD-INFO,txt is found it falls back to per-file/per-directoryEULA

>> BUILD-INFO,txt should be instead BUILD-INFO.txt include dot instead comma. And "per-file/per-directoryEULA" should be "per-file/per-directory EULA " (missing space befor EULA)

38 +
39 +- If line begins with space character ' ' it is treated as a part of last found
40 +variable which turns as multiline variable and is appended to it.
41 +- Variable names are case insensitive.

Are the line 38 - 41 belong to the description of License-Text: EULA full text included in BUILD-INFO.txt?? If yes then we should remove the blank line present at line 38

Also, line 24 - 28 are not aligned properly when compared to other lines.

review: Needs Fixing
Revision history for this message
Georgy Redkozubov (gesha) wrote :

Deepti, thanks for review.
Typos are fixed.

>
> Are the line 38 - 41 belong to the description of License-Text: EULA full text
> included in BUILD-INFO.txt?? If yes then we should remove the blank line
> present at line 38

Lines 38-41 belong not only to License-Text field. It is general agreement, but now we have only that field that can have multiline text.

81. By Georgy Redkozubov

Fixed typos

Revision history for this message
Deepti B. Kalakeri (deeptik) wrote :

27 + then OpenID protection is used, otherwise simple Accept/Decline license
28 + page is displayed before accessing protected files.

Ah! seems like lines 27, 28 show above are still misaligned.

The line "LP team names, members of are allowed to access protected files. No OpenID" Should be
"LP team names, members of which are allowed to access protected files. No OpenID"

Otherwise looks good.

review: Needs Fixing
Revision history for this message
Fathi Boudra (fboudra) wrote :

Could you document which fields are mandatory and which fields are optional?

Also the format version deserves to be documented somewhere:
e.g. v0.1 Initial version. Support foo, bar, etc... fields.

I suggest to look at the following documents:
http://www.debian.org/doc/debian-policy/ch-controlfields.html
http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

review: Needs Fixing
82. By Georgy Redkozubov

Divided format into paragraphs. Separated fields description from example.

Revision history for this message
Georgy Redkozubov (gesha) wrote :

> 27 + then OpenID protection is used, otherwise simple Accept/Decline
> license
> 28 + page is displayed before accessing protected files.
>
> Ah! seems like lines 27, 28 show above are still misaligned.

No :) they both belong to line 26

>
> The line "LP team names, members of are allowed to access protected files. No
> OpenID" Should be
> "LP team names, members of which are allowed to access protected files. No
> OpenID"

fixed

>
> Otherwise looks good.

Revision history for this message
Georgy Redkozubov (gesha) wrote :

> Could you document which fields are mandatory and which fields are optional?
>
> Also the format version deserves to be documented somewhere:
> e.g. v0.1 Initial version. Support foo, bar, etc... fields.
>
> I suggest to look at the following documents:
> http://www.debian.org/doc/debian-policy/ch-controlfields.html
> http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Updated docs based on your comments. Thanks.

Revision history for this message
Fathi Boudra (fboudra) wrote :

some nitpicking:
* Theme and License-Text are optional. They're required _only_ if License-Type is protected.
* BUILD-INFO.txt example isn't valid.
* I will re-order the fields for more clarity:
 - Files-Pattern
 - Build-Name
 - License-Type

review: Needs Fixing
83. By Georgy Redkozubov

Fixed BUILD-INFO.txt example. Updated description of fields.

Revision history for this message
Georgy Redkozubov (gesha) wrote :

> some nitpicking:
> * Theme and License-Text are optional. They're required _only_ if License-Type
> is protected.
> * BUILD-INFO.txt example isn't valid.
> * I will re-order the fields for more clarity:
> - Files-Pattern
> - Build-Name
> - License-Type

Good catch. Fixed.

Revision history for this message
Fathi Boudra (fboudra) wrote :

Ship it!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'README'
2--- README 2012-05-18 08:29:13 +0000
3+++ README 2012-06-20 11:52:12 +0000
4@@ -106,6 +106,84 @@
5 build steps, and not as publishing steps.
6
7
8+Build-Info support
9+------------------
10+
11+BUILD-INFO.txt format
12+.....................
13+
14+Paragraphs
15+..........
16+
17+ * Header paragraph
18+ * Files paragraph
19+
20+Header paragraph (once)
21+.......................
22+
23+The following fields may be present in a header paragraph:
24+ * Format-Version: (required)
25+ Version of the BUILD-INFO format.
26+
27+Files paragraph (repeatable)
28+............................
29+
30+The following fields may be present in a files paragraph:
31+ * Files-Pattern: (required, must be the first field in the paragraph)
32+ Comma separated filename patterns that are specified using a simplified
33+ shell glob syntax. Will be used to identify protected files.
34+ * Build-Name: (optional)
35+ Would be unique over all the builds of the same type. For now used as
36+ a placeholder and will be ignored. To be added later by build services?
37+ * License-Type: (required)
38+ open - Open builds. No license page is displayed.
39+ protected - EULA protected builds. If 'OpenID-Launchpad-Teams' is defined
40+ then OpenID protection is used, otherwise simple Accept/Decline license
41+ page is displayed before accessing protected files.
42+ * Theme: (required only if License-Type is 'protected')
43+ Acceptable values are: stericsson, samsung.
44+ Theme name for selecting proper theming on download and license pages.
45+ * OpenID-Launchpad-Teams: (optional)
46+ LP team names, members of which are allowed to access protected files. No
47+ OpenID protection if absent.
48+ * Collect-User-Data: (optional)
49+ Acceptable values are: yes, no.
50+ Defaults to 'no' if not present. If the field is set to 'yes' then
51+ Name and E-Mail (some other fields?) fields are asked to be filled. If it
52+ will be needed in the future it could be expanded with
53+ 'Collect-User-Data-Fields' field later or any other approach.
54+ * License-Text: (required only if License-Type is 'protected')
55+ EULA full text included in BUILD-INFO.txt
56+
57+- If line begins with space character ' ' it is treated as a part of last found
58+variable which turns as multiline variable and is appended to it.
59+- Field names are case insensitive.
60+- Fields order doesn't matter, except 'Files-Pattern'
61+
62+BUILD-INFO.txt example:
63+.......................
64+
65+Format-Version: 0.1
66+
67+Files-Pattern: *.img, *.tar.bz2
68+Build-Name: landing-snowball
69+License-Type: protected
70+Theme: stericsson
71+License-Text: EULA full text displayed to user.
72+ You should accept to download file.
73+
74+Files-Pattern: *.txt
75+Bulid-Name: landing-snowball
76+License-Type: open
77+
78+
79+License protection script takes information from the BUILD-INFO.txt file placed
80+in the same directory as artifacts, finds 'Files-Pattern' block corresponding
81+to requested file and applies rules from that block to download procedure.
82+If no BUILD-INFO.txt is found it falls back to per-file/per-directory EULA
83+protection.
84+
85+
86 Tests
87 -----
88

Subscribers

People subscribed via source and target branches