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
Vladislav
eepm
Commits
4231917d
Commit
4231917d
authored
Mar 26, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-requires: use file -L for binaries
parent
17810719
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
epm-checkpkg
bin/epm-checkpkg
+1
-1
epm-requires
bin/epm-requires
+2
-2
epm-sh-functions
bin/epm-sh-functions
+1
-1
No files found.
bin/epm-checkpkg
View file @
4231917d
...
...
@@ -44,7 +44,7 @@ check_pkg_integrity()
docmd apkg verify
$PKG
;;
exe
)
file
$PKG
|
grep
-q
"executable for MS Windows"
file
-L
$PKG
|
grep
-q
"executable for MS Windows"
;;
msi
)
# TODO: add to patool via cabextract
...
...
bin/epm-requires
View file @
4231917d
...
...
@@ -64,9 +64,9 @@ __epm_elf_requires()
fi
for
i
in
$*
;
do
if
file
"
$i
"
|
grep
-q
" ELF 32-bit "
;
then
if
file
-L
"
$i
"
|
grep
-q
" ELF 32-bit "
;
then
__epm_elf32_requires
"
$i
"
elif
file
"
$i
"
|
grep
-q
" ELF 64-bit "
;
then
elif
file
-L
"
$i
"
|
grep
-q
" ELF 64-bit "
;
then
__epm_elf64_requires
"
$i
"
else
warning
"Unknown ELF binary"
...
...
bin/epm-sh-functions
View file @
4231917d
...
...
@@ -795,7 +795,7 @@ get_package_type()
return
;;
*
)
if
[
-r
"
$1
"
]
&&
file
"
$1
"
|
grep
-q
" ELF "
;
then
if
[
-r
"
$1
"
]
&&
file
-L
"
$1
"
|
grep
-q
" ELF "
;
then
echo
"ELF"
return
fi
...
...
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