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
Vladislav
eepm
Commits
afbf8aaf
Commit
afbf8aaf
authored
Apr 23, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Plain Diff
backported to p8 as 1.7.4-alt0.M80P.1 (with rpmbph script)
parents
fb9f9658
84c6cdac
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
12 deletions
+16
-12
epm-release_upgrade
bin/epm-release_upgrade
+9
-8
epm-repofix
bin/epm-repofix
+2
-2
eepm.spec
eepm.spec
+5
-2
No files found.
bin/epm-release_upgrade
View file @
afbf8aaf
...
@@ -58,7 +58,7 @@ __replace_alt_version_in_repo()
...
@@ -58,7 +58,7 @@ __replace_alt_version_in_repo()
assure_exists apt-repo
assure_exists apt-repo
#echo "Upgrading $DISTRNAME from $1 to $2 ..."
#echo "Upgrading $DISTRNAME from $1 to $2 ..."
docmd apt-repo list |
sed
-e
"s|
\(
$1
\)
|{
\1
}->{
$2
}|g"
| egrep
--color
--
"
$1
"
docmd apt-repo list |
sed
-e
"s|
\(
$1
\)
|{
\1
}->{
$2
}|g"
| egrep
--color
--
"
$1
"
confirm
"Are these correct changes?"
||
fatal
"Exiting"
confirm
"Are these correct changes?
[y/N]
"
||
fatal
"Exiting"
__replace_text_in_alt_repo
"/^ *#/! s!
$1
!
$2
!g"
__replace_text_in_alt_repo
"/^ *#/! s!
$1
!
$2
!g"
docmd apt-repo list
docmd apt-repo list
}
}
...
@@ -66,7 +66,8 @@ __replace_alt_version_in_repo()
...
@@ -66,7 +66,8 @@ __replace_alt_version_in_repo()
__alt_repofix
()
__alt_repofix
()
{
{
load_helper epm-repofix
load_helper epm-repofix
pkg_filenames
=
epm_repofix
showcmd epm repofix
quiet
=
1
pkg_filenames
=
epm_repofix
>
/dev/null
__replace_text_in_alt_repo
"/^ *#/! s!
\[
p[6-9]
\]
![updates]!g"
__replace_text_in_alt_repo
"/^ *#/! s!
\[
p[6-9]
\]
![updates]!g"
}
}
...
@@ -106,9 +107,6 @@ __update_to_the_distro()
...
@@ -106,9 +107,6 @@ __update_to_the_distro()
Sisyphus
)
Sisyphus
)
docmd epm update
||
fatal
docmd epm update
||
fatal
docmd epm
install
apt rpm apt-conf-sisyphus altlinux-release-sisyphus
||
fatal
"Check an error and run again"
docmd epm
install
apt rpm apt-conf-sisyphus altlinux-release-sisyphus
||
fatal
"Check an error and run again"
#__replace_text_in_alt_repo "/^ *#/! s!\[updates\]![alt]!g"
__alt_repofix
docmd epm update
||
fatal
docmd epm upgrade
||
fatal
"Check an error and run epm release-upgrade again"
docmd epm upgrade
||
fatal
"Check an error and run epm release-upgrade again"
docmd epm update-kernel
||
fatal
docmd epm update-kernel
||
fatal
info
"Done."
info
"Done."
...
@@ -138,19 +136,21 @@ __update_alt_to_next_distro()
...
@@ -138,19 +136,21 @@ __update_alt_to_next_distro()
info
"Downgrade
$DISTRNAME
from Sisyphus to p8 ..."
info
"Downgrade
$DISTRNAME
from Sisyphus to p8 ..."
docmd epm
install
apt-conf-branch
||
fatal
docmd epm
install
apt-conf-branch
||
fatal
__replace_alt_version_in_repo Sisyphus/ p8/branch/
__replace_alt_version_in_repo Sisyphus/ p8/branch/
__replace_text_in_alt_repo
"/^ *#/! s!
\[
alt
\]
![p8]!g"
__update_to_the_distro p8
__update_to_the_distro p8
;;
;;
"p8 Sisyphus"
)
"p8 Sisyphus"
)
info
"Upgrade
$DISTRNAME
from p8 to Sisyphus ..."
info
"Upgrade
$DISTRNAME
from p8 to Sisyphus ..."
docmd epm
install
apt-conf-branch
||
fatal
docmd epm
install
apt-conf-branch
||
fatal
docmd epm upgrade
||
fatal
docmd epm upgrade
||
fatal
__alt_repofix
__replace_alt_version_in_repo p8/branch/ Sisyphus/
__replace_alt_version_in_repo p8/branch/ Sisyphus/
__alt_repofix
__replace_text_in_alt_repo
"/^ *#/! s!
\[
updates
\]
![alt]!g"
__update_to_the_distro Sisyphus
__update_to_the_distro Sisyphus
;;
;;
*
)
*
)
warning
"Have no idea how to update from
$DISTRNAME
$DISTRVERSION
."
warning
"Have no idea how to update from
$DISTRNAME
$DISTRVERSION
."
info
"Try run f.i. # epm release-upgrade p8"
info
"Try run f.i. # epm release-upgrade p8
or # epm release-upgrade Sisyphus
"
return
1
return
1
esac
esac
}
}
...
@@ -163,7 +163,6 @@ epm_release_upgrade()
...
@@ -163,7 +163,6 @@ epm_release_upgrade()
case
$DISTRNAME
in
case
$DISTRNAME
in
ALTLinux
)
ALTLinux
)
__alt_repofix
docmd epm update
docmd epm update
docmd epm
install
apt rpm
docmd epm
install
apt rpm
...
@@ -173,6 +172,8 @@ epm_release_upgrade()
...
@@ -173,6 +172,8 @@ epm_release_upgrade()
[
"
$DISTRVERSION
"
!=
"Sisyphus"
]
&&
info
"Detected running
$DISTRNAME
$DISTRVERSION
(according to using repos)"
[
"
$DISTRVERSION
"
!=
"Sisyphus"
]
&&
info
"Detected running
$DISTRNAME
$DISTRVERSION
(according to using repos)"
fi
fi
__alt_repofix
# check forced target
# check forced target
if
[
-n
"
$pkg_filenames
"
]
;
then
if
[
-n
"
$pkg_filenames
"
]
;
then
[
"
$(
__wcount
$pkg_filenames
)
"
=
"1"
]
||
fatal
"Too many args:
$pkg_filenames
"
[
"
$(
__wcount
$pkg_filenames
)
"
=
"1"
]
||
fatal
"Too many args:
$pkg_filenames
"
...
...
bin/epm-repofix
View file @
afbf8aaf
...
@@ -33,10 +33,10 @@ __fix_apt_sources_list()
...
@@ -33,10 +33,10 @@ __fix_apt_sources_list()
# add signs
# add signs
local
br
local
br
for
br
in
$DISTRVERSION
;
do
for
br
in
$DISTRVERSION
;
do
# sed -r -e "/ALTLinux\/p8\/branch/s/rpm *([fhr])/rpm [p8] \1/"
regexp_subst
"/ALTLinux
\/
$br
\/
branch/s/^rpm *([fhr])/rpm [
$br
]
\1
/"
$i
regexp_subst
"/ALTLinux
\/
$br
\/
branch/s/^rpm *([fhr])/rpm [
$br
]
\1
/"
$i
regexp_subst
"/Etersoft
\/
$br
\/
branch/s/^rpm *([fhr])/rpm [etersoft]
\1
/"
$i
regexp_subst
"/Etersoft
\/
$br
\/
branch/s/^rpm *([fhr])/rpm [etersoft]
\1
/"
$i
done
done
regexp_subst
"/ALTLinux
\/
Sisyphus/s/^rpm *([fhr])/rpm [alt]
\1
/"
$i
done
done
}
}
...
@@ -48,7 +48,7 @@ epm_repofix()
...
@@ -48,7 +48,7 @@ epm_repofix()
case
$PMTYPE
in
case
$PMTYPE
in
apt-rpm
)
apt-rpm
)
assure_exists apt-repo
assure_exists apt-repo
docmd apt-repo list
[
-n
"
$quiet
"
]
||
docmd apt-repo list
__fix_apt_sources_list /etc/apt/sources.list
__fix_apt_sources_list /etc/apt/sources.list
__fix_apt_sources_list /etc/apt/sources.list.d/
*
.list
__fix_apt_sources_list /etc/apt/sources.list.d/
*
.list
docmd apt-repo list
docmd apt-repo list
...
...
eepm.spec
View file @
afbf8aaf
# This spec is backported to ALTLinux p8 automatically by rpmbph script from etersoft-build-utils.
# This spec is backported to ALTLinux p8 automatically by rpmbph script from etersoft-build-utils.
#
#
Name: eepm
Name: eepm
Version: 1.7.
3
Version: 1.7.
4
Release: alt0.M80P.1
Release: alt0.M80P.1
Summary: Etersoft EPM package manager
Summary: Etersoft EPM package manager
...
@@ -67,9 +67,12 @@ chmod a+x %buildroot%_datadir/%name/{serv-,epm-}*
...
@@ -67,9 +67,12 @@ chmod a+x %buildroot%_datadir/%name/{serv-,epm-}*
%_sysconfdir/bash_completion.d/cerv
%_sysconfdir/bash_completion.d/cerv
%changelog
%changelog
* Sat Apr 23 2016 Vitaly Lipatov <lav@altlinux.ru> 1.7.
3
-alt0.M80P.1
* Sat Apr 23 2016 Vitaly Lipatov <lav@altlinux.ru> 1.7.
4
-alt0.M80P.1
- backport to ALTLinux p8 (by rpmbph script)
- backport to ALTLinux p8 (by rpmbph script)
* Sat Apr 23 2016 Vitaly Lipatov <lav@altlinux.ru> 1.7.4-alt1
- release-upgrade: small logic improvements
* Sat Apr 23 2016 Vitaly Lipatov <lav@altlinux.ru> 1.7.3-alt1
* Sat Apr 23 2016 Vitaly Lipatov <lav@altlinux.ru> 1.7.3-alt1
- epm release-upgrade: check for glibc-core-2.17
- epm release-upgrade: check for glibc-core-2.17
- release-upgrade: add detect current system by apt repo
- release-upgrade: add detect current system by apt repo
...
...
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