Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
2da0790a
Commit
2da0790a
authored
1 year ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use ercat instead of __local_ercat() short implementation
parent
67e86c34
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
26 deletions
+2
-26
epm-filelist
bin/epm-filelist
+1
-1
epm-search_file
bin/epm-search_file
+1
-1
epm-sh-altlinux-contents-index
bin/epm-sh-altlinux-contents-index
+0
-24
No files found.
bin/epm-filelist
View file @
2da0790a
...
...
@@ -39,7 +39,7 @@ __alt_local_content_filelist()
{
[
-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
}
...
...
This diff is collapsed.
Click to expand it.
bin/epm-search_file
View file @
2da0790a
...
...
@@ -23,7 +23,7 @@
__alt_search_file_output
()
{
# 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
()
...
...
This diff is collapsed.
Click to expand it.
bin/epm-sh-altlinux-contents-index
View file @
2da0790a
...
...
@@ -47,30 +47,6 @@ get_local_alt_mirror_path()
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
rsync_alt_contents_index
()
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment