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
71cd408e
Commit
71cd408e
authored
Apr 12, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm release-upgrade/downgrade: update supported ALT branches
parent
847f5e22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
epm-release_downgrade
bin/epm-release_downgrade
+4
-0
epm-release_upgrade
bin/epm-release_upgrade
+11
-6
No files found.
bin/epm-release_downgrade
View file @
71cd408e
...
...
@@ -29,6 +29,8 @@ get_prev_release()
echo
"p8"
;;
"p10"
)
echo
"p9"
;;
"p11"
)
echo
"p10"
;;
"c7"
)
echo
"c6"
;;
"c8"
)
...
...
@@ -41,6 +43,8 @@ get_prev_release()
echo
"c8"
;;
"c9f2"
)
echo
"c9f1"
;;
"c10f2"
)
echo
"c10f1"
;;
"10"
)
echo
"9"
;;
*
)
...
...
bin/epm-release_upgrade
View file @
71cd408e
...
...
@@ -81,8 +81,8 @@ __detect_alt_release_by_repo()
{
local
BRD
=
$(
cat
/etc/apt/sources.list /etc/apt/sources.list.d/
*
.list
\
|
grep
-v
"^#"
\
|
grep
-E
"[tpc][
5-9]
\.
?[0-9]?/branch/"
\
|
sed
-e
"s|.*
\(
[tpc][
5-9]
\.
\?
[0-9]
\?\)
/branch.*|
\1
|g"
\
|
grep
-E
"[tpc][
1-3]?[5-9][f.]
?[0-9]?/branch/"
\
|
sed
-e
"s|.*
\(
[tpc][
1-3]
\?
[5-9][f.]
\?
[0-9]
\?\)
/branch.*|
\1
|g"
\
|
sort
-u
)
if
[
"
$(
__wcount
$BRD
)
"
=
"1"
]
;
then
echo
"
$BRD
"
...
...
@@ -250,6 +250,8 @@ get_next_release()
echo
"p9"
;;
"p9"
)
echo
"p10"
;;
"p10"
)
echo
"p11"
;;
"c6"
)
echo
"c7"
;;
"c7"
)
...
...
@@ -262,6 +264,8 @@ get_next_release()
echo
"c9f2"
;;
"c9f1"
)
echo
"c9f2"
;;
"c10f1"
)
echo
"c10f2"
;;
*
)
echo
"
$FROM
"
;;
esac
...
...
@@ -343,7 +347,7 @@ __switch_alt_to_distro()
docmd epm update-kernel
||
fatal
info
"Run epm release-upgrade again for update to p10"
;;
"p9"
|
"p9 p10"
|
"p10 p10"
)
"p9"
|
"p9 p10"
|
"p10 p10"
|
"p10 p11"
)
info
"Upgrade all packages to current
$FROM
repository"
__do_upgrade
confirm_info
"Upgrade
$DISTRNAME
from
$FROM
to
$TO
..."
...
...
@@ -383,7 +387,7 @@ __switch_alt_to_distro()
__check_system
"
$TO
"
docmd epm upgrade
||
fatal
;;
"p10 p9"
)
"p10 p9"
|
"p11 p9"
)
confirm_info
"Downgrade
$DISTRNAME
from
$FROM
to
$TO
..."
docmd epm
install
$(
get_fix_release_pkg
"
$FROM
"
)
__switch_repo_to
$TO
...
...
@@ -393,7 +397,7 @@ __switch_alt_to_distro()
__check_system
"
$TO
"
docmd epm upgrade
||
fatal
;;
"Sisyphus p8"
|
"Sisyphus p9"
|
"Sisyphus p10"
|
"Sisyphus c8"
|
"Sisyphus c8.1"
|
"Sisyphus c9f2"
)
"Sisyphus p8"
|
"Sisyphus p9"
|
"Sisyphus p10"
|
"Sisyphus c8"
|
"Sisyphus c8.1"
|
"Sisyphus c9f2"
|
"Sisyphus c10f1"
|
"Sisyphus c10f2"
)
confirm_info
"Downgrade
$DISTRNAME
from
$FROM
to
$TO
..."
docmd epm
install
$(
get_fix_release_pkg
"
$FROM
"
)
__switch_repo_to
$TO
...
...
@@ -403,7 +407,7 @@ __switch_alt_to_distro()
__check_system
"
$TO
"
docmd epm upgrade
||
fatal
;;
"p8 Sisyphus"
|
"p9 Sisyphus"
|
"p10 Sisyphus"
|
"10 Sisyphus"
|
"Sisyphus Sisyphus"
)
"p8 Sisyphus"
|
"p9 Sisyphus"
|
"p10 Sisyphus"
|
"
p11 Sisyphus"
|
"
10 Sisyphus"
|
"Sisyphus Sisyphus"
)
confirm_info
"Upgrade
$DISTRNAME
from
$FROM
to
$TO
..."
docmd epm
install
rpm apt
$(
get_fix_release_pkg
"
$FROM
"
)
||
fatal
docmd epm upgrade
||
fatal
...
...
@@ -411,6 +415,7 @@ __switch_alt_to_distro()
__replace_alt_version_in_repo
"
$FROM
/branch/"
"
$TO
/"
__alt_repofix
"alt"
[
-s
/etc/rpm/macros.d/p10
]
&&
rm
-fv
/etc/rpm/macros.d/p10
[
-s
/etc/rpm/macros.d/p11
]
&&
rm
-fv
/etc/rpm/macros.d/p11
__epm_ru_update
||
fatal
docmd epm fix
||
fatal
docmd epm
install
$(
get_fix_release_pkg
--force
"
$TO
"
)
||
fatal
"Check the errors and run '# epm release-upgrade' again"
...
...
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