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
8acb631b
Commit
8acb631b
authored
Mar 30, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erc: implement list_formats without patool
parent
1f7203ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
erc-sh-archive
bin/erc-sh-archive
+6
-1
tools_erc
bin/tools_erc
+3
-0
No files found.
bin/erc-sh-archive
View file @
8acb631b
...
...
@@ -63,7 +63,12 @@ EOF
list_formats
()
{
list_subformats
a
=
''
patool formats |
grep
".* files:"
|
sed
"s/ .*//g"
if
have_patool
;
then
a
=
''
patool formats |
grep
".* files:"
|
sed
"s/ .*//g"
else
echo
"tar zip 7z tar.7z"
list_subformats
fi
# TODO: do not use patool formats in such case?
# See ArchiveCompressions in patool
list_extraformats
...
...
bin/tools_erc
View file @
8acb631b
...
...
@@ -78,6 +78,9 @@ extract_archive()
local type
=
"
$(
get_archive_type
"
$arc
"
)
"
case
"
$type
"
in
tar.
*
)
docmd
$HAVE_7Z
x
-so
$arc
| docmd
$HAVE_7Z
x
-si
-ttar
;;
*
)
docmd
$HAVE_7Z
x
$arc
"
$@
"
#fatal "Not yet supported extracting of $type archives"
...
...
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