Commit 2da0790a authored by Vitaly Lipatov's avatar Vitaly Lipatov

use ercat instead of __local_ercat() short implementation

parent 67e86c34
...@@ -39,7 +39,7 @@ __alt_local_content_filelist() ...@@ -39,7 +39,7 @@ __alt_local_content_filelist()
{ {
[ -n "$USETTY" ] && info "Search in $CI for $1..." [ -n "$USETTY" ] && info "Search in $CI for $1..."
__local_ercat $CI | grep -h -P -- ".*\t$1$" | sed -e "s|\(.*\)\t\(.*\)|\1|g" ercat $CI | grep -h -P -- ".*\t$1$" | sed -e "s|\(.*\)\t\(.*\)|\1|g"
} | $OUTCMD } | $OUTCMD
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
__alt_search_file_output() __alt_search_file_output()
{ {
# grep only on left part (filename), then revert order and grep with color # grep only on left part (filename), then revert order and grep with color
__local_ercat $1 | grep -h -- ".*$2.*[[:space:]]" | sed -e "s|\(.*\)\t\(.*\)|\2: \1|g" $3 ercat $1 | grep -h -- ".*$2.*[[:space:]]" | sed -e "s|\(.*\)\t\(.*\)|\2: \1|g" $3
} }
__alt_local_content_search() __alt_local_content_search()
......
...@@ -47,30 +47,6 @@ get_local_alt_mirror_path() ...@@ -47,30 +47,6 @@ get_local_alt_mirror_path()
ALT_CONTENTS_INDEX_LIST=$TMPDIR/eepm/contents_index_list ALT_CONTENTS_INDEX_LIST=$TMPDIR/eepm/contents_index_list
__local_ercat()
{
local i
for i in "$@" ; do
case "$i" in
*.xz)
a='' xzcat $i
;;
*.lz4)
a='' lz4cat $i
;;
*.gz)
a='' zcat $i
;;
*.failed)
# just ignore
;;
*)
cat $i
;;
esac
done
}
# URL TARGETDIR OPTIONS # URL TARGETDIR OPTIONS
rsync_alt_contents_index() rsync_alt_contents_index()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment