Source: redmine Version: 3.2.3-1 Severity: normal -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
During my investigation of bug 835987¹, I noticed that purging redmine fails when there is no database.yml file. As this file is a configuration file, and thus can legitimately be removed by the admin, purging shouldn't fail on its absence. [ In my case the file was missing exactly due to bug 835987, that caused failure of redmine installation, but that is not relevant. ] Relevant parts of the log: root@sid:# apt-get purge redmine The following packages will be REMOVED: redmine* ls: cannot access '/etc/redmine/*/database.yml': No such file or directory dirname: missing operand Try 'dirname --help' for more information. basename: missing operand Try 'basename --help' for more information. dpkg: error processing package redmine (--remove): subprocess installed post-removal script returned error exit status 123 Errors were encountered while processing: redmine The issue is off-course in the postrm script: instances=$(ls -1 /etc/redmine/*/database.yml | xargs dirname | xargs -n 1 basename) Paul ¹ https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835987 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCAAGBQJXySvBAAoJEJxcmesFvXUKyREIALEis1qP8/+WQ1BtxkbJFAcu I8x4/aZxSXLsrf7kc8CQ1GpXbbK1k8pJ0Ct14NSj/q0HClNaRCPb9ZEBvu6AcvVX PyqelOCFBZFohVcoSAsCvuzo/xnjpB9sWC/lDSHBsdb2KhOZJxQtcECV5aqPGAUk 78z1P6bHjorTz8rORI5bD+HEE7tGJYFhDk5ABZvtOf6H+MnV6uDoshBbkUA+e/X8 Oa6iBAoMCIrB/TqRmf+/8tmPdVy9GZuzr7jIcLyZ1Q4s1gsvIBpG/+ZvHJO1yvdk xeut/otUs56g+ubmmg1BUQq6QUklIJ3b+p4keRsiFWMZaSyLIZzBj7K1ChWFU3A= =+rRM -----END PGP SIGNATURE-----

