Commit e16ab5a3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-packages: print version when apt-cyg is using

parent 134796e7
...@@ -34,6 +34,13 @@ case $PMTYPE in ...@@ -34,6 +34,13 @@ case $PMTYPE in
esac esac
} }
__aptcyg_print_full()
{
#showcmd apt-cyg show
local VERSION=$(apt-cyg show "$1" | grep -m1 "^version: " | sed -e "s|^version: ||g")
echo "$1-$VERSION"
}
# TODO: we have a problem with error status here # TODO: we have a problem with error status here
epm_packages() epm_packages()
{ {
...@@ -124,7 +131,14 @@ case $PMTYPE in ...@@ -124,7 +131,14 @@ case $PMTYPE in
return return
;; ;;
aptcyg) aptcyg)
CMD="apt-cyg list" CMD="apt-cyg list $pkg_filenames"
if [ -z "$short" ] ; then
showcmd $CMD
for i in $($CMD) ; do
__aptcyg_print_full $i
done
return
fi
;; ;;
*) *)
fatal "Have no suitable query command for $PMTYPE" fatal "Have no suitable query command for $PMTYPE"
......
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