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
a9eeaa1d
Commit
a9eeaa1d
authored
Mar 11, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm requires: check every file separately
parent
2f6ce203
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
epm-requires
bin/epm-requires
+10
-8
epm-sh-functions
bin/epm-sh-functions
+1
-1
No files found.
bin/epm-requires
View file @
a9eeaa1d
...
...
@@ -79,29 +79,31 @@ epm_requires_files()
local
pkg_files
=
"
$*
"
[
-n
"
$pkg_files
"
]
||
return
# TODO: handle separately
local
PKGTYPE
=
"
$(
get_package_type
$pkg_files
)
"
local
fl
for
fl
in
$pkg_files
;
do
local
PKGTYPE
=
"
$(
get_package_type
$fl
)
"
case
"
$PKGTYPE
"
in
rpm
)
assure_exists rpm
>
/dev/null
__epm_alt_rpm_requires
-p
$pkg_files
__epm_alt_rpm_requires
-p
$fl
;;
deb
)
assure_exists dpkg
>
/dev/null
a
=
''
docmd dpkg
-I
$pkg_files
|
grep
"^ *Depends:"
|
sed
"s|^ *Depends:||g"
a
=
''
docmd dpkg
-I
$fl
|
grep
"^ *Depends:"
|
sed
"s|^ *Depends:||g"
;;
eopkg
)
showcmd eopkg info
$pkg_files
LC_ALL
=
C eopkg info
$pkg_files
|
grep
"^Dependencies"
|
head
-n1
|
sed
-e
"s|Dependencies[[:space:]]*: ||"
showcmd eopkg info
$fl
LC_ALL
=
C eopkg info
$fl
|
grep
"^Dependencies"
|
head
-n1
|
sed
-e
"s|Dependencies[[:space:]]*: ||"
;;
ELF
)
__epm_elf_requires
$pkg_files
__epm_elf_requires
$fl
;;
*
)
fatal
"Have no suitable command for
$PKGTYPE
"
warning
"Have no suitable command for handle file
$fl
with .
$PKGTYPE
"
;;
esac
done
}
epm_requires_names
()
...
...
bin/epm-sh-functions
View file @
a9eeaa1d
...
...
@@ -800,7 +800,7 @@ get_package_type()
return
fi
# print extension by default
echo
"
$1
"
|
sed
-e
's|.*\.||'
basename
"
$1
"
|
sed
-e
's|.*\.||'
return
1
;;
esac
...
...
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