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
5b621591
Commit
5b621591
authored
Apr 21, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-sh-functions: add __epm_check_if_package_from_repo()
parent
ffa803e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
3 deletions
+25
-3
epm-sh-functions
bin/epm-sh-functions
+22
-0
epm-sh-install
bin/epm-sh-install
+3
-3
No files found.
bin/epm-sh-functions
View file @
5b621591
...
...
@@ -749,6 +749,28 @@ __epm_remove_tmp_files()
}
__epm_check_if_package_from_repo
()
{
local
pkg
=
"
$1
"
# only ALT
[
"
$BASEDISTRNAME
"
=
"alt"
]
||
return
0
local
vendor
# TODO: check only for rpm
#vendor="$(epm print field Vendor for "$pkg" 2>/dev/null))"
#[ "$vendor" = "ALT Linux Team" ] || return
local
distribution
=
"
$(
epm print field Distribution
for
"
$pkg
"
2>/dev/null
)
)"
echo
"
$distribution
"
|
grep
-q
"^ALT"
||
return
# FIXME: how to check if the package is from ALT repo (verified)?
local
release
=
"
$(
epm print release from package
"
$pkg
"
2>/dev/null
)
"
echo
"
$release
"
|
grep
-q
"^alt"
||
return
return
0
}
has_space
()
{
estrlist
--
has_space
"
$@
"
...
...
bin/epm-sh-install
View file @
5b621591
...
...
@@ -105,7 +105,7 @@ __epm_vendor_ok_scripts()
return
$res
}
__epm_get_pkgvendor
()
__epm_get_
rpm_
pkgvendor
()
{
local
pkg
=
"
$1
"
...
...
@@ -125,7 +125,7 @@ __epm_print_warning_for_nonalt_packages()
for
i
in
$*
;
do
local
vendor
# TODO: check only for rpm
vendor
=
"
$(
__epm_get_pkgvendor
"
$i
"
)
"
vendor
=
"
$(
__epm_get_
rpm_
pkgvendor
"
$i
"
)
"
local
packager
=
"
$(
epm print field Packager
for
"
$i
"
2>/dev/null
)
"
...
...
@@ -148,7 +148,7 @@ __epm_check_vendor()
local
i
for
i
in
$*
;
do
local
vendor
vendor
=
"
$(
__epm_get_pkgvendor
"
$i
"
)
"
vendor
=
"
$(
__epm_get_
rpm_
pkgvendor
"
$i
"
)
"
if
[
-z
"
$vendor
"
]
;
then
warning
"Can't get info about vendor for
$i
package. Scripts are DISABLED for package
$i
. Use --scripts if you need run scripts from such packages."
...
...
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