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
3f0fe9ad
Commit
3f0fe9ad
authored
1 year ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm install alt: cleanup
parent
240fa14d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
epm-install-alt
bin/epm-install-alt
+17
-17
No files found.
bin/epm-install-alt
View file @
3f0fe9ad
...
...
@@ -62,24 +62,24 @@ epm_install_files_alt()
# try install via apt if we could't install package file via rpm (we guess we need install requirements firsly)
# TODO: use it always (apt can install version from repo instead of a file package)
if
[
-n
"
$noscripts
"
]
;
then
info
"Workaround for install packages via apt with --noscripts (see https://bugzilla.altlinux.org/44670)"
info
"Firstly install package requrements …"
# names of packages to be installed
local
fl
=
"
$(
epm print name
for
package
$files
)
"
local
req
=
"
$(
docmd epm req
--short
$files
)
"
||
return
# exclude package names from requires (req - fl)
req
=
"
$(
estrlist exclude
"
$fl
"
"
$req
"
)
"
# TODO: can we install only requires via apt?
docmd epm
install
$req
||
return
# retry with rpm
# --replacepkgs: Install the Package Even If Already Installed
local
replacepkgs
=
"
$(
__epm_get_replacepkgs
$files
)
"
sudocmd rpm
-Uvh
$replacepkgs
$(
subst_option dryrun
--test
)
$force
$noscripts
$nodeps
$files
&&
save_installed_packages
$files
if
[
-z
"
$noscripts
"
]
;
then
epm_install_names
$files
return
fi
epm_install_names
$files
# TODO: use it always (apt can install version from repo instead of a file package)
info
"Workaround for install packages via apt with --noscripts (see https://bugzilla.altlinux.org/44670)"
info
"Firstly install package requrements …"
# names of packages to be installed
local
fl
=
"
$(
epm print name
for
package
$files
)
"
local
req
=
"
$(
docmd epm req
--short
$files
)
"
||
return
# exclude package names from requires (req - fl)
req
=
"
$(
estrlist exclude
"
$fl
"
"
$req
"
)
"
# TODO: can we install only requires via apt?
docmd epm
install
$req
||
return
# retry with rpm
# --replacepkgs: Install the Package Even If Already Installed
local
replacepkgs
=
"
$(
__epm_get_replacepkgs
$files
)
"
sudocmd rpm
-Uvh
$replacepkgs
$(
subst_option dryrun
--test
)
$force
$noscripts
$nodeps
$files
&&
save_installed_packages
$files
}
This diff is collapsed.
Click to expand it.
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