diff options
author | Ansis Atteka <aatteka@nicira.com> | 2011-11-01 11:08:24 -0700 |
---|---|---|
committer | Ansis Atteka <aatteka@nicira.com> | 2011-11-01 16:33:33 -0700 |
commit | 0f49dd6925beadb7e86fda6646285c068ada7303 (patch) | |
tree | 1801a597634a64446ee3ac4d2d19f86c9e499913 /debian | |
parent | e002c96f0587ee7ac75d56ba89a66ad9d1002c14 (diff) |
packaging: dpkg --purge command fails on Ubuntu 11.04
The problem is that postrm script is unable to remove
contents of /var/log/openvswitch/ directory in case if
it contains any other directories. Steps to reproduce
on Ubuntu 11.04:
1. apt-get install openvswitch-switch
2. dpkg --purge openvswitch-switch
3. observe that purge failed, because of an empty "cores"
directory inside /var/log/openvswitch/
Diffstat (limited to 'debian')
-rwxr-xr-x | debian/openvswitch-switch.postrm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/openvswitch-switch.postrm b/debian/openvswitch-switch.postrm index b785c54d..d9113389 100755 --- a/debian/openvswitch-switch.postrm +++ b/debian/openvswitch-switch.postrm @@ -24,7 +24,7 @@ case "$1" in rm -f /etc/openvswitch/conf.db rm -f /etc/openvswitch/.conf.db.~lock~ rm -f /etc/default/openvswitch-switch - rm -f /var/log/openvswitch/* + rm -f /var/log/openvswitch/* || true ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) |