Browse Source

[__package_upgrade_all] Add new --apt-with-new-pkgs argument

master
Evilham 1 month ago
parent
commit
6e3ad11ea0
  1. 6
      cdist/conf/type/__package_upgrade_all/gencode-remote
  2. 8
      cdist/conf/type/__package_upgrade_all/man.rst
  3. 1
      cdist/conf/type/__package_upgrade_all/parameter/boolean

6
cdist/conf/type/__package_upgrade_all/gencode-remote

@ -28,6 +28,10 @@ apt_clean="$__object/parameter/apt-clean"
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
type="$(cat "$type")"
else
@ -54,7 +58,7 @@ case "$type" in
apt)
if [ -f "$apt_dist_upgrade" ]
then echo "$aptget dist-upgrade"
else echo "$aptget upgrade"
else echo "$aptget $apt_with_new_pkgs upgrade"
fi
if [ -f "$apt_clean" ]

8
cdist/conf/type/__package_upgrade_all/man.rst

@ -33,6 +33,14 @@ BOOLEAN PARAMETERS
apt-dist-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
Clean out the local repository of retrieved package files.

1
cdist/conf/type/__package_upgrade_all/parameter/boolean

@ -1,2 +1,3 @@
apt-clean
apt-dist-upgrade
apt-with-new-pkgs

Loading…
Cancel
Save