/etc/zsh/zshrc: dchange() - restore old behaviour 0.3.16
authorMichael Prokop <mika@grml.org>
Tue, 10 Jul 2007 14:20:41 +0000 (16:20 +0200)
committerMichael Prokop <mika@grml.org>
Tue, 10 Jul 2007 14:20:41 +0000 (16:20 +0200)
debian/changelog
etc/zsh/zshrc

index 82d7e5c..14f9cdd 100644 (file)
@@ -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 <mika@grml.org>  Tue, 10 Jul 2007 16:19:54 +0200
+
 grml-etc-core (0.3.15) unstable; urgency=low
 
   * /etc/zsh/zshrc:
index ce78062..53e5177 100644 (file)
@@ -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."