[PATCH 0/1] Fix doc directory cleanup
Elena Zannoni <[email protected]>
| Newsgroups | dev.linux.lists.dtrace |
|---|---|
| Message-ID | <[email protected]> |
Currently, uninstalling the dtrace RPM leaves an empty doc directory behind. Such as: $ ls /usr/share/doc/dtrace-2.0.3/ INCOMPATIBILITIES NEWS README showUSDT $ sudo rpm -e dtrace-2.0.3 Removed '/etc/systemd/system/basic.target.wants/dtprobed.service'. Removed '/etc/systemd/system/basic.target.wants/dtrace-usdt.target'. $ ls /usr/share/doc/dtrace-2.0.3/ $ This patch changes the list of files to include the directory itself, not just its contents. After this patch the behavior is: $ ls /usr/share/doc/dtrace-2.0.3/ INCOMPATIBILITIES NEWS README showUSDT $ sudo rpm -e dtrace-2.0.3 Removed '/etc/systemd/system/basic.target.wants/dtprobed.service'. Removed '/etc/systemd/system/basic.target.wants/dtrace-usdt.target'. $ ls /usr/share/doc/dtrace-2.0.3/ ls: cannot access '/usr/share/doc/dtrace-2.0.3/': No such file or directory Elena Zannoni (1): Make sure the doc dir is cleaned up on RPM uninstall dtrace.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.49.0