From fa4cc0616277b847c62d698941e1ad83f905ae05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Fri, 18 Nov 2016 16:06:57 +0100 Subject: subr/check_updates.subr: fix zsh. --- vars/check_updates.vars | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vars/check_updates.vars b/vars/check_updates.vars index 782889b5..29a1b73b 100644 --- a/vars/check_updates.vars +++ b/vars/check_updates.vars @@ -212,4 +212,15 @@ pkg_xcb_proto_check_updates() { esac; }; +pkg_zsh_check_updates() { + case "${1}" in + get_fnames) + cu_url_index="${cu_url%/*}/"; + cu_fnames="$(wget ${WGET_ARGS} -qO- "${cu_url_index}" |\ + sed -n '/[hH][rR][eE][fF]="[^"]\+"/s/^.*[hH][rR][eE][fF]="\([^"]\+\)".*$/\1/p' |\ + grep -v -- "-doc")"; + ;; + esac; +}; + # vim:filetype=sh -- cgit v1.2.3