26aae6b5834e1342d9b95a894a5bb24159b367bf
Author Rarylson Freitas <rarylson@gmail.com> Committer Marc Cornellà <marc.cornella@live.com> Date 2016-12-08 20:49 UTC
Message Fix (plugins debian and ubuntu): `apt-history list` using `zgrep` (#5695)
Changing from `zcat` to `zgrep` because some `zcat` implementations do not work
if the file is not compressed.
Diff 1 diff --git a/plugins/debian/debian.plugin.zsh b/plugins/debian/debian.plugin.zsh
2 index 31a772d604be52e7737410fb3b9aa943ef41d5be..28131ff80deece36b2191badf0ebf5d25c4c9fee 100644
3 --- a/plugins/debian/debian.plugin.zsh
4 +++ b/plugins/debian/debian.plugin.zsh
5 @@ -192,7 +192,7 @@ apt-history () {
6 awk '{print $4"="$5}'
7 ;;
8 list)
9 - zcat $(ls -rt /var/log/dpkg*)
10 + zgrep --no-filename '' $(ls -rt /var/log/dpkg*)
11 ;;
12 *)
13 echo "Parameters:"
14 diff --git a/plugins/ubuntu/ubuntu.plugin.zsh b/plugins/ubuntu/ubuntu.plugin.zsh
15 index ffde284fe3a80522b636f90ecdeb44d8224b56da..030af069389cf233ccd51892d4cd6d62483477c6 100644
16 --- a/plugins/ubuntu/ubuntu.plugin.zsh
17 +++ b/plugins/ubuntu/ubuntu.plugin.zsh
18 @@ -108,7 +108,7 @@ apt-history () {
19 awk '{print $4"="$5}'
20 ;;
21 list)
22 - zcat $(ls -rt /var/log/dpkg*)
23 + zgrep --no-filename '' $(ls -rt /var/log/dpkg*)
24 ;;
25 *)
26 echo "Parameters:"