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
99330ad6
Commit
99330ad6
authored
Apr 15, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm: __epm_check_vendor: refactoring
parent
6e34f082
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
epm-sh-install
bin/epm-sh-install
+18
-7
No files found.
bin/epm-sh-install
View file @
99330ad6
...
...
@@ -105,6 +105,16 @@ __epm_vendor_ok_scripts()
return
$res
}
__epm_get_pkgvendor
()
{
local
pkg
=
"
$1
"
# skip checking if the package is unaccessible
local
rpmversion
=
"
$(
epm print field Version
for
"
$pkg
"
2>/dev/null
)
"
[
-n
"
$rpmversion
"
]
||
return
epm print field Vendor
for
"
$pkg
"
2>/dev/null
}
# Args: package names. Set noscripts for outside packages.
__epm_check_vendor
()
{
...
...
@@ -112,17 +122,18 @@ __epm_check_vendor()
[
-n
"
$scripts$noscripts
"
]
&&
return
# only ALT
[
"
$BASEDISTRNAME
"
=
"alt"
]
||
return
[
"
$BASEDISTRNAME
"
=
"alt"
]
||
return
0
local
i
for
i
in
$*
;
do
local
vendor rpmversion
# skip checking if the package is unaccessible
rpmversion
=
"
$(
epm print field Version
for
"
$i
"
2>/dev/null
)
"
[
-n
"
$rpmversion
"
]
||
continue
local
vendor
vendor
=
"
$(
__epm_get_pkgvendor
"
$i
"
)
"
vendor
=
"
$(
epm print field Vendor
for
"
$i
"
2>/dev/null
)
"
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."
noscripts
=
"--noscripts"
continue
fi
# TODO: check GPG
# check separately to be quiet
...
...
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