Gentoo Archives: gentoo-dev

From: Kent Fredric <kentnl@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Improving repoman checking, better idea (add arch.desc file)
Date: Sun, 29 Jan 2017 17:32:24
Message-Id: 20170130063055.21ec5590@katipo2.lan
In Reply to: Re: [gentoo-dev] Improving repoman checking, better idea (add arch.desc file) by Mart Raudsepp
1 On Sun, 29 Jan 2017 18:20:34 +0200
2 Mart Raudsepp <leio@g.o> wrote:
3
4 > Maybe declare from the start that any extra columns should be silently
5 > ignored in implementations from start, as to be able to safely add more
6 > columns in the future without breaking backwards compatibility.
7
8 Maybe not silently, maybe just a warning that there are additional columns
9 or field values not supported by the existing version, so that one knows
10 they are possibly missing out on some important checks.
11
12 Maybe even worth specifying that the first line of the file is a comment
13 like
14
15 # version:app-portage/repoman-2.3.1
16
17 Which can be extracted and displayed to a user as follows:
18
19 "Unsupported values in profiles/arch.desc: foo, bar, baz
20 Consider upgrading to at least ${version} or equivalent"
21
22 Where "${version}" is extracted via /#\s*version:([^ ]*)/
23
24 ( That is, showing the contents of the part after "version:" verbatim
25 and not even considering doing version comparisons )