1653 |
then |
then |
1654 |
#cuts ARCH and PBUILD |
#cuts ARCH and PBUILD |
1655 |
#ARCH comes from ${MAGERC} |
#ARCH comes from ${MAGERC} |
1656 |
MAGENAME=$(echo ${MAGENAME} |sed -e "s:-${ARCH}-r*.::g") |
MAGENAME=$(echo ${MAGENAME} |sed -e "s:-${ARCH}$(print_distrotag)-r*.::g") |
1657 |
|
|
1658 |
#cuts version number |
#cuts version number |
1659 |
MAGENAME=$(basename ${MAGENAME%-*} .mage) |
MAGENAME=$(basename ${MAGENAME%-*} .mage) |
2999 |
local state |
local state |
3000 |
local descriptiom |
local descriptiom |
3001 |
local homepage |
local homepage |
3002 |
|
local license |
3003 |
local i |
local i |
3004 |
local all_installed |
local all_installed |
3005 |
local ipver |
local ipver |
3036 |
state="$(get_value_from_magefile STATE ${magefile})" |
state="$(get_value_from_magefile STATE ${magefile})" |
3037 |
description="$(get_value_from_magefile DESCRIPTION ${magefile})" |
description="$(get_value_from_magefile DESCRIPTION ${magefile})" |
3038 |
homepage="$(get_value_from_magefile HOMEPAGE ${magefile})" |
homepage="$(get_value_from_magefile HOMEPAGE ${magefile})" |
3039 |
|
license="$(get_value_from_magefile LICENSE ${magefile})" |
3040 |
|
|
3041 |
# all installed |
# all installed |
3042 |
for i in $(get_uninstall_candidates --pname ${pname} --pcat ${pcat}) |
for i in $(get_uninstall_candidates --pname ${pname} --pcat ${pcat}) |
3043 |
do |
do |
3044 |
ipver="$(magename2pver ${i})" |
ipver="$(magename2pver ${i})" |
3045 |
ipbuild="$(magename2pbuild ${i})" |
ipbuild="$(magename2pbuild ${i})" |
3046 |
|
|
3047 |
if [[ -z ${all_installed} ]] |
if [[ -z ${all_installed} ]] |
3048 |
then |
then |
3049 |
all_installed="${ipver}-${ipbuild}" |
all_installed="${ipver}-${ipbuild}" |
3052 |
fi |
fi |
3053 |
done |
done |
3054 |
[[ -z ${all_installed} ]] && all_installed="none" |
[[ -z ${all_installed} ]] && all_installed="none" |
3055 |
|
|
3056 |
case ${state} in |
case ${state} in |
3057 |
stable) state=${COLGREEN}"[s] ";; |
stable) state=${COLGREEN}"[s] ";; |
3058 |
testing) state=${COLYELLOW}"[t] ";; |
testing) state=${COLYELLOW}"[t] ";; |
3097 |
echo " Installed versions: ${all_installed}" |
echo " Installed versions: ${all_installed}" |
3098 |
echo " Description: ${description}" |
echo " Description: ${description}" |
3099 |
echo " Homepage: ${homepage}" |
echo " Homepage: ${homepage}" |
3100 |
|
if [[ ! -z ${license} ]] |
3101 |
|
then |
3102 |
|
echo " License: ${license}" |
3103 |
|
fi |
3104 |
echo " Depends: ${deps}" |
echo " Depends: ${deps}" |
3105 |
echo " SDepends: ${sdeps}" |
echo " SDepends: ${sdeps}" |
3106 |
echo |
echo |
3297 |
libtool|!libtool) retval=0 ;; |
libtool|!libtool) retval=0 ;; |
3298 |
linuxsymlink|!linuxsymlink) retval=0 ;; |
linuxsymlink|!linuxsymlink) retval=0 ;; |
3299 |
pkgbuild|!pkgbuild) retval=0 ;; |
pkgbuild|!pkgbuild) retval=0 ;; |
3300 |
|
pkgdistrotag|!pkgdistrotag) retval=0 ;; |
3301 |
purge|!purge) retval=0 ;; |
purge|!purge) retval=0 ;; |
3302 |
qalint|!qalint) retval=0 ;; |
qalint|!qalint) retval=0 ;; |
3303 |
regentree|!regentree) retval=0 ;; |
regentree|!regentree) retval=0 ;; |
3336 |
|
|
3337 |
if ! known_mage_feature "${feature}" |
if ! known_mage_feature "${feature}" |
3338 |
then |
then |
3339 |
[[ ${FVERBOSE} = off ]] || echo "unknown feature ${feature}, ignoring it" |
[[ ${FVERBOSE} = off ]] || echo -e "${COLRED}Unknown feature '${feature}', ignoring it${COLDEFAULT}" |
3340 |
return 3 |
return 3 |
3341 |
fi |
fi |
3342 |
|
|
3389 |
fi |
fi |
3390 |
done |
done |
3391 |
else |
else |
3392 |
|
[[ ${FVERBOSE} = off ]] || echo -e "${COLRED}Unknown feature '${feature}', ignoring it${COLDEFAULT}" |
3393 |
retval=3 |
retval=3 |
3394 |
fi |
fi |
3395 |
|
|