Description of problem: python-carbon deletes data files on uninstallation Version-Release number of selected component (if applicable): 0.9.12-1 How reproducible: Always Steps to Reproduce: 1. Collect data into /var/lib/carbon/whisper 2. rpm -e python-carbon 3. Notice /var/lib/carbon/whisper is gone and data has been deleted Actual results: User-created data deleted Expected results: User-created data still available after package deletion Additional info: Fedora Packaging Guidelines for Users and Groups (http://fedoraproject.org/wiki/Packaging:UsersAndGroups#Allocation_Strategies) says users and groups should not be deleted, and implies that user-created files should not be deleted either. I discovered this because I had built a locally-modified package with a different name and a Conflicts: python-carbon. I did this to avoid having my build overwritten if an EPEL update was released in the future. I was surprised when I removed python-carbon, intending to replace it with My-python-carbon, and all my data disappeared. I know not everyone would be surprised by that, which is why I checked to see what the packaging guidelines say. I believe the fix is to simply remove the %postun scriptlet: diff --git a/python-carbon.spec b/python-carbon.spec index 69dfbec..f04bae3 100644 --- a/python-carbon.spec +++ b/python-carbon.spec @@ -95,13 +95,6 @@ fi /sbin/chkconfig --add carbon-aggregator -%postun -if [ $1 = 0 ]; then - getent passwd carbon >/dev/null && \ - userdel -r carbon 2>/dev/null -fi - - %files %doc LICENSE conf/* %dir %{_sysconfdir}/carbon
python-carbon-0.9.12-2.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/python-carbon-0.9.12-2.fc20
python-carbon-0.9.12-2.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/python-carbon-0.9.12-2.el5
python-carbon-0.9.12-2.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/python-carbon-0.9.12-2.fc19
python-carbon-0.9.12-2.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/python-carbon-0.9.12-2.fc18
python-carbon-0.9.12-2.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/python-carbon-0.9.12-2.el6
Package python-carbon-0.9.12-2.el6: * should fix your issue, * was pushed to the Fedora EPEL 6 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing python-carbon-0.9.12-2.el6' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2013-11685/python-carbon-0.9.12-2.el6 then log in and leave karma (feedback).
python-carbon-0.9.12-2.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
python-carbon-0.9.12-2.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
python-carbon-0.9.12-2.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.
python-carbon-0.9.12-2.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.
python-carbon-0.9.12-2.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.