[Android-tools-devel] Bug#915943: google-android-sdk-docs-installer: deletes empty directories under /usr/share/doc upon removal

Andreas Beckmann anbe at debian.org
Sat Dec 8 03:43:14 GMT 2018


Package: google-android-sdk-docs-installer
Version: 24+r1
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package removes directories that
were installed by another package.

>From the attached log (scroll to the bottom...):

4m0.1s ERROR: FAIL: After purging files have disappeared:
  /usr/share/doc/libext2fs/	 owned by: libext2fs2:amd64


The Makefile used by google-android-sdk-docs-installer contains
the following target that acts on the whole /usr/share/doc tree:

uninstall:
        rm -f $(INSTALL_DIR)/copyright.gz
        for d in `find $(INSTALL_DIR) /usr/share/doc -type d -empty`; do \
                test -d $$d && rmdir $$d || true ; done


While it may be questionable for some packages to ship empty
directories under /usr/share/doc, it is not the task of
google-android-sdk-docs-installer to clean them up.


cheers,

Andreas

PS: I only noticed this bug thanks to #915942 :-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: google-android-sdk-docs-installer_24+r1.log.gz
Type: application/gzip
Size: 310061 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/android-tools-devel/attachments/20181208/02b18167/attachment-0001.gz>


More information about the Android-tools-devel mailing list