Commit c7248721 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-changelog: add support for noninstalled packages on ALT

parent 0cc2467e
...@@ -19,7 +19,14 @@ ...@@ -19,7 +19,14 @@
load_helper epm-query load_helper epm-query
# TODO: use __epm_changelog_apt()
{
local i
for i in $@ ; do
docmd apt-cache show $i | grep -A 1000 "^Changelog:"
done
}
__epm_changelog_files() __epm_changelog_files()
{ {
[ -z "$*" ] && return [ -z "$*" ] && return
...@@ -29,14 +36,13 @@ __epm_changelog_files() ...@@ -29,14 +36,13 @@ __epm_changelog_files()
rpm) rpm)
docmd_foreach "rpm -p --changelog" $@ | less docmd_foreach "rpm -p --changelog" $@ | less
;; ;;
# apt-dpkg) # deb)
# #
# ;; # ;;
*) *)
fatal "Have no suitable command for $1" fatal "Have no suitable command for $1"
;; ;;
esac esac
} }
__epm_changelog_local_names() __epm_changelog_local_names()
...@@ -68,9 +74,9 @@ __epm_changelog_unlocal_names() ...@@ -68,9 +74,9 @@ __epm_changelog_unlocal_names()
[ -z "$*" ] && return [ -z "$*" ] && return
case $PMTYPE in case $PMTYPE in
#apt-rpm) apt-rpm)
# docmd_foreach "rpm --changelog" $@ | less __epm_changelog_apt $@ | less
# ;; ;;
#apt-dpkg) #apt-dpkg)
# # FIXME: only first pkg # # FIXME: only first pkg
# docmd zcat /usr/share/doc/$1/changelog.Debian.gz | less # docmd zcat /usr/share/doc/$1/changelog.Debian.gz | less
......
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