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
ae6ab0f2
Commit
ae6ab0f2
authored
Apr 20, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel_update: do not install kernel if it is not installed (for ovz containers)
parent
29367fd3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
epm-kernel_update
bin/epm-kernel_update
+5
-0
epm-query_package
bin/epm-query_package
+5
-0
No files found.
bin/epm-kernel_update
View file @
ae6ab0f2
...
@@ -23,6 +23,11 @@ epm_kernel_update()
...
@@ -23,6 +23,11 @@ epm_kernel_update()
case
$DISTRNAME
in
case
$DISTRNAME
in
ALTLinux
)
ALTLinux
)
load_helper epm-query_package
if
!
__epm_query_package kernel-image
>
/dev/null
;
then
info
"No installed kernel packages, skipping update"
return
fi
assure_exists update-kernel
assure_exists update-kernel
sudocmd update-kernel
$pkg_filenames
sudocmd update-kernel
$pkg_filenames
return
;;
return
;;
...
...
bin/epm-query_package
View file @
ae6ab0f2
...
@@ -20,6 +20,11 @@
...
@@ -20,6 +20,11 @@
load_helper epm-packages
load_helper epm-packages
load_helper epm-search
load_helper epm-search
__epm_query_package
()
{
pkg_filenames
=
"
$@
"
quoted_args
=
"
$@
"
quiet
=
1 epm_query_package
}
epm_query_package
()
epm_query_package
()
{
{
[
-n
"
$pkg_filenames
"
]
||
fatal
"Please, use search with some argument or run epmqa for get all packages."
[
-n
"
$pkg_filenames
"
]
||
fatal
"Please, use search with some argument or run epmqa for get all packages."
...
...
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