Avoid backup Warnings during makepkg process.
Description:
Avoid backup Warnings during makepkg process.
Additional info:
- package version(s): nginx-1.26.0-2
- config and/or log files: PKGBUILD
- link to upstream bug report, if any:
Possible solution:
Please, move the "global" variable backup=(...) to package_nginx{,-src}() functions, to avoid backup Warnings during makepkg.
package_nginx() { ...
backup=(...)
... }
package_nginx-src() { ...
backup=()
... }
Steps to reproduce:
git clone ...
makepkg
...
==> Checking for packaging issues...
==> WARNING: backup entry file not in package : etc/nginx/fastcgi.conf
==> WARNING: backup entry file not in package : etc/nginx/fastcgi_params
==> WARNING: backup entry file not in package : etc/nginx/koi-win
==> WARNING: backup entry file not in package : etc/nginx/koi-utf
==> WARNING: backup entry file not in package : etc/nginx/nginx.conf
==> WARNING: backup entry file not in package : etc/nginx/scgi_params
==> WARNING: backup entry file not in package : etc/nginx/uwsgi_params
==> WARNING: backup entry file not in package : etc/nginx/win-utf
==> WARNING: backup entry file not in package : etc/logrotate.d/nginx
...