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
d3d09eb7
Commit
d3d09eb7
authored
Sep 04, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
release_upgrade: move set trap to a common place
parent
e7581632
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
epm-release_upgrade
bin/epm-release_upgrade
+3
-4
epm-reposave
bin/epm-reposave
+10
-0
epm-upgrade
bin/epm-upgrade
+1
-1
No files found.
bin/epm-release_upgrade
View file @
d3d09eb7
...
...
@@ -308,8 +308,7 @@ __switch_alt_to_distro()
local
FROM
=
"
$1
"
info
__save_alt_repo_lists
trap
__restore_alt_repo_lists EXIT
try_change_alt_repo
case
"
$*
"
in
"p6"
|
"p6 p7"
|
"t6 p7"
|
"c6 c7"
)
...
...
@@ -458,12 +457,12 @@ __switch_alt_to_distro()
else
warning
"Unknown distro version. Have no idea how to switch from
$DISTRNAME
$FROM
to
$DISTRNAME
$TO
."
fi
trap
- EXIT
end_change_alt_repo
info
"Try run f.i. '# epm release-upgrade p10' or '# epm release-downgrade p9' or '# epm release-upgrade Sisyphus'"
info
"Also possible you need install altlinux-release-p? package for correct distro version detecting"
return
1
esac
trap
- EXIT
end_change_alt_repo
epm clean
info
"Note: Also you can try '# epm autoremove' and '# epm autoorphans' commands to remove obsoleted and unused packages."
}
...
...
bin/epm-reposave
View file @
d3d09eb7
...
...
@@ -52,6 +52,16 @@ __restore_alt_repo_lists()
done
}
try_change_alt_repo
()
{
__save_alt_repo_lists
trap
__restore_alt_repo_lists EXIT
}
end_change_alt_repo
()
{
trap
- EXIT
}
epm_reposave
()
...
...
bin/epm-upgrade
View file @
d3d09eb7
...
...
@@ -43,7 +43,7 @@ epm_upgrade()
# install only installed packages (simulate upgrade packages)
installlist
=
"
$(
get_only_installed_packages
"
$installlist
"
)
"
[
-n
"
$verbose
"
]
&&
info
"Packages to upgrade:
$installlist
"
(
pkg_names
=
"
$installlist
"
epm_Install
)
(
pkg_names
=
"
$installlist
"
epm_Install
)
||
fatal
"Can't update repo"
epm_removerepo
"
$@
"
return
fi
...
...
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