metdata/repoman/*: Add current API version and minimum repoman version info
authorBrian Dolbec <dolsen@gentoo.org>
Thu, 17 Aug 2017 02:05:38 +0000 (02:05 +0000)
committerBrian Dolbec <dolsen@gentoo.org>
Thu, 17 Aug 2017 02:11:52 +0000 (02:11 +0000)
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
metadata/repoman/qa_data.yaml
metadata/repoman/repository.yaml

index 769cb9402c3dbf9a5f8f726223887a0cac9ce82a..4f3e6468a5c958e3b011fa61723ba389800872ab 100644 (file)
 # 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'
index f9950c580cbb5c163347f789af5bae7e66013467..c39aec9dda496f1bc118c9d361c963eec353b41a 100644 (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
index fab9079f808ce78365ce1ad8dce6a95f88e46b01..9352604243c3bf1ace512aa1493a062598b6b666 100644 (file)
 # 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.