From: Valentin Vidic Date: Tue, 5 Feb 2008 10:08:18 +0000 (+0100) Subject: Disable apt-listchanges during the upgrade. X-Git-Tag: debian/4.0.1~52 X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=commitdiff_plain;h=4d79188e7e890bee52fc671a426c60642ba4422f;p=carnet-upgrade.git Disable apt-listchanges during the upgrade. --- diff --git a/src/actions/main.queue b/src/actions/main.queue index aeede28..16a6b5f 100644 --- a/src/actions/main.queue +++ b/src/actions/main.queue @@ -4,6 +4,7 @@ true first_warning true check_upgrade true remove_bloat +true disable_apt_listchanges true comment_force_overwrite # ruzna opcija za dpkg # ovo bi trebao biti zadnji post_upgrade - spremi popis # instaliranih servisa za koje cemo na kraju provjeriti da li rade. diff --git a/src/functions.sh b/src/functions.sh index 7474d5e..d3bd0de 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -479,6 +479,16 @@ restore_configs () { fi } +# temporary remove listchanges packages to reduce clutter during upgrade +disable_apt_listchanges () { + for p in apt-listchanges apt-listchanges-cn; do + if pkg $p; then + pkgrm $p + post_upgrade pkgadd $p + fi + done +} + # make a silent installation of carnet and srce keyrings install_keyrings () { pkgadd carnet-keyring srce-keyring