guyuqi opened a new pull request, #914:
URL: https://github.com/apache/bigtop/pull/914
<!--
Thanks for sending a pull request!
1. If this is your first time, please read our contributor guidelines:
https://cwiki.apache.org/confluence/display/BIGTOP/How+to+Contribute
2. Make sure your PR title starts with JIRA issue id, e.g.,
'BIGTOP-3638: Your PR title ...'.
-->
### Description of PR
Duplicated deleting operation ('%files' and '%preun%') in Ambari RPM spec
makes some warning issues when uninstalling Ambari rpm.
```
cp: cannot stat ‘/etc/ambari-server/conf’: No such file or directory
....
..
warning: file /etc/ambari-server/conf/metrics.properties: remove failed: No
such file or directory
warning: file /etc/ambari-server/conf/log4j.properties: remove failed: No
such file or directory
warning: file /etc/ambari-server/conf/krb5JAASLogin.conf: remove failed: No
such file or directory
warning: file /etc/ambari-server/conf/ambari.properties: remove failed: No
such file or directory
warning: file /etc/ambari-server/conf: remove failed: No such file or
directory
.....
cp: cannot stat ‘/etc/ambari-agent/conf’: No such file or directory
warning: file /etc/ambari-agent/conf/logging.conf.sample: remove failed: No
such file or directory
warning: file /etc/ambari-agent/conf/ambari-agent.ini: remove failed: No
such file or directory
warning: file /etc/ambari-agent/conf: remove failed: No such file or
directory
```
And remove '%config' (auto generating xxx.rpmsave);
`/etc/ambari-server/conf` and `/etc/ambari-agent/conf` would be auto-removed
in '%files'
### How was this patch tested?
Install Ambari rpms and uninstall them.
No warning there.
### For code changes:
- [ ] Does the title or this PR starts with the corresponding JIRA issue id
(e.g. 'BIGTOP-3638. Your PR title ...')?
- [ ] Make sure that newly added files do not have any licensing issues.
When in doubt refer to https://www.apache.org/licenses/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]