From ac976c9f703ad319ff246ae0e2778a3f668ed2db Mon Sep 17 00:00:00 2001
From: Nico Schottelius <nico@kr.ethz.ch>
Date: Tue, 5 Apr 2011 16:25:27 +0200
Subject: [PATCH] find __package* -type f -exec  sed -i
 's/uninstalled/removed/g' {} \;

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
---
 conf/type/__package/man.text              | 2 +-
 conf/type/__package_apt/gencode-remote    | 2 +-
 conf/type/__package_pacman/gencode-remote | 2 +-
 conf/type/__package_yum/gencode-remote    | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/conf/type/__package/man.text b/conf/type/__package/man.text
index eeeceba0..46af7b3d 100644
--- a/conf/type/__package/man.text
+++ b/conf/type/__package/man.text
@@ -17,7 +17,7 @@ It dispatches the actual work to the package system dependant types.
 REQUIRED PARAMETERS
 -------------------
 state::
-   The state the package should be in, either "installed" or "uninstalled"
+   The state the package should be in, either "installed" or "removed"
 
 
 OPTIONAL PARAMETERS
diff --git a/conf/type/__package_apt/gencode-remote b/conf/type/__package_apt/gencode-remote
index e38653e9..aac9beb1 100755
--- a/conf/type/__package_apt/gencode-remote
+++ b/conf/type/__package_apt/gencode-remote
@@ -46,7 +46,7 @@ case "$state" in
          echo $aptget install \"$name\"
       fi
    ;;
-   uninstalled)
+   removed)
       # Remove only if existent
       if [ -n "$is_installed" ]; then
          echo $aptget remove \"$name\"
diff --git a/conf/type/__package_pacman/gencode-remote b/conf/type/__package_pacman/gencode-remote
index 536b7708..b31d097a 100755
--- a/conf/type/__package_pacman/gencode-remote
+++ b/conf/type/__package_pacman/gencode-remote
@@ -44,7 +44,7 @@ case "$state" in
          echo pacman "$pacopts" -S \"$name\"
       fi
    ;;
-   uninstalled)
+   removed)
       if [ "$pkg_version" ]; then
          echo pacman "$pacopts" -R \"$name\"
       fi
diff --git a/conf/type/__package_yum/gencode-remote b/conf/type/__package_yum/gencode-remote
index 033298b1..215a1ae5 100755
--- a/conf/type/__package_yum/gencode-remote
+++ b/conf/type/__package_yum/gencode-remote
@@ -39,7 +39,7 @@ case "$state" in
          echo yum $opts install \"$name\"
       fi
    ;;
-   uninstalled)
+   removed)
       if ! grep -q "$not_installed" "$__object/explorer/pkg_version"; then
          echo yum $opts remove \"$name\"
       fi