find __package* -type f -exec sed -i 's/uninstalled/removed/g' {} \;
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
4ebcdc3ef1
commit
ac976c9f70
4 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@ It dispatches the actual work to the package system dependant types.
|
||||||
REQUIRED PARAMETERS
|
REQUIRED PARAMETERS
|
||||||
-------------------
|
-------------------
|
||||||
state::
|
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
|
OPTIONAL PARAMETERS
|
||||||
|
|
|
@ -46,7 +46,7 @@ case "$state" in
|
||||||
echo $aptget install \"$name\"
|
echo $aptget install \"$name\"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
uninstalled)
|
removed)
|
||||||
# Remove only if existent
|
# Remove only if existent
|
||||||
if [ -n "$is_installed" ]; then
|
if [ -n "$is_installed" ]; then
|
||||||
echo $aptget remove \"$name\"
|
echo $aptget remove \"$name\"
|
||||||
|
|
|
@ -44,7 +44,7 @@ case "$state" in
|
||||||
echo pacman "$pacopts" -S \"$name\"
|
echo pacman "$pacopts" -S \"$name\"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
uninstalled)
|
removed)
|
||||||
if [ "$pkg_version" ]; then
|
if [ "$pkg_version" ]; then
|
||||||
echo pacman "$pacopts" -R \"$name\"
|
echo pacman "$pacopts" -R \"$name\"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -39,7 +39,7 @@ case "$state" in
|
||||||
echo yum $opts install \"$name\"
|
echo yum $opts install \"$name\"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
uninstalled)
|
removed)
|
||||||
if ! grep -q "$not_installed" "$__object/explorer/pkg_version"; then
|
if ! grep -q "$not_installed" "$__object/explorer/pkg_version"; then
|
||||||
echo yum $opts remove \"$name\"
|
echo yum $opts remove \"$name\"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue