Commit 61f4bbce authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

epm status: Add Rosa Fresh support (eterbug #17411)

parent a9e6d1d6
...@@ -157,6 +157,13 @@ epm_status_original() ...@@ -157,6 +157,13 @@ epm_status_original()
echo "$release" | grep -q "el7" || return 1 echo "$release" | grep -q "el7" || return 1
return 0 return 0
;; ;;
ROSAFresh)
epm_status_validate $pkg || return 1
epm_status_repacked $pkg && return 1
echo "$distribution" | grep -q "ROSA" || return
return 0
;;
*) *)
fatal 'Unsupported $DISTRNAME' fatal 'Unsupported $DISTRNAME'
;; ;;
...@@ -171,7 +178,7 @@ epm_status_repacked() ...@@ -171,7 +178,7 @@ epm_status_repacked()
#is_installed $pkg || fatal "FIXME: implemented for installed packages as for now" #is_installed $pkg || fatal "FIXME: implemented for installed packages as for now"
case $BASEDISTRNAME in case $BASEDISTRNAME in
alt|redos) alt|redos|rosafresh)
epm_status_validate $pkg || return epm_status_validate $pkg || return
local packager="$(epm print field Packager for "$1" 2>/dev/null)" local packager="$(epm print field Packager for "$1" 2>/dev/null)"
[ "$packager" = "EPM <support@etersoft.ru>" ] && return 0 [ "$packager" = "EPM <support@etersoft.ru>" ] && return 0
...@@ -212,6 +219,13 @@ epm_status_thirdparty() ...@@ -212,6 +219,13 @@ epm_status_thirdparty()
echo "$distribution" | grep -q "^EEPM" && return 1 echo "$distribution" | grep -q "^EEPM" && return 1
return 0 return 0
;; ;;
rosafresh)
epm_status_validate $pkg || return 1
echo "$distribution" | grep -q "^ROSA" && return 1
echo "$distribution" | grep -q "^EEPM" && return 1
return 0
;;
*) *)
fatal "Unsupported $BASEDISTRNAME" fatal "Unsupported $BASEDISTRNAME"
;; ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment