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
b6e9cad0
Commit
b6e9cad0
authored
Apr 18, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Plain Diff
backported to p7 as 1.6.8-alt0.M70P.1 (with rpmbph script)
parents
d848fcb4
435acebb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
20 deletions
+33
-20
epm-release_upgrade
bin/epm-release_upgrade
+27
-18
eepm.spec
eepm.spec
+6
-2
No files found.
bin/epm-release_upgrade
View file @
b6e9cad0
...
...
@@ -19,22 +19,23 @@
load_helper epm-query
__replace_text_in_alt_repo
()
{
local
i
for
i
in
/etc/apt/sources.list /etc/apt/sources.list.d/
*
.list
;
do
[
-s
"
$i
"
]
||
continue
regexp_subst
"
$1
"
"
$i
"
done
}
__replace_alt_version_in_repo
()
{
local
i
assure_exists apt-repo
echo
"Upgrading
$DISTRNAME
from
$1
to
$2
..."
docmd apt-repo list |
sed
-e
"s|
\(
$1
/branch
\)
|{
\1
}->
$2
/branch<
|g"
| egrep
--color
--
"
$1
/branch"
docmd apt-repo list |
sed
-e
"s|
\(
$1
/branch
\)
|{
\1
}->
{
$2
/branch}
|g"
| egrep
--color
--
"
$1
/branch"
confirm
"Are these correct changes?"
||
fatal
"Exiting"
for
i
in
/etc/apt/sources.list /etc/apt/sources.list.d/
*
.list
;
do
[
-s
"
$i
"
]
||
continue
# TODO: only for uncommended strings
#sed -i -r -e "s!$1/branch!$2/branch!g" $i
regexp_subst
"/^ *#/! s!
$1
/branch!
$2
/branch!g"
$i
# TODO: start with improve to [p8] - install some package firstly?
regexp_subst
"/^ *#/! s!
\[
$1
\]
![
\$
2]!g"
$i
done
__replace_text_in_alt_repo
"/^ *#/! s!
$1
/branch!
$2
/branch!g"
docmd apt-repo list
}
...
...
@@ -43,27 +44,37 @@ __update_alt_repo_to_next_distro()
case
"
$DISTRVERSION
"
in
p6
)
docmd epm
install
apt-conf-branch
||
fatal
load_helper epm-repofix
pkg_filenames
=
epm_repofix
__replace_alt_version_in_repo p6 p7
docmd epm update
docmd epm
install
apt rpm
||
fatal
__replace_text_in_alt_repo
"/^ *#/! s!
\[
p6
\]
![updates]!g"
docmd epm update
||
fatal
docmd epm
install
apt rpm apt-conf-branch
||
fatal
__replace_text_in_alt_repo
"/^ *#/! s!
\[
updates
\]
![p7]!g"
docmd epm update
||
fatal
docmd epm upgrade
docmd epm update-kernel
info
"Run epm release-upgrade again for update to p8"
;;
p7
)
docmd epm
install
apt-conf-branch
||
fatal
load_helper epm-repofix
pkg_filenames
=
epm_repofix
__replace_alt_version_in_repo p7 p8
docmd epm update
docmd epm
install
apt rpm
||
fatal
__replace_text_in_alt_repo
"/^ *#/! s!
\[
p7
\]
![updates]!g"
docmd epm update
||
fatal
docmd epm
install
apt rpm apt-conf-branch
||
fatal
__replace_text_in_alt_repo
"/^ *#/! s!
\[
updates
\]
![p7]!g"
docmd epm update
||
fatal
if
is_installed systemd
;
then
docmd epm
install
systemd
||
fatal
fi
docmd epm upgrade
||
fatal
#info " # epmi branding-simply-linux-release branding-simply-linux-graphics"
docmd epm update-kernel
docmd epm update-kernel
||
fatal
;;
*
)
info
"Have no idea how to update from
$DISTRNAME
$DISTRVERSION
"
info
"Have no idea how to update from
$DISTRNAME
$DISTRVERSION
. Try install branding-simply-linux-release package before.
"
return
1
esac
}
...
...
@@ -78,8 +89,6 @@ epm_release_upgrade()
ALTLinux
)
docmd epm update
docmd epm
install
apt rpm
load_helper epm-repofix
pkg_filenames
=
epm_repofix
__update_alt_repo_to_next_distro
return
;;
...
...
eepm.spec
View file @
b6e9cad0
# This spec is backported to ALTLinux p7 automatically by rpmbph script from etersoft-build-utils.
#
Name: eepm
Version: 1.6.
7
Version: 1.6.
8
Release: alt0.M70P.1
Summary: Etersoft EPM package manager
...
...
@@ -67,9 +67,13 @@ chmod a+x %buildroot%_datadir/%name/{serv-,epm-}*
%_sysconfdir/bash_completion.d/cerv
%changelog
*
Fri Apr 15 2016 Vitaly Lipatov <lav@altlinux.ru> 1.6.7
-alt0.M70P.1
*
Mon Apr 18 2016 Vitaly Lipatov <lav@altlinux.ru> 1.6.8
-alt0.M70P.1
- backport to ALTLinux p7 (by rpmbph script)
* Mon Apr 18 2016 Vitaly Lipatov <lav@altlinux.ru> 1.6.8-alt1
- small output fix
- rewrite release-upgrade
* Fri Apr 15 2016 Vitaly Lipatov <lav@altlinux.ru> 1.6.7-alt1
- release_upgrade: fix sign replacement
- fix epm_update
...
...
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