Merge pull request #494 from 4nd3r/master

__package_upgrade_all shouldn't dist-upgrade by default. also add clean.
This commit is contained in:
Darko Poljak 2016-11-06 11:07:17 +01:00 committed by GitHub
commit c25eca6f95
3 changed files with 24 additions and 2 deletions

View file

@ -24,6 +24,10 @@
type="$__object/parameter/type" type="$__object/parameter/type"
apt_clean="$__object/parameter/apt-clean"
apt_dist_upgrade="$__object/parameter/apt-dist-upgrade"
if [ -f "$type" ]; then if [ -f "$type" ]; then
type="$(cat "$type")" type="$(cat "$type")"
else else
@ -48,8 +52,15 @@ case "$type" in
echo "yum --quiet clean all" echo "yum --quiet clean all"
;; ;;
apt) apt)
echo $aptget dist-upgrade if [ -f "$apt_dist_upgrade" ]
echo "apt-get --quiet autoclean" then echo $aptget dist-upgrade
else echo $aptget upgrade
fi
if [ -f "$apt_clean" ]
then echo "apt-get --quiet clean"
else echo "apt-get --quiet autoclean"
fi
;; ;;
pacman) pacman)
echo "pacman --noprogressbar --noconfirm --sync --sysupgrade" echo "pacman --noprogressbar --noconfirm --sync --sysupgrade"

View file

@ -28,6 +28,15 @@ type
* pacman for Arch Linux * pacman for Arch Linux
BOOLEAN PARAMETERS
------------------
apt-dist-upgrade
Do dist-upgrade instead of upgrade.
apt-clean
Clean out the local repository of retrieved package files.
EXAMPLES EXAMPLES
-------- --------

View file

@ -0,0 +1,2 @@
apt-clean
apt-dist-upgrade