Package: slapos-node-unofficial
Version: 1.3.10-1
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package deletes configuration
files owned by other packages upon purge.

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

1m10.3s ERROR: FAIL: After purging files have disappeared:
  /etc/slapos/   owned by: slapos-client
  /etc/slapos/slapos-client.cfg  not owned
  /etc/slapos/ssl/       owned by: slapos-client


slapos-node-unofficial.postrm contains:

case "$1" in
    purge)
        ucf --purge /etc/slapos/slapos-node-unofficial.cfg || true
        db_get slapos-node-unofficial/software_root
        SOFTWARE_ROOT="$RET"

        rm -rf /etc/slapos/ /var/log/slapos/ /var/lib/slapos/ \
            /var/cache/slapos/certificates/ "$SOFTWARE_ROOT"
        ;;
esac

slapos-client.postrm contains:

case "$1" in
    purge)
        ucf --purge /etc/slapos/slapos-client.cfg || true
        rm -rf /etc/slapos/
        ;;
esac


Both packages are handling /etc/slapos/ in an unsave way.
Only the files managed by that package must be deleted.
slapos-node-unofficial should ship /etc/slapos/ as an empty
directory and let dpkg handle this.


cheers,

Andreas

Attachment: slapos-node-unofficial_1.3.10-1.log.gz
Description: application/gzip

Reply via email to