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
7afe4d53
Commit
7afe4d53
authored
May 19, 2024
by
Boris Yumankulov
Committed by
Vitaly Lipatov
Nov 09, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm full-upgrade: check epm update (eterbug #17354)
parent
1ecae9f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
epm-full_upgrade
bin/epm-full_upgrade
+17
-1
eepm.conf
etc/eepm.conf
+1
-0
No files found.
bin/epm-full_upgrade
View file @
7afe4d53
...
...
@@ -60,6 +60,9 @@ epm_full_upgrade()
"--no-clean"
)
# HELPCMD: no clean after upgrade
full_upgrade_no_clean
=
1
;;
"--no-epm-update-check"
)
# HELPCMD: skip epm update during full upgrade
full_upgrade_no_epm_update_check
=
1
;;
esac
shift
done
...
...
@@ -86,6 +89,20 @@ confirm_action()
docmd epm update
||
fatal
"repository updating is failed."
fi
if
[
"
$BASEDISTRNAME
"
=
"alt"
]
;
then
confirm_action
"Do upgrade epm? [Y/n]"
||
full_upgrade_no_epm_update_check
=
1
if
[
-z
"
$full_upgrade_no_epm_update_check
"
]
;
then
[
-n
"
$quiet
"
]
||
echo
epm_version_before
=
$(
epmq eepm &>/dev/null
)
docmd epm
$dryrun
install
eepm &>/dev/null
epm_version_after
=
$(
epmq eepm &>/dev/null
)
if
[
"
$epm_version_before
"
!=
"
$epm_version_after
"
]
;
then
info
"An update for epm has been found, epm will be restarted for the update"
exec
$PROGDIR
/
$PROGNAME
full-upgrade
"
$@
"
exit
0
fi
fi
fi
confirm_action
"Do upgrade installed packages? [Y/n]"
||
full_upgrade_no_upgrade
=
1
if
[
-z
"
$full_upgrade_no_upgrade
"
]
;
then
...
...
@@ -93,7 +110,6 @@ confirm_action()
docmd epm
$dryrun
upgrade
||
fatal
"upgrading of the system is failed."
fi
confirm_action
"Upgrade kernel and kernel modules? [Y/n]"
||
full_upgrade_no_kernel_update
=
1
if
[
-z
"
$full_upgrade_no_kernel_update
"
]
;
then
[
-n
"
$quiet
"
]
||
echo
...
...
etc/eepm.conf
View file @
7afe4d53
...
...
@@ -30,6 +30,7 @@
#full_upgrade_no_snap=1
#full_upgrade_no_kernel_update=1
#full_upgrade_no_clean=1
#full_upgrade_no_epm_update_check=1
# autodetect by default
#eget_backend=curl
...
...
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