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
9c78d199
Commit
9c78d199
authored
Mar 10, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-install-alt: rewrite epm_install_alt_tasks without apt-repo
parent
4ef0cb98
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
7 deletions
+37
-7
epm-install-alt
bin/epm-install-alt
+37
-7
No files found.
bin/epm-install-alt
View file @
9c78d199
...
@@ -198,7 +198,7 @@ epm_install_alt_names()
...
@@ -198,7 +198,7 @@ epm_install_alt_names()
epm_install_alt_kernel_module
$kmlist
||
return
epm_install_alt_kernel_module
$kmlist
||
return
}
}
# Unused hack for apt-repo
# apt-repo with non_interactive support
# apt-repo with non_interactive support
apt_repo_prepare
()
apt_repo_prepare
()
{
{
...
@@ -218,15 +218,45 @@ apt_repo_after()
...
@@ -218,15 +218,45 @@ apt_repo_after()
}
}
# copied from epm_upgrade_alt_tasks()
epm_install_alt_tasks
()
epm_install_alt_tasks
()
{
{
local
res
load_helper epm-addrepo
# TODO: don't use apt-repo
load_helper epm-reposave
apt_repo_prepare
load_helper epm-removerepo
load_helper epm-Install
sudocmd_foreach
"apt-repo test"
$(
tasknumber
"
$@
"
)
local
installlist
=
"
$(
get_task_packages
"
$@
"
)
"
res
=
$?
[
-n
"
$verbose
"
]
&&
info
"Packages from task(s):
$installlist
"
if
[
-n
"
$full
"
]
;
then
installlist
=
"
$(
estrlist reg_exclude
".*-checkinstall .*-debuginfo"
"
$installlist
"
)
"
else
# hack: drop -devel packages to avoid package provided by multiple packages
installlist
=
"
$(
estrlist reg_exclude
".*-devel .*-devel-static .*-checkinstall .*-debuginfo"
"
$installlist
"
)
"
fi
apt_repo_after
# TODO: need we this option?
#if [ -z "$force" ] ; then
# # skip i586- on install
installlist
=
"
$(
estrlist reg_exclude
"i586-.*"
"
$installlist
"
)
"
#fi
[
-n
"
$verbose
"
]
&&
info
"Packages to install:
$installlist
"
if
[
-z
"
$installlist
"
]
;
then
warning
'There is no installed packages for upgrade from task $*'
return
22
fi
local
res
try_change_alt_repo
epm_addrepo
"
$@
"
__epm_update
(
pkg_names
=
"
$installlist
"
epm_install
)
res
=
$?
epm_removerepo
"
$@
"
end_change_alt_repo
return
$res
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