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
Nurlan
eepm
Commits
4e673a9c
Commit
4e673a9c
authored
Nov 23, 2019
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upgrade: add support for epm upgrade TASK (upgrade only already installed packages)
parent
500f16e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
epm-sh-altlinux
bin/epm-sh-altlinux
+8
-0
epm-upgrade
bin/epm-upgrade
+20
-0
No files found.
bin/epm-sh-altlinux
View file @
4e673a9c
...
@@ -122,3 +122,11 @@ tasknumber()
...
@@ -122,3 +122,11 @@ tasknumber()
isnumber
"
$num
"
&&
echo
"
$*
"
isnumber
"
$num
"
&&
echo
"
$*
"
}
}
# use assure apt-repo before
get_task_packages
()
{
local
tn
for
tn
in
$(
tasknumber
"
$@
"
)
;
do
docmd apt-repo list task
"
$tn
"
done
}
bin/epm-upgrade
View file @
4e673a9c
...
@@ -30,6 +30,25 @@ epm_upgrade()
...
@@ -30,6 +30,25 @@ epm_upgrade()
update_repo_if_needed
update_repo_if_needed
warmup_bases
warmup_bases
if
[
"
$DISTRNAME
"
=
"ALTLinux"
]
;
then
load_helper epm-sh-altlinux
if
tasknumber
"
$pkg_names
"
>
/dev/null
;
then
load_helper epm-addrepo
load_helper epm-removerepo
load_helper epm-Install
epm_addrepo
local
installlist
=
"
$(
get_task_packages
$pkg_names
)
"
[
-n
"
$verbose
"
]
&&
info
"Packages from task(s):
$installlist
"
# install only installed packages (simulate upgrade packages)
installlist
=
"
$(
estrlist exclude
"
$(
echo
"
$installlist
"
|
(
skip_installed
=
'yes'
filter_out_installed_packages
)
)"
"
$installlist
"
)
"
[
-n
"
$verbose
"
]
&&
info
"Packages to upgrade:
$installlist
"
(
pkg_names
=
"
$installlist
"
epm_Install
)
epm_removerepo
return
fi
fi
info
"Running command for upgrade packages"
info
"Running command for upgrade packages"
case
$PMTYPE
in
case
$PMTYPE
in
...
@@ -113,4 +132,5 @@ epm_upgrade()
...
@@ -113,4 +132,5 @@ epm_upgrade()
esac
esac
sudocmd
$CMD
$pkg_filenames
sudocmd
$CMD
$pkg_filenames
}
}
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