Skip to content

Development file support#4

Open
jekamps wants to merge 3 commits into
LibreELEC:masterfrom
jekamps:DevFileSupport
Open

Development file support#4
jekamps wants to merge 3 commits into
LibreELEC:masterfrom
jekamps:DevFileSupport

Conversation

@jekamps

@jekamps jekamps commented Jan 27, 2022

Copy link
Copy Markdown

Please merge the following changes for full development file support and development pretty name support per new argument -d

I checked them with the myself generated files.

Thanks a lot

Signed-off-by: John-Eric Kamps <johnny86@gmx.de>
…devel, nightly, daily, weekly, monthly).

No need to set them manually.

Signed-off-by: John-Eric Kamps <johnny86@gmx.de>
Signed-off-by: John-Eric Kamps <johnny86@gmx.de>
@CvH CvH requested a review from lrusak January 27, 2022 20:48
@CvH CvH removed the request for review from lrusak June 5, 2022 11:35
@CvH

CvH commented Jun 5, 2022

Copy link
Copy Markdown
Member

@antonlacon @lrusak could you have a look ?

@antonlacon antonlacon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initial comments from looking at the python usage. I haven't tried parsing the prettyname regex out, or looked at the manual update function in the addon where this gets used yet.

Comment thread releases.py
self._prettyname = args.prettyname
else:
self._prettyname = PRETTYNAME
if args.dev_prettyname:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be an elif at same indent.

Comment thread releases.py
a_maj_min_patch = self._regex_xydate_custom_short_sort.search(a)

if not a_maj_min_patch:
raise Exception('ERROR: Filename not like expected')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An f-string, or similar, to make this exception more useful:

raise Exception(f'ERROR: Unexpected filename: {a}')

Comment thread releases.py
b_maj_min_patch = self._regex_xydate_custom_short_sort.search(b)

if not b_maj_min_patch:
raise Exception('ERROR: Filename not like expected')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as for a.

Comment thread releases.py

parser.add_argument('-d', '--dev_prettyname', action="store_true", required=False, \
help=' Enable prettyname regex for development builds (devel, nightly, daily, weekly, monthly)')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leading space in the help string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants