|
|
|
@ -74,19 +74,19 @@ case "$state" in |
|
|
|
|
fi |
|
|
|
|
;; |
|
|
|
|
absent) |
|
|
|
|
if [ ! -z "$act_id" ]; then |
|
|
|
|
if [ -n "$act_id" ]; then |
|
|
|
|
# Repo present (act_id not ""), so we ned to delete it |
|
|
|
|
echo "zypper $zypper_def_opts removerepo $act_id" |
|
|
|
|
fi |
|
|
|
|
;; |
|
|
|
|
enabled) |
|
|
|
|
if [ ! -z "$act_id" ] && [ "$repostate" = "disabled" ]; then |
|
|
|
|
if [ -n "$act_id" ] && [ "$repostate" = "disabled" ]; then |
|
|
|
|
# Repo present (act_id not "") and repostate not enabled, so a enable call is needed |
|
|
|
|
echo "zypper $zypper_def_opts modifyrepo -e $act_id" |
|
|
|
|
fi |
|
|
|
|
;; |
|
|
|
|
disabled) |
|
|
|
|
if [ ! -z "$act_id" ] && [ "$repostate" = "enabled" ]; then |
|
|
|
|
if [ -n "$act_id" ] && [ "$repostate" = "enabled" ]; then |
|
|
|
|
# Repo present (act_id not "") and repostate enabled, so a disable call is needed |
|
|
|
|
echo "zypper $zypper_def_opts modifyrepo -d $act_id" |
|
|
|
|
fi |
|
|
|
|