Mark README files as doc

/etc/rc.d/init.d/README was marked as %config(noreplace), which seems
to be a clear bug. But this primarily affects new README files in
all the .d directories.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-03-31 10:03:27 +02:00
parent f0032c4da6
commit c6e8c30b17
1 changed files with 2 additions and 0 deletions

View File

@ -136,6 +136,8 @@ for file in files(buildroot):
prefix += ' '
elif file.is_dir() and not file.is_symlink():
prefix = '%dir '
elif 'README' in n:
prefix = '%doc '
elif n.startswith('/etc'):
prefix = '%config(noreplace) '
else: