ups, was a variable collision
This commit is contained in:
parent
512b410012
commit
59de2afdaa
1 changed files with 4 additions and 4 deletions
|
@ -60,9 +60,9 @@ elif grep -q "$repo_id" "$__object/explorer/all_repo_ids"; then
|
||||||
act_id="$repo_id"
|
act_id="$repo_id"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
state="disabled"
|
repostate="disabled"
|
||||||
if grep -q "$act_id" "$__object/explorer/enabled_repo_ids"; then
|
if grep -q "$act_id" "$__object/explorer/enabled_repo_ids"; then
|
||||||
state="enabled"
|
repostate="enabled"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -82,12 +82,12 @@ case "$state" in
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
enabled)
|
enabled)
|
||||||
if [ ! -z "$act_id" ] && [ "$state" = "disabled" ]; then
|
if [ ! -z "$act_id" ] && [ "$repostate" = "disabled" ]; then
|
||||||
echo zypper $zypper_def_opts modifyrepo -e "$act_id"
|
echo zypper $zypper_def_opts modifyrepo -e "$act_id"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
disabled)
|
disabled)
|
||||||
if [ ! -z "$act_id" ] && [ "$state" = "enabled" ]; then
|
if [ ! -z "$act_id" ] && [ "$repostate" = "enabled" ]; then
|
||||||
echo zypper $zypper_def_opts modifyrepo -d "$act_id"
|
echo zypper $zypper_def_opts modifyrepo -d "$act_id"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue