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
eda5b2d7
Commit
eda5b2d7
authored
Apr 24, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm status: make return codes more clear
parent
bf73788e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
epm-status
bin/epm-status
+4
-4
No files found.
bin/epm-status
View file @
eda5b2d7
...
...
@@ -35,7 +35,7 @@ epm_status_original()
case
$DISTRNAME
in
ALTLinux|ALTServer
)
epm_status_validate
$pkg
||
return
epm_status_validate
$pkg
||
return
1
epm_status_repacked
$pkg
&&
return
1
# not for all packages
...
...
@@ -43,7 +43,7 @@ epm_status_original()
local
distribution
distribution
=
"
$(
epm print field Distribution
for
"
$pkg
"
2>/dev/null
)
"
echo
"
$distribution
"
|
grep
-q
"^ALT"
||
return
echo
"
$distribution
"
|
grep
-q
"^ALT"
||
return
1
# mc in Sisyphus has not a signature
#local sig
...
...
@@ -52,7 +52,7 @@ epm_status_original()
# 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
echo
"
$release
"
|
grep
-q
"^alt"
||
return
1
return
0
;;
*
)
...
...
@@ -95,7 +95,7 @@ epm_status_thirdpart()
#local packager="$(epm print field Packager for "$1" 2>/dev/null)"
#echo "$packager" && grep -q "altlinux" && return 0
#echo "$packager" && grep -q "basealt" && return 0
epm_status_validate
$pkg
||
return
epm_status_validate
$pkg
||
return
1
local
distribution
distribution
=
"
$(
epm print field Distribution
for
"
$pkg
"
2>/dev/null
)
"
...
...
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