forked from ungleich-public/cdist
[__package_upgrade_all] Add new --apt-with-new-pkgs argument
This commit is contained in:
parent
fc6ddac718
commit
6e3ad11ea0
3 changed files with 14 additions and 1 deletions
|
@ -28,6 +28,10 @@ apt_clean="$__object/parameter/apt-clean"
|
||||||
|
|
||||||
apt_dist_upgrade="$__object/parameter/apt-dist-upgrade"
|
apt_dist_upgrade="$__object/parameter/apt-dist-upgrade"
|
||||||
|
|
||||||
|
if [ -f "$__object/parameter/apt-with-new-pkgs" ]; then
|
||||||
|
apt_with_new_pkgs="--with-new-pkgs"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -f "$type" ]; then
|
if [ -f "$type" ]; then
|
||||||
type="$(cat "$type")"
|
type="$(cat "$type")"
|
||||||
else
|
else
|
||||||
|
@ -54,7 +58,7 @@ case "$type" in
|
||||||
apt)
|
apt)
|
||||||
if [ -f "$apt_dist_upgrade" ]
|
if [ -f "$apt_dist_upgrade" ]
|
||||||
then echo "$aptget dist-upgrade"
|
then echo "$aptget dist-upgrade"
|
||||||
else echo "$aptget upgrade"
|
else echo "$aptget $apt_with_new_pkgs upgrade"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$apt_clean" ]
|
if [ -f "$apt_clean" ]
|
||||||
|
|
|
@ -33,6 +33,14 @@ BOOLEAN PARAMETERS
|
||||||
apt-dist-upgrade
|
apt-dist-upgrade
|
||||||
Do dist-upgrade instead of upgrade.
|
Do dist-upgrade instead of upgrade.
|
||||||
|
|
||||||
|
apt-with-new-pkg
|
||||||
|
Allow installing new packages when used in conjunction with
|
||||||
|
upgrade. This is useful if the update of an installed package
|
||||||
|
requires new dependencies to be installed. Instead of holding the
|
||||||
|
package back upgrade will upgrade the package and install the new
|
||||||
|
dependencies. Note that upgrade with this option will never remove
|
||||||
|
packages, only allow adding new ones.
|
||||||
|
|
||||||
apt-clean
|
apt-clean
|
||||||
Clean out the local repository of retrieved package files.
|
Clean out the local repository of retrieved package files.
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
apt-clean
|
apt-clean
|
||||||
apt-dist-upgrade
|
apt-dist-upgrade
|
||||||
|
apt-with-new-pkgs
|
||||||
|
|
Loading…
Reference in a new issue