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

View File

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