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
5eec5a83
Commit
5eec5a83
authored
Nov 25, 2024
by
Boris Yumankulov
Committed by
Vitaly Lipatov
Nov 25, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm status: added --supported argument
parent
558b0189
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
epm-status
bin/epm-status
+18
-0
common.sh
play.d/common.sh
+1
-4
No files found.
bin/epm-status
View file @
5eec5a83
...
...
@@ -114,6 +114,19 @@ epm_status_certified()
}
epm_status_supported
()
{
local
distro
distro
=
$(
epm print info
-s
)
case
"
$distro
"
in
alt|redos|rosa
*
|
mos|fedora
)
return
0
;;
*
)
return
1
;;
esac
}
# check if the package is really package (check accessibility)
epm_status_validate
()
{
...
...
@@ -264,6 +277,7 @@ Options:
--thirdparty check if <package> from a third-party source (didn'
\'
't packed for this distro)
--repacked check if <package> was repacked with epm repack
--validate check if <package> is accessible (we can get a fields from it)
--supported check if distribution is supported by epm status
'
}
...
...
@@ -312,6 +326,10 @@ epm_status()
epm_status_installable
"
$@
"
return
;;
--supported
)
epm_status_supported
return
;;
-
*
)
fatal
'Unknown option $option, use epm status --help to get info'
;;
...
...
play.d/common.sh
View file @
5eec5a83
...
...
@@ -319,10 +319,7 @@ is_repacked_package()
epm status
--installed
$pkg
||
return
0
# actually only for ALT, RedOS, Rosa Fresh, MOS Desktop and Fedora
if
[
"
$(
epm print info
-s
)
"
!=
"alt"
]
&&
[
"
$(
epm print info
-s
)
"
!=
"redos"
]
&&
[
"
$(
epm print info
-s
)
"
!=
"rosa*"
]
&&
[
"
$(
epm print info
-s
)
"
!=
"mos"
]
&&
[
"
$(
epm print info
-s
)
"
!=
"fedora"
]
;
then
return
0
fi
epm status
--supported
||
return
1
[
-n
"
$force
"
]
&&
return
0
...
...
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