Commit dcba0d3d authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

epm status: add Ubuntu support (eterbug #17885)

parent 523ab596
...@@ -118,7 +118,7 @@ epm_status_supported() { ...@@ -118,7 +118,7 @@ epm_status_supported() {
local distro local distro
distro=$(epm print info -s) distro=$(epm print info -s)
case "$distro" in case "$distro" in
alt|redos|rosa*|mos|fedora|debian) alt|redos|rosa*|mos|fedora|debian|ubuntu)
return 0 return 0
;; ;;
*) *)
...@@ -192,6 +192,13 @@ epm_status_original() ...@@ -192,6 +192,13 @@ epm_status_original()
echo "$release" | grep -qi "uncom" || return 1 echo "$release" | grep -qi "uncom" || return 1
return 0 return 0
;; ;;
Ubuntu)
epm_status_validate $pkg || return 1
epm_status_repacked $pkg && return 1
echo "$release" | grep -qi "ubuntu" || return 1
return 0
;;
*) *)
fatal 'Unsupported $DISTRNAME' fatal 'Unsupported $DISTRNAME'
;; ;;
...@@ -215,7 +222,7 @@ epm_status_repacked() ...@@ -215,7 +222,7 @@ epm_status_repacked()
[ "$packager" = "EPM <support@etersoft.ru>" ] && return 0 [ "$packager" = "EPM <support@etersoft.ru>" ] && return 0
[ "$packager" = "EPM <support@eepm.ru>" ] && return 0 [ "$packager" = "EPM <support@eepm.ru>" ] && return 0
;; ;;
debian) debian|ubuntu)
epm_status_validate $pkg || return epm_status_validate $pkg || return
# In packages repackaged via alien maintainer equal to $USER, it is better to use the package description # In packages repackaged via alien maintainer equal to $USER, it is better to use the package description
...@@ -274,7 +281,7 @@ epm_status_thirdparty() ...@@ -274,7 +281,7 @@ epm_status_thirdparty()
echo "$distribution" | grep -q "^EEPM" && return 1 echo "$distribution" | grep -q "^EEPM" && return 1
return 0 return 0
;; ;;
debian) debian|ubuntu)
epm_status_validate $pkg || return 1 epm_status_validate $pkg || return 1
# On UncomOS maintainer Ubuntu and Debian * team # On UncomOS maintainer Ubuntu and Debian * team
......
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