metdata/repoman/*: Add current API version and minimum repoman version info

With teh version field, repoman can check that it meets the API compatibility
requirements of the metadata/repoman file(s).
The minimum repoman_version is output in the repoman error message if the
currently installed repoman is not capable of handling all the file & data
features.
This commit is contained in:
Brian Dolbec
2017-08-17 02:05:38 +00:00
parent 0dc9b1b27b
commit 6a8b37fbfc
3 changed files with 16 additions and 1 deletions

View File

@@ -10,7 +10,12 @@
# but support for third party module will be limited to the plugin API
#
errors:
# Repoman API version (do not edit)
version: 1
# minimum
repoman_version: 2.3.3
errors:
COPYRIGHT_ERROR: 'Invalid Gentoo Copyright on line: %d'
LICENSE_ERROR: 'Invalid Gentoo/GPL License on line: %d'
ID_HEADER_ERROR: 'Stale CVS header on line: %d'

View File

@@ -9,6 +9,11 @@
# but support for third party module will be limited to the plugin API
#
# Repoman API version (do not edit)
version: 1
# minimum
repoman_version: 2.3.3
allowed_filename_chars: "a-zA-Z0-9._-+:"
max_description_length: 80

View File

@@ -10,6 +10,11 @@
# but support for third party module will be limited to the plugin API
#
# Repoman API version (do not edit)
version: 1
# minimum
repoman_version: 2.3.3
# NOTE: for non-gentoo repos, any custom modules added will need their
# module names to the modules list in order for them to run.