From 0daf2ad0a6faf4be6817bdc73934bbccd9ae8a22 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 10 Jul 2007 16:20:41 +0200 Subject: [PATCH] /etc/zsh/zshrc: dchange() - restore old behaviour --- debian/changelog | 8 ++++++++ etc/zsh/zshrc | 2 ++ 2 files changed, 10 insertions(+) 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." -- 2.1.4