update excluded files list for 8.0.0~b1
This commit is contained in:
parent
10f6b04abf
commit
c2e409cc77
3 changed files with 21 additions and 6 deletions
|
|
@ -18,16 +18,25 @@ hidden_pattern=".*\.(DS_Store|all-contributorsrc|ansible-lint|azure-pipelines|ci
|
|||
find ansible_collections -depth -regextype posix-egrep -regex "${hidden_pattern}" -print -exec rm -r {} \;
|
||||
|
||||
# Not needed for runtime
|
||||
rm -rv ansible_collections/cisco/meraki/scripts
|
||||
rm -rv ansible_collections/community/grafana/hacking
|
||||
rm -rv ansible_collections/cisco/meraki/scripts/
|
||||
rm -rv ansible_collections/community/digitalocean/scripts/
|
||||
rm -rv ansible_collections/community/grafana/hacking/
|
||||
rm -rv ansible_collections/community/okd/ci/
|
||||
rm -rv ansible_collections/community/vmware/tools
|
||||
rm -rv ansible_collections/community/vmware/tools/
|
||||
rm -rv ansible_collections/cyberark/conjur/ci/
|
||||
rm -rv ansible_collections/cyberark/conjur/dev/
|
||||
rm -rv ansible_collections/cyberark/conjur/roles/conjur_host_identity/tests/
|
||||
rm -rv ansible_collections/google/cloud/test-fixtures/
|
||||
rm -rv ansible_collections/google/cloud/scripts/
|
||||
rm -rv ansible_collections/grafana/grafana/tools/
|
||||
rm -rv ansible_collections/netbox/netbox/hacking/
|
||||
rm -rv ansible_collections/sensu/sensu_go/docker/
|
||||
rm -rv ansible_collections/sensu/sensu_go/tools/
|
||||
|
||||
rm -v ansible_collections/community/dns/update-docs-fragments.py
|
||||
rm -v ansible_collections/community/dns/update-psl.sh
|
||||
rm -v ansible_collections/community/mysql/run_all_tests.py
|
||||
rm -v ansible_collections/community/routeros/update-docs.py
|
||||
rm -v ansible_collections/cyberark/conjur/Jenkinsfile
|
||||
rm -v ansible_collections/dellemc/enterprise_sonic/rebuild.sh
|
||||
rm -v ansible_collections/ovirt/ovirt/build.sh
|
||||
|
|
@ -56,12 +65,14 @@ find ansible_collections/community/mongodb/roles/*/{files,templates} -type f '!'
|
|||
# TODO: File issue upstream
|
||||
find ansible_collections/lowlydba/sqlserver/ -executable -type f -print -exec chmod a-x '{}' \;
|
||||
|
||||
|
||||
# Remove shebangs instead of hardocding to %%__python3 to avoid unexpected issues
|
||||
# from https://github.com/ansible/ansible/commit/9142be2f6cabbe6597c9254c5bb9186d17036d55.
|
||||
# Upstream, ansible-core has also removed shebangs from its modules.
|
||||
#
|
||||
# XXX: Print out the files before they're replaced
|
||||
find -type f ! -executable -name '*.py' | tee non_exec
|
||||
find ansible_collections -type f ! -executable -name '*.py' | tee non_exec
|
||||
echo ansible_collections/community/sap_libs/plugins/module_utils/swpm2_parameters_inifile_generate.py >> non_exec
|
||||
# xargs is noticably faster than find -exec, because it spawns one sed process
|
||||
# instead of ~13 thousand!
|
||||
xargs -a non_exec -d'\n' sed -i -e '1{\@^#!.*@d}'
|
||||
|
|
|
|||
|
|
@ -4,6 +4,6 @@ addFilter("W: name-repeated-in-summary")
|
|||
addFilter("W: cross-directory-hard-link")
|
||||
# Roles' files and templates should not be mangled
|
||||
addFilter(r"E: env-script-interpreter.*ansible_collections/[^/]+/[^/]+/roles/[^/]+/(files|templates)/")
|
||||
addFilter("W: deprecated-grep \['egrep'\]")
|
||||
addFilter(r"E: non-executable-script.*ansible_collections/[^/]+/[^/]+/roles/[^/]+/(files|templates)/")
|
||||
addFilter("W: no-manual-page-for-binary ansible-community")
|
||||
addFilter(r"E: zero-length /usr/lib/python3.\d+/site-packages/ansible_collections/community/zabbix/roles/zabbix_agent/vars/main.yml")
|
||||
addFilter(r"E: zero-length")
|
||||
|
|
|
|||
|
|
@ -141,6 +141,10 @@ mv docs %{buildroot}%{_pkgdocdir}/ansible_collections
|
|||
hardlink -v %{buildroot}%{python3_sitelib}/ansible_collections
|
||||
hardlink -v %{buildroot}%{_licensedir}/ansible
|
||||
|
||||
# XXX: One of the build steps is messing with the permission.
|
||||
# XXX: The file is 0755 in the source tarball.
|
||||
chmod 0755 %{buildroot}%{python3_sitelib}/ansible_collections/ngine_io/cloudstack/scripts/inventory/cloudstack.py
|
||||
|
||||
|
||||
%check
|
||||
%if %{with tests}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue