]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
get-developers: add option to get developers for files
authorArnout Vandecappelle <arnout@mind.be>
Thu, 10 Aug 2017 21:11:16 +0000 (23:11 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 14 Aug 2017 20:39:57 +0000 (22:39 +0200)
commit009ae96c6f6c4ab18b120d3923583efaea29cfba
tree23532880f0097061d53c25dcf5a7bdc24c0cd881
parent204ed2e0b08a43ac69cbacf85bb1acaf0633cba5
get-developers: add option to get developers for files

The DEVELOPERS file lists file patterns, but the get-developers script
only supports getting packages and CPU architectures. Some files are
neither of those, e.g. defconfigs, support files, package infras, ...

Add a '-f' option that allows to give a list of files for which to get
the developer(s).

Note that the DEVELOPERS file contains directories as well as files,
and the directories are not expanded into individual files. Therefore,
we have to use f.startswith(devfile) to match a directory. This assumes
that the directory name ends with /, otherwise 'package/python' would
also match 'package/python-foo'. Since we make sure that directories do
end with / in the DEVELOPERS file, and since false positives are not
much of an issue in this case, this isn't a problem.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
utils/get-developers