Commit eda5b2d7 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm status: make return codes more clear

parent bf73788e
...@@ -35,7 +35,7 @@ epm_status_original() ...@@ -35,7 +35,7 @@ epm_status_original()
case $DISTRNAME in case $DISTRNAME in
ALTLinux|ALTServer) ALTLinux|ALTServer)
epm_status_validate $pkg || return epm_status_validate $pkg || return 1
epm_status_repacked $pkg && return 1 epm_status_repacked $pkg && return 1
# not for all packages # not for all packages
...@@ -43,7 +43,7 @@ epm_status_original() ...@@ -43,7 +43,7 @@ epm_status_original()
local distribution local distribution
distribution="$(epm print field Distribution for "$pkg" 2>/dev/null )" distribution="$(epm print field Distribution for "$pkg" 2>/dev/null )"
echo "$distribution" | grep -q "^ALT" || return echo "$distribution" | grep -q "^ALT" || return 1
# mc in Sisyphus has not a signature # mc in Sisyphus has not a signature
#local sig #local sig
...@@ -52,7 +52,7 @@ epm_status_original() ...@@ -52,7 +52,7 @@ epm_status_original()
# FIXME: how to check if the package is from ALT repo (verified)? # FIXME: how to check if the package is from ALT repo (verified)?
local release="$(epm print release from package "$pkg" 2>/dev/null )" local release="$(epm print release from package "$pkg" 2>/dev/null )"
echo "$release" | grep -q "^alt" || return echo "$release" | grep -q "^alt" || return 1
return 0 return 0
;; ;;
*) *)
...@@ -95,7 +95,7 @@ epm_status_thirdpart() ...@@ -95,7 +95,7 @@ epm_status_thirdpart()
#local packager="$(epm print field Packager for "$1" 2>/dev/null)" #local packager="$(epm print field Packager for "$1" 2>/dev/null)"
#echo "$packager" && grep -q "altlinux" && return 0 #echo "$packager" && grep -q "altlinux" && return 0
#echo "$packager" && grep -q "basealt" && return 0 #echo "$packager" && grep -q "basealt" && return 0
epm_status_validate $pkg || return epm_status_validate $pkg || return 1
local distribution local distribution
distribution="$(epm print field Distribution for "$pkg" 2>/dev/null )" distribution="$(epm print field Distribution for "$pkg" 2>/dev/null )"
......
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