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
d2615a91
Commit
d2615a91
authored
Jul 11, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-assure: fix the result code (ALT bug 40391)
parent
641e97fa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
epm-assure
bin/epm-assure
+4
-0
No files found.
bin/epm-assure
View file @
d2615a91
...
@@ -22,6 +22,7 @@ __check_command_in_path()
...
@@ -22,6 +22,7 @@ __check_command_in_path()
PATH
=
$PATH
:/sbin:/usr/sbin which
"
$1
"
2>/dev/null
PATH
=
$PATH
:/sbin:/usr/sbin which
"
$1
"
2>/dev/null
}
}
# returns TRUE if package version is omitted, or package is not installed, or version is too old
__epm_need_update
()
__epm_need_update
()
{
{
local
PACKAGE
=
"
$1
"
local
PACKAGE
=
"
$1
"
...
@@ -98,6 +99,9 @@ epm_assure()
...
@@ -98,6 +99,9 @@ epm_assure()
# TODO: HACK: DEBUG=1 for skip to_remove_pkg handling
# TODO: HACK: DEBUG=1 for skip to_remove_pkg handling
(
DEBUG
=
1
repack
=
''
non_interactive
=
1
pkg_names
=
"
$PACKAGE
"
pkg_files
=
''
pkg_urls
=
''
epm_install
)
||
return
(
DEBUG
=
1
repack
=
''
non_interactive
=
1
pkg_names
=
"
$PACKAGE
"
pkg_files
=
''
pkg_urls
=
''
epm_install
)
||
return
# no check if we don't need a version
[
-n
"
$PACKAGEVERSION
"
]
||
return
0
# check if we couldn't update and still need update
# check if we couldn't update and still need update
__epm_need_update
$PACKAGE
$PACKAGEVERSION
&&
return
1
__epm_need_update
$PACKAGE
$PACKAGEVERSION
&&
return
1
return
0
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