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
Vladislav
eepm
Commits
4eb8ef84
Commit
4eb8ef84
authored
May 09, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm install: move task install code to epm_install_alt_tasks() function
parent
bd4c202e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
25 deletions
+36
-25
epm-install
bin/epm-install
+3
-25
epm-install-alt
bin/epm-install-alt
+33
-0
No files found.
bin/epm-install
View file @
4eb8ef84
...
...
@@ -423,35 +423,13 @@ epm_install_files()
}
# apt-repo with non_interactive support
apt_repo_prepare
()
{
assure_exists apt-repo
[
-n
"
$non_interactive
"
]
||
return
set_sudo
trap
"
$SUDO
rm /etc/apt/apt.conf.d/eepm-apt-noninteractive.conf 2>/dev/null"
EXIT
echo
'APT::Get::Assume-Yes "true";'
|
$SUDO
tee
/etc/apt/apt.conf.d/eepm-apt-noninteractive.conf
>
/dev/null
}
apt_repo_after
()
{
[
-n
"
$non_interactive
"
]
||
return
$SUDO
rm
/etc/apt/apt.conf.d/eepm-apt-noninteractive.conf 2>/dev/null
}
epm_install
()
{
if
[
"
$BASEDISTRNAME
"
=
"alt"
]
;
then
if
tasknumber
"
$pkg_names
"
>
/dev/null
;
then
local
res
# TODO: don't use apt-repo
apt_repo_prepare
sudocmd_foreach
"apt-repo test"
$(
tasknumber
$pkg_names
)
res
=
$?
apt_repo_after
return
$res
load_helper epm-install-alt
epm_install_alt_tasks
"
$pkg_names
"
return
fi
fi
...
...
bin/epm-install-alt
View file @
4eb8ef84
...
...
@@ -181,3 +181,36 @@ epm_install_alt_names()
epm_install_names
$installnames
||
return
epm_install_alt_kernel_module
$kmlist
||
return
}
# apt-repo with non_interactive support
apt_repo_prepare
()
{
assure_exists apt-repo
[
-n
"
$non_interactive
"
]
||
return
set_sudo
trap
"
$SUDO
rm /etc/apt/apt.conf.d/eepm-apt-noninteractive.conf 2>/dev/null"
EXIT
echo
'APT::Get::Assume-Yes "true";'
|
$SUDO
tee
/etc/apt/apt.conf.d/eepm-apt-noninteractive.conf
>
/dev/null
}
apt_repo_after
()
{
[
-n
"
$non_interactive
"
]
||
return
$SUDO
rm
/etc/apt/apt.conf.d/eepm-apt-noninteractive.conf 2>/dev/null
}
epm_install_alt_tasks
()
{
local
res
# TODO: don't use apt-repo
apt_repo_prepare
sudocmd_foreach
"apt-repo test"
$(
tasknumber
"
$@
"
)
res
=
$?
apt_repo_after
return
$res
}
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