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
fb09d42a
Commit
fb09d42a
authored
Apr 25, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm full-upgrade: add support for usrmerge (filesystem 3.1)
parent
5013eb55
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
epm-full_upgrade
bin/epm-full_upgrade
+16
-2
No files found.
bin/epm-full_upgrade
View file @
fb09d42a
#!/bin/sh
#!/bin/sh
#
#
# Copyright (C) 2019, 2022 Etersoft
# Copyright (C) 2019, 2022
, 2024
Etersoft
# Copyright (C) 2019, 2022 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2019, 2022
, 2024
Vitaly Lipatov <lav@etersoft.ru>
#
#
# This program is free software: you can redistribute it and/or modify
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# it under the terms of the GNU Affero General Public License as published by
...
@@ -17,6 +17,19 @@
...
@@ -17,6 +17,19 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
__check_upgrade_conditions
()
{
[
"
$BASEDISTRNAME
"
=
"alt"
]
||
return
0
[
"
$DISTRVERSION
"
=
"Sisyphus"
]
||
return
0
# https://www.altlinux.org/Usrmerge
epm status
--installed
filesystem 3.1
&&
return
0
info
"Installing usrmerge-hier-convert to merge file hierarhy, check https://www.altlinux.org/Usrmerge."
epm upgrade vim-minimal vim-console
epm
install
usrmerge-hier-convert
return
0
}
epm_full_upgrade_help
()
epm_full_upgrade_help
()
{
{
get_help HELPCMD
$SHAREDIR
/epm-full_upgrade
get_help HELPCMD
$SHAREDIR
/epm-full_upgrade
...
@@ -90,6 +103,7 @@ confirm_action()
...
@@ -90,6 +103,7 @@ confirm_action()
confirm_action
"Do upgrade installed packages? [Y/n]"
||
full_upgrade_no_upgrade
=
1
confirm_action
"Do upgrade installed packages? [Y/n]"
||
full_upgrade_no_upgrade
=
1
if
[
-z
"
$full_upgrade_no_upgrade
"
]
;
then
if
[
-z
"
$full_upgrade_no_upgrade
"
]
;
then
[
-n
"
$quiet
"
]
||
echo
[
-n
"
$quiet
"
]
||
echo
__check_upgrade_conditions
||
fatal
"upgrade conditions is not satisfied."
docmd epm
$dryrun
upgrade
||
fatal
"upgrading of the system is failed."
docmd epm
$dryrun
upgrade
||
fatal
"upgrading of the system is failed."
fi
fi
...
...
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