CI: grep: disallow /etc/local.d
/etc/local.d/ is reserved entirely for sysadmins for usage with OpenRC. There was an effort to move this path to *-openrc subpackages in abuild!484, but it was stalled for this reason. As such, it makes the most sense to disallow all files in /etc/local.d/ in packaging. Signed-off-by: Aster Boese <asterboese@mailbox.org> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8745>
This commit is contained in:
parent
a3fa1e1159
commit
e603f09fd6
1 changed files with 8 additions and 0 deletions
|
|
@ -120,6 +120,14 @@ if grep -qr '# Maintainer:' -- *; then
|
|||
exit_code=1
|
||||
fi
|
||||
|
||||
# Disallow sysadmin OpenRC files
|
||||
if grep -qr '/etc/local.d' --exclude-dir='archived' -- *; then
|
||||
echo "ERROR: Please replace the '/etc/local.d' script with real OpenRC service files."
|
||||
echo "See https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4360"
|
||||
grep --color=always -r '/etc/local.d' --exclude-dir='archived' -- *
|
||||
exit_code=1
|
||||
fi
|
||||
|
||||
if [ -n "$CI_MERGE_REQUEST_DIFF_BASE_SHA" ]; then
|
||||
# Find all added, modified or renamed kernel APKBUILDs in main, community or testing
|
||||
MODIFIED_MAINLINE_KERNEL_PACKAGES=$(git show --pretty="" --name-only --diff-filter=AMR "$CI_MERGE_REQUEST_DIFF_BASE_SHA"..HEAD | grep "device/\(main\|community\|testing\)/linux-.*/APKBUILD" || true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue