Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] manifest-version-format: Adds matching for string end to default manifest version format #155

Merged

Conversation

naglis
Copy link
Contributor

@naglis naglis commented Sep 5, 2017

This adds $ to the end of default manifest version format to disallow versions like 10.0.1.0.0WHATEVER.

Related: #152

@@ -234,7 +234,7 @@
DFTL_VALID_ODOO_VERSIONS = [
'4.2', '5.0', '6.0', '6.1', '7.0', '8.0', '9.0', '10.0'
]
DFTL_MANIFEST_VERSION_FORMAT = r"(%(valid_odoo_versions)s)\.\d+\.\d+\.\d+"
DFTL_MANIFEST_VERSION_FORMAT = r"(%(valid_odoo_versions)s)\.\d+\.\d+\.\d+$"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add ^ to "starts with" too

Copy link
Contributor Author

@naglis naglis Sep 5, 2017

Choose a reason for hiding this comment

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

re.match(), which is used in formatversion() to check the version number checks from beginning of the string, so the ^ would be redundant.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh yeah!
You are right! (again!) 😄

Copy link
Collaborator

@moylop260 moylop260 left a comment

Choose a reason for hiding this comment

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

Good catch, thank you!
Change a wrong version module with this case in order to cover this one

@naglis naglis changed the title [FIX] manifest-version-format: Adds matching for string end to default t manifest version format [FIX] manifest-version-format: Adds matching for string end to default manifest version format Sep 5, 2017
@moylop260 moylop260 merged commit 072e681 into OCA:master Sep 5, 2017
@naglis naglis deleted the fix_manifest_version_format_match_string_end branch September 5, 2017 15:43
moylop260 added a commit to vauxoo-dev/maintainer-quality-tools that referenced this pull request Sep 18, 2017
After merge OCA/pylint-odoo#155 we had this unexpected wrong format version
moylop260 pushed a commit to OCA/maintainer-quality-tools that referenced this pull request Sep 19, 2017
…ver the weblate-ssh server (#484)

* [FIX] apis.py: Adding new metod _ssh_keyscan to run the ssh-keyscan over the weblate-ssh server (#233)

* [REF] broken_deprecated: Use correct version format
 - After merge OCA/pylint-odoo#155 we had this unexpected wrong format version
bt-admin pushed a commit to brain-tec/pylint-odoo that referenced this pull request Oct 20, 2017
bt-admin pushed a commit to brain-tec/maintainer-quality-tools that referenced this pull request Oct 20, 2017
…ver the weblate-ssh server (OCA#484)

* [FIX] apis.py: Adding new metod _ssh_keyscan to run the ssh-keyscan over the weblate-ssh server (OCA#233)

* [REF] broken_deprecated: Use correct version format
 - After merge OCA/pylint-odoo#155 we had this unexpected wrong format version
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.

None yet

2 participants