From 6a8b37fbfcb617f63e53c21ff8af429aa4624020 Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Thu, 17 Aug 2017 02:05:38 +0000 Subject: [PATCH] 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. --- metadata/repoman/linechecks.yaml | 7 ++++++- metadata/repoman/qa_data.yaml | 5 +++++ metadata/repoman/repository.yaml | 5 +++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/metadata/repoman/linechecks.yaml b/metadata/repoman/linechecks.yaml index 769cb9402c3d..4f3e6468a5c9 100644 --- a/metadata/repoman/linechecks.yaml +++ b/metadata/repoman/linechecks.yaml @@ -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' diff --git a/metadata/repoman/qa_data.yaml b/metadata/repoman/qa_data.yaml index f9950c580cbb..c39aec9dda49 100644 --- a/metadata/repoman/qa_data.yaml +++ b/metadata/repoman/qa_data.yaml @@ -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 diff --git a/metadata/repoman/repository.yaml b/metadata/repoman/repository.yaml index fab9079f808c..9352604243c3 100644 --- a/metadata/repoman/repository.yaml +++ b/metadata/repoman/repository.yaml @@ -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. -- 2.26.2