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
da0965ef
Commit
da0965ef
authored
Apr 30, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm upgrade: move upgrade to usrmerged filesystem to epm upgrade
parent
12545d1d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
14 deletions
+20
-14
epm-full_upgrade
bin/epm-full_upgrade
+0
-14
epm-upgrade
bin/epm-upgrade
+20
-0
No files found.
bin/epm-full_upgrade
View file @
da0965ef
...
...
@@ -17,19 +17,6 @@
# 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
()
{
get_help HELPCMD
$SHAREDIR
/epm-full_upgrade
...
...
@@ -103,7 +90,6 @@ confirm_action()
confirm_action
"Do upgrade installed packages? [Y/n]"
||
full_upgrade_no_upgrade
=
1
if
[
-z
"
$full_upgrade_no_upgrade
"
]
;
then
[
-n
"
$quiet
"
]
||
echo
__check_upgrade_conditions
||
fatal
"upgrade conditions is not satisfied."
docmd epm
$dryrun
upgrade
||
fatal
"upgrading of the system is failed."
fi
...
...
bin/epm-upgrade
View file @
da0965ef
...
...
@@ -20,6 +20,24 @@
load_helper epm-check_updated_repo
load_helper epm-sh-warmup
__check_upgrade_conditions
()
{
#[ "$BASEDISTRNAME" = "alt" ] || return 0
[
"
$DISTRVERSION
"
=
"Sisyphus"
]
||
return
0
# fast skip if already updated
[
-L
"/bin"
]
&&
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_upgrade
()
{
local
CMD
...
...
@@ -58,6 +76,8 @@ epm_upgrade()
return
fi
__check_upgrade_conditions
||
fatal
"upgrade conditions is not satisfied."
fi
# Solus supports upgrade for a package (with all dependencies)
...
...
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