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
2d4aaad8
Commit
2d4aaad8
authored
Jan 30, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm restore: add using ldd-requires for binary files
parent
683daa70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
epm-restore
bin/epm-restore
+10
-0
No files found.
bin/epm-restore
View file @
2d4aaad8
...
...
@@ -70,6 +70,16 @@ __epm_restore_by()
{
local
req_file
=
"
$1
"
[
-s
"
$req_file
"
]
||
return
if
file
$req_file
|
grep
-q
"ELF [3264]*-bit LSB executable"
;
then
assure_exists ldd-requires
showcmd ldd-requires
$req_file
local
TOINSTALL
=
"
$(
a
=
ldd-requires
$req_file
|
grep
"^apt-get install"
|
sed
-e
"s|^apt-get install ||"
)
"
[
-n
"
$TOINSTALL
"
]
||
{
info
"There are no missed packages is found for
$req_file
binary."
;
return
;
}
epm
install
$TOINSTALL
return
fi
case
$(
basename
$req_file
)
in
requirements.txt
)
[
-s
"
$req_file
"
]
&&
__epm_restore_pip
"
$req_file
"
...
...
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