From e9648276a6396a630d0eca812e36fc82ec4b2a0c Mon Sep 17 00:00:00 2001 From: Sahid Orentino Ferdjaoui Date: Sun, 23 Feb 2014 18:55:51 +0100 Subject: [PATCH] Removes the dependence with aptitude Removes the dependence with aptitude by replacing the call of: aptitude purge -y ~npackage by apt_get purge -y package* Change-Id: I08875ffad9dc6293047827666f02453a355b16ea Closes-Bug: 1281410 --- lib/databases/mysql | 2 +- lib/databases/postgresql | 2 +- lib/rpc_backend | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/databases/mysql b/lib/databases/mysql index 476b4b91b7..3c002f7c43 100644 --- a/lib/databases/mysql +++ b/lib/databases/mysql @@ -21,7 +21,7 @@ function cleanup_database_mysql { if is_ubuntu; then # Get ruthless with mysql stop_service $MYSQL - sudo aptitude purge -y ~nmysql-server + apt_get purge -y mysql* sudo rm -rf /var/lib/mysql return elif is_fedora; then diff --git a/lib/databases/postgresql b/lib/databases/postgresql index c459feb9e0..96a5947a60 100644 --- a/lib/databases/postgresql +++ b/lib/databases/postgresql @@ -21,7 +21,7 @@ function cleanup_database_postgresql { stop_service postgresql if is_ubuntu; then # Get ruthless with mysql - sudo aptitude purge -y ~npostgresql + apt_get purge -y postgresql* return elif is_fedora; then uninstall_package postgresql-server diff --git a/lib/rpc_backend b/lib/rpc_backend index 3651bc0d20..34f576f5b8 100644 --- a/lib/rpc_backend +++ b/lib/rpc_backend @@ -67,7 +67,7 @@ function cleanup_rpc_backend { sudo killall epmd || sudo killall -9 epmd if is_ubuntu; then # And the Erlang runtime too - sudo aptitude purge -y ~nerlang + apt_get purge -y erlang* fi elif is_service_enabled qpid; then if is_fedora; then