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
001c5d7a
Commit
001c5d7a
authored
Jun 28, 2024
by
Boris Yumankulov
Committed by
Vitaly Lipatov
Jul 19, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm status: Add RedOS support (eterbug #17411)
parent
8d2bad7d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
epm-status
bin/epm-status
+20
-6
No files found.
bin/epm-status
View file @
001c5d7a
...
...
@@ -127,6 +127,8 @@ epm_status_original()
local
pkg
=
"
$1
"
#is_installed $pkg || fatal "FIXME: implemented for installed packages as for now"
local
distribution
=
"
$(
epm print field Distribution
for
"
$pkg
"
2>/dev/null
)
"
local
release
=
"
$(
epm print release from package
"
$pkg
"
2>/dev/null
)
"
case
$DISTRNAME
in
ALTLinux
)
...
...
@@ -136,8 +138,6 @@ epm_status_original()
# not for all packages
#[ "$(epm print field Vendor for package $pkg)" = "ALT Linux Team" ] || return
local
distribution
distribution
=
"
$(
epm print field Distribution
for
"
$pkg
"
2>/dev/null
)
"
echo
"
$distribution
"
|
grep
-q
"^ALT"
||
return
1
# mc in Sisyphus has not a signature
...
...
@@ -146,10 +146,17 @@ epm_status_original()
#[ "$sig" = "(none)" ] && return 1
# 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
1
return
0
;;
RedOS
)
epm_status_validate
$pkg
||
return
1
epm_status_repacked
$pkg
&&
return
1
echo
"
$distribution
"
|
grep
-q
"RED SOFT"
||
return
echo
"
$release
"
|
grep
-q
"el7"
||
return
1
return
0
;;
*
)
fatal
'Unsupported $DISTRNAME'
;;
...
...
@@ -164,7 +171,7 @@ epm_status_repacked()
#is_installed $pkg || fatal "FIXME: implemented for installed packages as for now"
case
$BASEDISTRNAME
in
alt
)
alt
|redos
)
epm_status_validate
$pkg
||
return
local
packager
=
"
$(
epm print field Packager
for
"
$1
"
2>/dev/null
)
"
[
"
$packager
"
=
"EPM <support@etersoft.ru>"
]
&&
return
0
...
...
@@ -181,8 +188,10 @@ epm_status_repacked()
epm_status_thirdparty
()
{
local
pkg
=
"
$1
"
local
distribution
#is_installed $pkg || fatal "FIXME: implemented for installed packages as for now"
distribution
=
"
$(
epm print field Distribution
for
"
$pkg
"
2>/dev/null
)
"
case
$BASEDISTRNAME
in
alt
)
...
...
@@ -192,12 +201,17 @@ epm_status_thirdparty()
#echo "$packager" && grep -q "basealt" && return 0
epm_status_validate
$pkg
||
return
1
local
distribution
distribution
=
"
$(
epm print field Distribution
for
"
$pkg
"
2>/dev/null
)
"
echo
"
$distribution
"
|
grep
-q
"^ALT"
&&
return
1
echo
"
$distribution
"
|
grep
-q
"^EEPM"
&&
return
1
return
0
;;
redos
)
epm_status_validate
$pkg
||
return
1
echo
"
$distribution
"
|
grep
-q
"^RED SOFT"
&&
return
1
echo
"
$distribution
"
|
grep
-q
"^EEPM"
&&
return
1
return
0
;;
*
)
fatal
"Unsupported
$BASEDISTRNAME
"
;;
...
...
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