From: Michael Prokop Date: Tue, 10 Jul 2007 14:20:41 +0000 (+0200) Subject: /etc/zsh/zshrc: dchange() - restore old behaviour X-Git-Tag: 0.3.16 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=refs%2Ftags%2F0.3.16;p=grml-etc-core.git /etc/zsh/zshrc: dchange() - restore old behaviour --- diff --git a/debian/changelog b/debian/changelog index 82d7e5c..14f9cdd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +grml-etc-core (0.3.16) unstable; urgency=low + + * /etc/zsh/zshrc: dchange() - restore old behaviour with + fallback to /usr/share/doc/$PACKAGE/changelog.gz before + trying to download the changelog via aptitude + + -- Michael Prokop Tue, 10 Jul 2007 16:19:54 +0200 + grml-etc-core (0.3.15) unstable; urgency=low * /etc/zsh/zshrc: diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index ce78062..53e5177 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -1256,6 +1256,8 @@ If you want to use xinit anyway please call \"/usr/bin/xinit\"." dchange() { if [ -r /usr/share/doc/${1}/changelog.Debian.gz ] ; then most /usr/share/doc/${1}/changelog.Debian.gz + elif [ -r /usr/share/doc/${1}/changelog.gz ] ; then + most /usr/share/doc/${1}/changelog.gz else if type -p aptitude &>/dev/null ; then echo "No changelog for package $1 found, using aptitude to retrieve it."