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
b65ad68b
Commit
b65ad68b
authored
Apr 28, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
release-upgrade: install altlinux-release-p? only if /etc/altlinux-release belongs to sisyphus
parent
285350b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
epm-release_upgrade
bin/epm-release_upgrade
+12
-8
No files found.
bin/epm-release_upgrade
View file @
b65ad68b
...
@@ -71,13 +71,21 @@ __alt_repofix()
...
@@ -71,13 +71,21 @@ __alt_repofix()
__replace_text_in_alt_repo
"/^ *#/! s!
\[
p[6-9]
\]
![updates]!g"
__replace_text_in_alt_repo
"/^ *#/! s!
\[
p[6-9]
\]
![updates]!g"
}
}
get_fix_release_pkg
()
{
# TODO: check for version incompatibilities
if
epmqf /etc/altlinux-release |
grep
-q
sisyphus
;
then
echo
altlinux-release-
$1
fi
}
__update_to_the_distro
()
__update_to_the_distro
()
{
{
__alt_repofix
__alt_repofix
case
"
$1
"
in
case
"
$1
"
in
p7
)
p7
)
docmd epm update
||
fatal
docmd epm update
||
fatal
docmd epm
install
apt rpm apt-conf-branch
altlinux-release-p7
||
fatal
"Check an error and run epm release-upgrade again"
docmd epm
install
apt rpm apt-conf-branch
$(
get_fix_release_pkg p7
)
||
fatal
"Check an error and run epm release-upgrade again"
__alt_repofix
__alt_repofix
__replace_text_in_alt_repo
"/^ *#/! s!
\[
updates
\]
![p7]!g"
__replace_text_in_alt_repo
"/^ *#/! s!
\[
updates
\]
![p7]!g"
docmd epm update
||
fatal
docmd epm update
||
fatal
...
@@ -85,10 +93,10 @@ __update_to_the_distro()
...
@@ -85,10 +93,10 @@ __update_to_the_distro()
;;
;;
p8
)
p8
)
docmd epm update
||
fatal
docmd epm update
||
fatal
if
!
docmd epm
install
apt rpm apt-conf-branch
altlinux-release-p8
;
then
if
!
docmd epm
install
apt rpm apt-conf-branch
$(
get_fix_release_pkg p8
)
;
then
# error: execution of %post scriptlet from glibc-core-2.23-alt1.eter1
# error: execution of %post scriptlet from glibc-core-2.23-alt1.eter1
docmd epm erase glibc-core-2.17
||
fatal
"Check an error and run epm release-upgrade again"
docmd epm erase glibc-core-2.17
||
fatal
"Check an error and run epm release-upgrade again"
docmd epm
install
apt rpm apt-conf-branch
altlinux-release-p8
||
fatal
"Check an error and run epm release-upgrade again"
docmd epm
install
apt rpm apt-conf-branch
$(
get_fix_release_pkg p8
)
||
fatal
"Check an error and run epm release-upgrade again"
fi
fi
__alt_repofix
__alt_repofix
__replace_text_in_alt_repo
"/^ *#/! s!
\[
updates
\]
![p8]!g"
__replace_text_in_alt_repo
"/^ *#/! s!
\[
updates
\]
![p8]!g"
...
@@ -123,11 +131,7 @@ __update_alt_to_next_distro()
...
@@ -123,11 +131,7 @@ __update_alt_to_next_distro()
;;
;;
"p7"
|
"p7 p8"
)
"p7"
|
"p7 p8"
)
info
"Upgrade
$DISTRNAME
from p7 to p8 ..."
info
"Upgrade
$DISTRNAME
from p7 to p8 ..."
local
FIXRELEASEPKG
=
docmd epm
install
apt-conf-branch
$(
get_fix_release_pkg p7
)
||
fatal
if
epmqf /etc/altlinux-release |
grep
-q
sisyphus
;
then
FIXRELEASEPKG
=
altlinux-release-p7
fi
docmd epm
install
apt-conf-branch
$FIXRELEASEPKG
||
fatal
__replace_alt_version_in_repo p7/branch/ p8/branch/
__replace_alt_version_in_repo p7/branch/ p8/branch/
__update_to_the_distro p8
__update_to_the_distro p8
docmd epm update-kernel
||
fatal
docmd epm update-kernel
||
fatal
...
...
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