upgrade-system-1.6.3.4/0000755000000000000000000000000011765347434011540 5ustar upgrade-system-1.6.3.4/upgrade-system.conf0000644000000000000000000000037012012103236015330 0ustar ### /etc/upgrade-system.conf(5) variables for upgrade-system(8) ### # See apt-get(8) CLEANOPTS="clean" # See apt-get(8) UPGRADEOPTS="--fix-broken --purge --show-upgraded dist-upgrade" # See deborphan(1) ORPHANOPTS="--guess-all --libdevel" #EOF upgrade-system-1.6.3.4/upgrade-system0000755000000000000000000002364112130517223014423 0ustar #!/bin/sh # coding: utf-8 # ## UPGRADE-SYSTEM -- Command for upgrading and sanitizing a Debian system. # ## HOMEPAGE # http://q-funk.iki.fi/debian # ## AUTHORS # Copyright © 2004-2012 Martin-Éric Racine # Copyright © 2004,2012 Christoph Schindler # Copyright © 2003-2004 Martin Zdrahal # ## LICENSE # GPLv2+: GNU GPL version 2 or later # ## DEPENDENCIES #D:apt:apt-get (main/important) (>= 0.6.45: autoclean)(>= 0.7.0: --fix-policy). #S:command-not-found:update-command-not-found (main/optional). # coreutils:cut,rm,sort,tty (main/required). #D:deborphan:deborphan (universe/optional) (>= 1.7: --libdevel). #R:debsums:debsums (universe/optional). # dpkg:dpkg,dpkg-query (main/required). # grep:grep (main/required). # mawk:awk (main/required). # ncurses-bin:tput (main/required). # util-linux:setterm (main/required). # ## CHANGES # 2012-03-10 Make all APT checks quiet. v1.6 [MER] # 2012-03-06 Add autoremove to orphan purge. v1.5 [CS] # 2011-12-21 Add APT --fix-policy install. v1.5 [MER] # 2011-03-03 Add debsum reinstallation. v1.4 [MER] # 2010-05-02 Add crude prompt colorization. v1.3 [MER] # 2009-08-08 Add obsolete config purge. v1.2 [MER] # 2009-06-21 Add uninstalled packages purge. v1.1 [MER] # 2005-12-04 Use APT instead of DPKG purge. v1.0 [MER] # 2005-05-29 Add non-interactive detection. v0.9 [MER] # 2004-09-04 Make orphan purge recursive. v0.8 [CS] # 2004-08-19 Add APT exit code check. v0.7 [MER] # 2004-06-07 Add CLEANOPTS to config. v0.6 [MER] # 2004-03-31 Create config file. v0.5 [MER] # 2004-03-24 Add -y to dist-upgrade. v0.4 [MER] # 2004-03-15 Add --guess-doc --libdevel. v0.3 [MER] # 2004-03-09 Rename to upgrade-system. v0.2 [MER] # 2004-02-16 Initial release. v0.1 [MZ] ## ######################################### ### INSERT EVENTUAL LOCALISATION HERE ### ######################################### LANGUAGE=en LC_ALL=C.UTF-8 TEXTDOMAIN=upgrade-system export LANGUAGE LC_ALL TEXTDOMAIN ########################################################### ### SOURCE CONFIGURED OPTIONS AND SET FALLBACK DEFAULTS ### ########################################################### if [ -f /etc/upgrade-system.conf ] then . /etc/upgrade-system.conf fi : ${CLEANOPTS:="clean"} : ${UPGRADEOPTS:="--fix-broken --purge --show-upgraded dist-upgrade"} : ${ORPHANOPTS:="--guess-all --libdevel"} : ${FLAUSCH:=""} ######################## ### SET SHELL COLORS ### ######################## BOLD=$(setterm -bold on) RESET=$(setterm -default) ##DEPENDS: util-linux (main/required). if [ -x /usr/bin/tput ] && tput setaf 1 >/dev/null 2>&1; then RED=${BOLD}$(tput setaf 1) GREEN=${BOLD}$(tput setaf 2) YELLOW=${BOLD}$(tput setaf 3) else RED=${BOLD} GREEN=${BOLD} YELLOW=${BOLD} fi ##DEPENDS: ncurses-bin (main/required). ############################ ### SET DEBCONF FRONTEND ### ############################ tty --silent ##DEPENDS: coreutils (main/required). if [ $? != 0 ] then echo "${GREEN}N: Non-Interactive upgrade selected.${RESET}" NOTTY="--option DPkg::Options::=--force-confdef --quiet --yes" DEBIAN_FRONTEND="noninteractive" export DEBIAN_FRONTEND fi ############################ ### UPDATE PACKAGE LISTS ### ############################ echo "${BOLD}1) Updating package lists:${RESET}" apt-get $NOTTY --quiet --quiet update ##DEPENDS: apt (main/important). if [ $? != 0 ] then echo "${RED}E: Some package lists could not be updated.${RESET}" exit 1 else echo "I: Package lists updated." fi ######################## ### UPGRADE PACKAGES ### ######################## echo "${BOLD}2) Checking for upgradable packages:${RESET}" UPGRADABLE=$(apt-get $NOTTY --simulate $UPGRADEOPTS | awk '/^Inst / {print $2}') ##DEPENDS: apt (main/important), mawk (main/required). case $UPGRADABLE in "") echo "I: No upgradable package to install." break ;; *) echo "I: Installing upgradable packages..." apt-get $NOTTY $UPGRADEOPTS ##DEPENDS: apt (main/important). if [ $? != 0 ] then echo "${RED}E: Some packages could not be upgraded.${RESET}" exit 2 fi ;; esac ############################# ### PURGE ORPHAN PACKAGES ### ############################# echo "${BOLD}3) Checking for orphan packages:${RESET}" REMOVABLE=$(apt-get $NOTTY --purge --simulate autoremove | awk '/^Purg / {print $2}') ##DEPENDS: apt (main/important), mawk (main/required). # deborphan kludge (Debian #672829 and Ubuntu LP #940374). while [ "${DEBORPHANS-undef}" != "$DEBORPHANS_OLD" ] do DEBORPHANS_OLD=$DEBORPHANS DEBORPHANS=$(deborphan $ORPHANOPTS) ##DEPENDS: deborphan (universe/optional). ORPHANS=${REMOVABLE:+$REMOVABLE }$DEBORPHANS REMOVABLE="" case $ORPHANS in "") echo "I: No orphan package to purge." break ;; *) echo "I: Purging orphan packages..." apt-get $NOTTY --purge autoremove $ORPHANS ##DEPENDS: apt (main/important). ### Escape dangerous purges automatically. if [ $? != 0 ] then break fi ;; esac done #################################################################### ### FLAUSCH'S SUPER CRUFT LIQUIDATOR -- USE WITH EXTREME CAUTION ### #################################################################### # Enabled whenever the FLAUSCH environment variable is set anywhere. case $FLAUSCH in "") break ;; *) echo "${YELLOW}W: FLAUSCH OPTION ENABLED. USE WITH EXTREME CAUTION!${RESET}" ############################################ ### FIX DEPENDENCIES TO MATCH APT POLICY ### ############################################ echo "${BOLD}A) Checking for missing dependencies:${RESET}" FIXABLE=$(apt-get $NOTTY --auto-remove --fix-policy --purge --simulate install | awk '/^Inst / {print $2}') ##DEPENDS: apt (main/important), mawk (main/required). case $FIXABLE in "") echo "I: No missing dependency to install." break ;; *) echo "I: Installing missing dependencies..." apt-get $NOTTY --auto-remove --fix-policy --purge --option Debug::pkgDepCache::AutoInstall=true install ##DEPENDS: apt (main/important). if [ $? != 0 ] then echo "${RED}E: Some dependencies could not be installed.${RESET}" exit 3 fi ;; esac ################################## ### PURGE UNINSTALLED PACKAGES ### ################################## echo "${BOLD}B) Checking for uninstalled packages:${RESET}" while true do ORPHANS=$(dpkg-query --list | grep '^rc' | awk '{print $2}') ##DEPENDS: dpkg (main/required), grep (main/required), mawk (main/required). case $ORPHANS in "") echo "I: No uninstalled package to purge." break ;; *) echo "I: Purging uninstalled packages..." dpkg --purge $ORPHANS ##DEPENDS: dpkg (main/required). ### Escape dangerous purges automatically. if [ $? != 0 ] then break fi ;; esac done ################################# ### REMOVING OBSOLETE CONFIGS ### ################################# echo "${BOLD}C) Checking for obsolete configurations:${RESET}" ORPHANS=$(dpkg-query --show --showformat='${Conffiles}\n' | grep obsolete | awk '{print $1}') ##DEPENDS: dpkg (main/required), grep (main/required), mawk (main/required). case $ORPHANS in "") echo "I: No obsolete configuration to purge." break ;; *) echo "I: Removing obsolete configurations..." unique(){ dpkg-query --search $ORPHANS | cut --delimiter : --fields 1 | uniq ##DEPENDS: dpkg (main/required), coreutils (main/required), coreutils (main/required). } UNIQUE=$(unique) NUMBER=$(unique | wc --lines) echo "I: Number of packages affected: $NUMBER." dpkg-query --search $ORPHANS ##DEPENDS: dpkg (main/required). echo "${YELLOW}W: BEWARE OF FALSE POSITIVES! DELETE WITH EXTREME CAUTION!${RESET}" rm --interactive $ORPHANS ##DEPENDS: coreutils (main/required). apt-get $NOTTY --reinstall install ${UNIQUE} ##DEPENDS: apt (main/important). ### Escape dangerous purges automatically. if [ $? != 0 ] then break fi ;; esac ############################################### ### REINSTALL PACKAGES WITH MISSING DEBSUMS ### ############################################### if [ -x /usr/bin/debsums ] then echo "${BOLD}D) Checking for packages with missing debsums:${RESET}" while true do ORPHANS=$(dpkg-query --search 2>/dev/null $(debsums --list-missing --silent) | cut --delimiter : --fields 1 | uniq) ##DEPENDS: dpkg (main/required), debsums (universe/optional), coreutils (main/required). case $ORPHANS in "") echo "I: No package with missing debsums to reinstall." break ;; *) echo "I: Reinstalling packages with missing debsums..." apt-get $NOTTY --reinstall install $ORPHANS ##DEPENDS: apt (main/important). ### Escape dangerous purges automatically. if [ $? != 0 ] then break fi ;; esac done fi ###################################################### ### UPDATE APT-FILE AND COMMAND-NOT-FOUND DATABASE ### ###################################################### if [ -x /usr/sbin/update-command-not-found ] then echo "${BOLD}E) Updating apt-file and command-not-found databases:${RESET}" update-command-not-found 1>/dev/null ##DEPENDS: command-not-found (main/optional). if [ $? != 0 ] then echo "${RED}E: The apt-file and command-not-found databases could not be updated.${RESET}" exit 4 else echo "I: apt-file and command-not-found databases updated." fi fi #################################################### echo "${GREEN}N: FLAUSCH LOOP COMPLETED.${RESET}" esac #################################################################### ####################### ### CLEAN APT CACHE ### ####################### echo "${BOLD}4) Cleaning package cache.${RESET}" apt-get $NOTTY $CLEANOPTS ##DEPENDS: apt (main/important). echo "I: System upgrade completed." #EOF upgrade-system-1.6.3.4/upgrade-system.80000644000000000000000000000246512012124332014561 0ustar .TH "UPGRADE\-SYSTEM" "8" "2004-02-16" "http://q-funk.iki.fi" "Debian GNU/Linux" .SH "NAME" upgrade\-system \- Command for upgrading and sanitizing a Debian system .SH "SYNOPSIS" .B upgrade\-system .SH "DESCRIPTION" .BR upgrade\-system is an APT front\-end that simplifies regular upgrading of Debian systems, only requiring an administrator's intervention whenever updated packages necessitate the configuration of new features. .PP The command sequentially performs the following operations: .IP \(bu 3 Synchronize the list of available Debian packages. .IP \(bu 3 Upgrade all installed packages to their newest versions. .IP \(bu 3 Recursively uninstall all obsolete package dependencies. .IP \(bu 3 Clean retrieved archives off the APT cache. .SH ENVIRONMENT Setting the .B FLAUSCH environment variable enables useful advanced system sanitization features. See .BR upgrade\-system.conf (5) for more details. .SH "FILES" .TP .IR /etc/upgrade\-system.conf .SH "AUTHORS" Copyright \(co 2004-2012 Martin\-\['E]ric Racine .br Copyright \(co 2004,2012 Christoph Schindler .br Copyright \(co 2003-2004 Martin Zdrahal .SH "LICENSE" GPLv2+: GNU GPL version 2 or later . .SH "SEE ALSO" .BR apt (8), .BR upgrade\-system.conf (5). upgrade-system-1.6.3.4/upgrade-system.conf.50000644000000000000000000000713212012132455015503 0ustar .TH "UPGRADE\-SYSTEM.CONF" "5" "2004-03-31" "http://q-funk.iki.fi" "Debian GNU/Linux" .SH "NAME" upgrade\-system.conf \- Configuration file for .BR upgrade\-system (8) .SH "DESCRIPTION" .BR upgrade\-system.conf is the configuration file for the .BR upgrade\-system (8) Debian administration utility. This file specifies command options used for calling .BR apt\-get (8) and .BR deborphan (1) within .BR upgrade\-system (8). .PP Lines starting with a hash mark ("#") and empty lines are ignored. .SH "ENVIRONMENT" The configuration file may contain any of these environment variables: .SS CLEANOPTS This variable selects which one of .BR autoclean or .BR clean to execute as the .BR apt\-get (8) cleaning command. For example: .PP CLEANOPTS="clean" .PP Consult the .BR apt\-get (8) manual page to check which options are available for any particular APT version, before setting this variable. .SS UPGRADEOPTS This variable specifies which one of .BR dist-upgrade or .BR upgrade to execute as the .BR apt\-get (8) upgrade command and the command options. For example: .PP UPGRADEOPTS="\-\-fix-broken \-\-purge \-\-show-upgraded dist-upgrade" .PP Consult the .BR apt\-get (8) manual page to check which options are available for any particular APT version, before setting this variable. .SS ORPHANOPTS This variable specifies .BR deborphan (1) command options. For example: .PP ORPHANOPTS="\-\-guess\-all \-\-libdevel" .PP One should read the .BR deborphan (1) manual page to check which options are available for any particular version, before setting this variable. .SS FLAUSCH Setting this variable enables various extremely pedantic purge options. .PP This variable has no default value. .PP This feature is totally experimental; usage is strongly discouraged and should only be attempted by truly experienced Debian administrators. It can be used to sanitize a Debian system after a distribution upgrade or to detect packages that don't conform to the Debian Policy. Setting the variable as a command line environment, only when needed, is considered a safer approach than adding it to .BR upgrade\-system.conf variables. .PP .B sudo FLAUSCH=jawohl upgrade\-system .SH "FILES" Because .BR upgrade\-system is an APT front-end, all precautions relating to APT configuration should be observed. Special attention is required to: .TP .IR /etc/apt/preferences .PP To prevent untested packages from overwriting stable ones, setting this combination of APT preferences is recommended: .PP .RS .nf Package: * Pin: release a=stable Pin\-Priority: 990 Package: * Pin: release a=testing Pin\-Priority: 500 Package: * Pin: release a=unstable Pin\-Priority: 100 Package: * Pin: release a=experimental Pin\-Priority: 1 .fi .RE .PP This enforces a priority to packages from Stable, yet still allows ones from Testing, Unstable or Experimental to get installed via appropriate .BR apt\-get (8) options to override the default release. .SH "NOTES" In the absence of a configuration file, .BR upgrade\-system (8) will take the above environment variable examples as fallback default values. .SH "BUGS" Certain combinations of .BR deborphan (1) options purge a dangerous quantity of packages, potentially leaving a system in a severely crippled state. .SH "AUTHORS" Copyright \(co 2004-2012 Martin\-\['E]ric Racine .br Copyright \(co 2004,2012 Christoph Schindler .br Copyright \(co 2003-2004 Martin Zdrahal .SH "LICENSE" GPLv2+: GNU GPL version 2 or later . .SH "SEE ALSO" .BR apt\-get (8), .BR apt_preferences (5), .BR deborphan (1), .BR upgrade\-system (8). upgrade-system-1.6.3.4/debian/0000755000000000000000000000000012147113233012741 5ustar upgrade-system-1.6.3.4/debian/compat0000644000000000000000000000000211533664066014154 0ustar 7 upgrade-system-1.6.3.4/debian/control0000644000000000000000000000200612147112630014342 0ustar Source: upgrade-system Section: admin Priority: optional Homepage: http://q-funk.iki.fi/debian Maintainer: Martin-Éric Racine Build-Depends: debhelper (>= 8.1.0~) Standards-Version: 3.9.3 Package: upgrade-system Architecture: all Pre-Depends: ${misc:Pre-Depends} Depends: apt (>= 0.7.0), deborphan (>= 1.7), ${misc:Depends} Recommends: apt-show-versions, debsums Suggests: command-not-found Description: command for upgrading and sanitizing a Debian system Upgrade-system offers a convenient way to keep a Debian system up-to-date, yet free from accumulated cruft such as obsolete libraries. . It is particularly useful on systems that mix packages from different releases (stable/testing/unstable) and on desktop systems where packages are frequently installed or removed according to evolving user tastes. . By default, it is configured to purge all packages that are not listed as another package's dependency. Less drastic settings are possible by editing /etc/upgrade-system.conf(5). upgrade-system-1.6.3.4/debian/source_upgrade-system.py0000644000000000000000000000160112147113070017641 0ustar # -*- Mode: Python; indent-tabs-mode: nil; tab-width: 4; coding: utf-8 -*- ''' Apport package hook for upgrade-system (originally for update-manager) Copyright: © 2011 Brian Murray ''' import re from apport.hookutils import ( attach_gsettings_package, attach_root_command_outputs, attach_file_if_exists, recent_syslog) def add_info(report, ui): try: attach_gsettings_package(report, 'upgrade-system') except: pass attach_file_if_exists(report, '/var/log/apt/history.log', 'DpkgHistoryLog.txt') attach_file_if_exists(report, '/var/log/apt/term.log', 'DpkgTerminalLog.txt') attach_root_command_outputs( report, {'CurrentDmesg.txt': 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'}) report["Aptdaemon"] = recent_syslog(re.compile("AptDaemon")) upgrade-system-1.6.3.4/debian/upgrade-system.install0000644000000000000000000000013512147111211017273 0ustar upgrade-system.conf etc upgrade-system usr/sbin debian/*.py usr/share/apport/package-hooks upgrade-system-1.6.3.4/debian/rules0000755000000000000000000000036511774021656014041 0ustar #!/usr/bin/make -f # # debhelper-7 [debian/rules] for upgrade-system # # COPYRIGHT © 2004-2012 Martin-Éric Racine # # LICENSE # GPLv2+: GNU GPL version 2 or later # %: dh $@ #EOF upgrade-system-1.6.3.4/debian/source/0000755000000000000000000000000011354021475014246 5ustar upgrade-system-1.6.3.4/debian/source/format0000644000000000000000000000001511631641172015455 0ustar 3.0 (native) upgrade-system-1.6.3.4/debian/upgrade-system.manpages0000644000000000000000000000004710032461750017431 0ustar upgrade-system.conf.5 upgrade-system.8 upgrade-system-1.6.3.4/debian/changelog0000644000000000000000000006312712147112602014623 0ustar upgrade-system (1.6.3.4) unstable; urgency=low * Purging "update-manager-core" references: + Merged source_update-manager.py from update-manager-core 0.186 at Ubuntu. + Updated debian/copyright to add relevant copyright info. - debian/control: Suggests: update-manager-core + debian/upgrade-system.install: debian/*.py = Renamed to source_upgrade-system.py = Changed (c) to © in source code - debian/upgrade-system.links -- Martin-Éric Racine Wed, 22 May 2013 12:44:59 +0300 upgrade-system (1.6.3.3) unstable; urgency=low * upgrade-system: LC_ALL=C.UTF-8, since this is provided since libc 2.13 by standard. LANGUAGE=en, just to ensure that commands will use that language. -- Martin-Éric Racine Mon, 08 Apr 2013 13:48:23 +0300 upgrade-system (1.6.3.2) unstable; urgency=low * upgrade-system: LC_ALL="en_US.UTF-8" to give a fair chance to UTF-8 messages. -- Martin-Éric Racine Tue, 19 Mar 2013 17:33:09 +0200 upgrade-system (1.6.3.1) unstable; urgency=low * upgrade-system: LANGUAGE="en:C" to give a fair chance to UTF-8 messages. -- Martin-Éric Racine Tue, 12 Mar 2013 16:11:12 +0200 upgrade-system (1.6.3.0) unstable; urgency=low * FLAUSCH: + Execute 'update-command-not-found' but only on Debian derivatives. Ubuntu instead Depends on a pre-compiled command-not-found-data. -- Martin-Éric Racine Fri, 31 Aug 2012 09:27:16 +0300 upgrade-system (1.6.2.3) unstable; urgency=low * upgrade-system: + Guard against missing configuration file by setting fallback defaults. * upgrade-system.conf.5: = Updated the sample configuration variables to match fallback defaults. -- Martin-Éric Racine Mon, 13 Aug 2012 08:40:35 +0300 upgrade-system (1.6.2.2) unstable; urgency=low * debian/copyright: - Simplified the content. This is a native Debian package, so there is zero justification for keeping a separate section for debian/* files or for an upstream source URL in the header. -- Martin-Éric Racine Wed, 04 Jul 2012 14:48:21 +0300 upgrade-system (1.6.2.1) unstable; urgency=low * upgrade-system: = Consolidated global shell variable exports into one line. * debian/upgrade-system.cron.daily: = Consolidated global shell variable exports into one line. = Added "apt-get --quiet --quiet autoclean" statement. = Converted every command to use --long-options. -- Martin-Éric Racine Sun, 01 Jul 2012 12:55:08 +0300 upgrade-system (1.6.2.0) unstable; urgency=low * Merged a kludge to escape 'deborphan' loops whenever running on a multiarch host without multiarch-aware deborphan. Such a mismatch between apt/dpkg/deborphan features only ever happened in Ubuntu/ Precise, but the deborphan maintainer nonetheless feels it should be safeguarded against just in case (LP: #940374). * FLAUSCH: removed 'deborphan --find-config' loop; our loop to find partially-removed packages already does this using 'dpkg-query'. * upgrade-system: converted every command to use --long-options. -- Martin-Éric Racine Mon, 11 Jun 2012 16:28:44 +0300 upgrade-system (1.6.1.0) unstable; urgency=low * FLAUSCH: --fix-policy: added "-o Debug::pkgDepCache::AutoInstall=true". -- Martin-Éric Racine Sat, 31 Mar 2012 03:57:54 +0300 upgrade-system (1.6.0.0) unstable; urgency=low * The "Upgrade-System as it was intended all along" release: + Made all APT checks quiet. + Pretty-printed the Information and Notification messages to match. + Removed outdated cruft from the source code's comments. * upgrade-system upgrade-system.8 upgrade-system.conf.5 debian/copyright: + Updated copyright info to emphasize Christoph Schindler's contribution to this particular release. -- Martin-Éric Racine Sun, 11 Mar 2012 10:33:31 +0200 upgrade-system (1.5.4.0) unstable; urgency=low * Foolproofed orphaning for a case of both autoremove and deborphan non-empty. -- Martin-Éric Racine Fri, 09 Mar 2012 17:26:42 +0200 upgrade-system (1.5.3.0) unstable; urgency=low * Corrected "apt-get --purge --simulate autoremove" regex Remv to Purg. -- Martin-Éric Racine Fri, 09 Mar 2012 13:03:10 +0200 upgrade-system (1.5.2.0) unstable; urgency=low * Added $(apt-get autoremove) packages' detection to the deborphan loop. * Whitespace cleanup. -- Martin-Éric Racine Tue, 06 Mar 2012 21:40:46 +0200 upgrade-system (1.5.1.1) unstable; urgency=low * Bumped Standards-Version to 3.9.3 (no change required). * debian/copyright: = Migrated to DEP-5 format. * debian/upgrade-system.[postinst|postrm|preinst|prerm]: - Deleted. * debian/upgrade-system.maintscript: + Added. Replaces the same four individual maintainer script snippets. + Build-Depends: debhelper (>= 8.1.0~) -- Martin-Éric Racine Fri, 24 Feb 2012 12:15:43 +0200 upgrade-system (1.5.1.0) unstable; urgency=low * Added the APT --purge option to the --fix-policy FLAUSCH loop. -- Martin-Éric Racine Mon, 16 Jan 2012 05:10:39 +0200 upgrade-system (1.5.0.0) unstable; urgency=low * Added a FLAUSCH loop to fix dependencies using APT's --fix-policy option. + Depends: apt (>= 0.7.0). * Updated my copyright year in the source tarball and Debian packaging. * upgrade-system.8 upgrade-system.conf.5: + Fixed the Copyright mark and E-aigu to correctly display. + Updated the content to reflect current features. * debian/control debian/copyright upgrade-system upgrade-system.8: + Updated the short package description. * debian/NEWS: - Deleted. Migrated the explanation about defaults to long description. * debian/examples etc_apt_preferences: - Deleted. upgrade-system.conf(5) already contains the information. * debian/install debian/manpages: = Renamed to debian/upgrade-system.install debian/upgrade-system.manpages * apt-update: = Renamed to debian/upgrade-system.cron.daily + Pre-Depends: dpkg (>= 1.15.7.2) dpkg-maintscript-helper mv_conffile * debian/postrm debian/prerm: - Deleted APT preferences shuffling. Not needed since version 0.6.5. = Renamed to debian/upgrade-system.postrm debian/upgrade-system.prerm * debian/upgrade-system.postinst debian/upgrade-system.preinst: + Created. * debian/upgrade-system.[postinst|postrm|preinst|prerm]: + Added dpkg-maintscript-helper mv_conffile for the old cron script. * debian/ubuntu/source_upgrade-system.py: - Deleted. Leverage source_update-manager.py package hooks instead. * debian/upgrade-system.links: + Created. Link source_upgrade-system.py to source_update-manager.py + Suggests: update-manager-core -- Martin-Éric Racine Thu, 05 Jan 2012 21:03:57 +0200 upgrade-system (1.4.2.1) unstable; urgency=low * Removed Suggests:menu since we haven't executed update-menus in ages; ditto for reference to update-menus(1) in upgrade-system(8) (Closes: #647384). -- Martin-Éric Racine Wed, 02 Nov 2011 10:54:43 +0200 upgrade-system (1.4.2.0) unstable; urgency=low * Improved checking of the terminal's color capabilities. -- Martin-Éric Racine Wed, 07 Sep 2011 13:36:09 +0300 upgrade-system (1.4.1.0) unstable; urgency=low * Bumped Standards-Version to 3.9.2 (no change required). * Made the FLAUSCH debsum loop conditional on debsum being installed. * Demoted debsum to Recommends. -- Martin-Éric Racine Tue, 05 Jul 2011 13:50:07 +0300 upgrade-system (1.4.0.0) unstable; urgency=low * The "Oh, the times, they are changing!" release. * Migrated to debhelper-7 build system: + Simplified debian/rules to use a single dh command. + Bumped the Build-Depends on debhelper to (>= 7). + Removed the Build-Depends on CDBS. * Migrated to source format 3.0 (native). * Added a FLAUSCH loop that reinstalls packages with missing debsums. + Depends: debsums. * Updated my copyright and e-mail in source tarball and Debian packaging. -- Martin-Éric Racine Thu, 03 Mar 2011 12:57:38 +0200 upgrade-system (1.3.0.1) unstable; urgency=low * Migrated upgrade-system to use --long APT options. * Added --purge to the existing APT upgrade options. * Removed a hard-coded APT -u option from the script. * Bumped Standards-Version to 3.9.1 (no change required). -- Martin-Éric Racine Sat, 16 Oct 2010 12:34:24 +0300 upgrade-system (1.3.0.0) unstable; urgency=low * Relocated cache cleaning to ensure it runs after FLAUSCH steps. * Changed the numbering of FLAUSCH operations to capital letters. * Implemented crude colorization of upgrade-system's own prompts. * Moved all notifications to only appear in non-interactive mode. * Documented dependencies on non-shell commands within the script. * Updated the short package description to reflect its authorship. * Fixed the package count information in the obsolete config loop. -- Martin-Éric Racine Sun, 23 May 2010 21:42:22 +0300 upgrade-system (1.2.0.3) unstable; urgency=low * Added a trailing blank line to debian/NEWS, as suggested by Lintian. * Precised the exact path to the GPL-2 text, as suggested by Lintian. -- Martin-Éric Racine Tue, 06 Apr 2010 16:57:02 +0300 upgrade-system (1.2.0.2) unstable; urgency=low * Bumped Standards-Version to 3.8.4 (no change required). * Touched debian/copyright_hints and responded to the hints. * Created debian/source/format. -- Martin-Éric Racine Mon, 29 Mar 2010 07:46:29 +0300 upgrade-system (1.2.0.1) unstable; urgency=low * Stripped trailing whitespace from the source code. * Bumped Standards-Version to 3.8.3 (no change required). -- Martin-Éric Racine Sun, 15 Nov 2009 23:50:16 +0000 upgrade-system (1.2.0.0) unstable; urgency=low * Brushed up man page wording and added author Christoph Schindler. * Added a loop that implements a purge for obsolete configurations. Thanks to Tollef Fog Heen for tips on implementing this feature! * Moved the purge for uninstalled packages to the FLAUSCH loop. + This pedantic purge is only ever needed after a dist-upgrade and moving it to the FLAUSCH loop makes daily operation much faster. + The FLAUSCH option is thereby required to enable these purges: - Uninstalled packages. - Orphan configurations. - Obsolete configurations. * Added BOLD ALL-CAPS emphasis to some warnings in the FLAUSCH loop. -- Martin-Éric Racine Sat, 08 Aug 2009 15:04:19 +0300 upgrade-system (1.1.7.1) unstable; urgency=low * Corrected experimental Pin-Priority in upgrade-system.conf man page. -- Martin-Éric Racine Fri, 07 Aug 2009 14:12:34 +0300 upgrade-system (1.1.7.0) unstable; urgency=low * Significantly augmented the efficiency of the autoremove loop. -- Martin-Éric Racine Thu, 06 Aug 2009 03:11:26 +0300 upgrade-system (1.1.6.0) unstable; urgency=low * Simplified several message strings. -- Martin-Éric Racine Thu, 30 Jul 2009 12:50:48 +0300 upgrade-system (1.1.5.0) unstable; urgency=low * Added an Apport hook. * Updated all references to http://funkyware.konflux.at in man pages to the current http://q-funk.iki.fi homepage URL. -- Martin-Éric Racine Sun, 26 Jul 2009 05:57:30 +0300 upgrade-system (1.1.4.0) unstable; urgency=low * Fixed a capitalization typo in the script. -- Martin-Éric Racine Fri, 17 Jul 2009 19:39:15 +0300 upgrade-system (1.1.3.0) unstable; urgency=low * Added the short version of the GPL text inside the script itself. -- Martin-Éric Racine Fri, 17 Jul 2009 19:29:11 +0300 upgrade-system (1.1.2.0) unstable; urgency=low * Rephrased "to be purged" lines to "to purge" for better clarity. -- Martin-Éric Racine Tue, 14 Jul 2009 14:40:20 +0300 upgrade-system (1.1.1.0) unstable; urgency=low * Bumped Standards-Version to 3.8.2 (no change required). * Added an "apt-get --purge autoremove" line to the orphan loop. + Depends: apt (>= 0.6.45) -- Martin-Éric Racine Thu, 25 Jun 2009 18:25:22 +0300 upgrade-system (1.1.0.0) unstable; urgency=low * Added a loop that implements a purge for uninstalled packages. -- Martin-Éric Racine Sun, 21 Jun 2009 12:30:45 +0300 upgrade-system (1.0.1.6) unstable; urgency=low * The "post-Lenny Lintian cleanup" release: + Fixed [debian/copyright] to state GPL 2 or later, using the GNU boilerplate syntax instead of my own condensed version. + Remove [debian/watch] (not needed for Debian-native package). + Bumped debhelper up to 5 in [debian/compat] and [debian/control]. * Upgraded upstream URL in [debian/control] and [debian/copyright]. * Bumped Standards-Version to 3.8.0: + Moved the upstream URL in [debian/control] to Homepage field. * Removed the deprecated Lintian override. -- Martin-Éric Racine Mon, 20 Apr 2009 00:55:10 +0300 upgrade-system (1.0.1.5) unstable; urgency=low * Removed the Linda override, now that she is gone. -- Martin-Éric Racine Tue, 01 Jul 2008 12:02:19 +0300 upgrade-system (1.0.1.4) unstable; urgency=low * Added "-f -u" dist-upgrade options in upgrade-system.conf defaults. * Revised license to "GPLv2 or later" terms. -- Martin-Éric Racine Mon, 9 Jul 2007 13:55:06 +0300 upgrade-system (1.0.1.3) unstable; urgency=low * Added Linda and Lintian overrides for build-depends-without-arch-dep on arch:all package (reason: needed by 'clean' target). -- Martin-Éric Racine Thu, 24 Aug 2006 10:09:10 +0300 upgrade-system (1.0.1.2) unstable; urgency=low * Removed changelog garbage reported by "dpkg-parsechangelog -v~". -- Martin-Éric Racine Wed, 21 Jun 2006 15:45:30 +0300 upgrade-system (1.0.1.1) unstable; urgency=low * Converted Build-Depends-Indep to Build-Depends as per Policy 7.6. * Upgraded Standards-Version to 3.7.2; no change required. -- Martin-Éric Racine Sat, 17 Jun 2006 14:17:44 +0300 upgrade-system (1.0.1) unstable; urgency=high * Prevent infinite loops caused by dangerous package purge options. * Removed update-menu step (application maintainer scripts do this). - Updated upgrade-system(8) manual page to match. -- Martin-Éric Racine Sat, 4 Mar 2006 09:51:20 +0200 upgrade-system (1.0.0) unstable; urgency=low * Added missing call to list-missing target of utils.mk CDBS include. * Removed manual page reference to the Woody version of deborphan. * Rewrote the instructions in NEWS into something friendlier. * Added missing ${misc:Depends} to binary in debian/control. -- Martin-Éric Racine Tue, 20 Dec 2005 00:17:37 +0200 upgrade-system (0.9.9) unstable; urgency=low * Reintroduced the mistakenly removed Flausch option. Entschuldigung! -- Martin-Éric Racine Fri, 9 Dec 2005 04:56:37 +0200 upgrade-system (0.9.8) unstable; urgency=low * Upgraded to APT-based orphan purging. * Added a sample APT preference file. * Added utils.mk CDBS include. -- Martin-Éric Racine Sun, 4 Dec 2005 08:29:06 +0200 upgrade-system (0.9.7) unstable; urgency=low * Added missing IF statements to removal scripts (Closes: #333300). Thanks to Lars Wirzenius for pointing this out. -- Martin-Éric Racine Mon, 21 Nov 2005 13:54:18 +0200 upgrade-system (0.9.6) unstable; urgency=low * Upgraded to Debian Policy 3.6.2 standards; no change required. -- Martin-Éric Racine Wed, 22 Jun 2005 11:16:07 +0300 upgrade-system (0.9.5) unstable; urgency=low * Added optional "apt-show-versions -u" output to apt-update cron job. Thus debian/control now Recommends apt-show-versions. -- Martin-Éric Racine Sat, 4 Jun 2005 14:19:24 +0300 upgrade-system (0.9.4) unstable; urgency=low * Added DPKG option --force-confold to non-interactive options. -- Martin-Éric Racine Wed, 1 Jun 2005 10:51:23 +0300 upgrade-system (0.9.3) unstable; urgency=low * Moved non-interactive mode detection to the begining of the script. -- Martin-Éric Racine Sun, 29 May 2005 23:35:32 +0300 upgrade-system (0.9.2) unstable; urgency=low * Reverted DPKG options for orphaning to their previous behavior. -- Martin-Éric Racine Sun, 29 May 2005 12:50:18 +0300 upgrade-system (0.9.1) unstable; urgency=low * Added --force-confdef to DPKG options for orphaning (Fixes: #287008). We do not close this bug, because libapache-mod-text2html causes this by directly scanning for a Y/N keypress, instead of using debconf, in its postinst and postrm scripts. Reassigned the bug to that package. -- Martin-Éric Racine Sun, 29 May 2005 04:52:59 +0300 upgrade-system (0.9.0) unstable; urgency=low * Added experimental code that automatically detects whether we execute the command in a non-interactive way and quiets debconf accordingly. * Removed the APT preferences file, as requested by several users. The recommended settings are instead mentioned in the manual page. -- Martin-Éric Racine Sun, 29 May 2005 03:30:41 +0300 upgrade-system (0.8.4) unstable; urgency=low * Moved file installation process from debian/rules to debian/install. * Sponsored by Kenshi Muto. -- Martin-Éric Racine Wed, 4 May 2005 03:33:09 +0300 upgrade-system (0.8.3) unstable; urgency=medium * Added /etc/cron.daily/apt-update script to update package lists daily. * Sponsored by Kenshi Muto. -- Martin-Éric Racine Mon, 11 Oct 2004 12:34:44 +0300 upgrade-system (0.8.2) unstable; urgency=medium * urgency=medium; we really want this 0.8 codebase to go into Sarge. * Downgrade menu to Suggests. It is not an absolutely essential component. * Sponsored by Kenshi Muto. -- Martin-Éric Racine Wed, 8 Sep 2004 06:06:43 +0300 upgrade-system (0.8.1) unstable; urgency=low * Depends on deborphan and menu, instead of recommending them. * Rewrote message strings for better clarity. * Sponsored by Kenshi Muto. -- Martin-Éric Racine Sat, 4 Sep 2004 13:54:12 +0300 upgrade-system (0.8.0) unstable; urgency=low * Made orphan purge completely recursive. Thanks to Emiliano Gabrielli for the initial idea and to Christoph Schindler for the working code. * Sponsored by Kenshi Muto. -- Martin-Éric Racine Sat, 4 Sep 2004 12:32:52 +0300 upgrade-system (0.7.0) unstable; urgency=medium * Added APT error checking at both the update and upgrade stages. If APT exits with any other code that 0, upgrade-system is immediately halted. * Sponsored by Kenshi Muto. -- Martin-Éric Racine Thu, 19 Aug 2004 18:10:55 +0300 upgrade-system (0.6.9) unstable; urgency=low * Forked the update-menu invocation into a background task. * Sponsored by Kenshi Muto. -- Martin-Éric Racine Fri, 6 Aug 2004 19:17:35 +0300 upgrade-system (0.6.8) unstable; urgency=low * Replaced Bashist "source" with "." and Bash with generic Bourne shell. Thanks to David Weinehall for patch (Closes: #260087). * Sponsored by Kenshi Muto. -- Martin-Éric Racine Sun, 18 Jul 2004 17:56:14 +0300 upgrade-system (0.6.7) unstable; urgency=low * Removed ORPHANOPTS --no-df-keep option no longer supported by Deborphan. * Removed UPGRADEOPTS -y option (Closes: #258722), making upgrade-system fully interactive by default. * Sponsored by Kenshi Muto. -- Martin-Éric Racine Wed, 14 Jul 2004 08:02:40 +0300 upgrade-system (0.6.6) unstable; urgency=low * Fixed typo in [prerm] script. * Sponsored by Kenshi Muto. -- Martin-Éric Racine Tue, 13 Jul 2004 09:33:03 +0300 upgrade-system (0.6.5) unstable; urgency=low * Wrote NEWS warning to configure orphaner options (Closes: #258722). * Added [prerm,postrm] APT preferences handling (Closes: #258569). * Sponsored by Kenshi Muto (Closes: #256378). -- Martin-Éric Racine Sun, 11 Jul 2004 20:00:50 +0300 upgrade-system (0.6-4) unstable; urgency=low * Cleaned up the upgrade-system(8) and upgrade-system.conf(5) manual pages. * Sponsored by Kenshi Muto . -- Martin-Éric Racine Sat, 26 Jun 2004 14:55:00 +0300 upgrade-system (0.6-3) unstable; urgency=low * Updated my contact info. No other change. -- Martin-Éric Racine Sat, 26 Jun 2004 14:39:47 +0300 upgrade-system (0.6-2) unstable; urgency=low * Relocated the cleaner to another section of the script. -- Martin-Éric Racine Mon, 7 Jun 2004 14:33:15 +0300 upgrade-system (0.6-1) unstable; urgency=low * Bumped debhleper version in Build-Deps. * Added CLEANOPTS to upgrade-system.conf options. Thanks to Goswin von Brederlow for the suggestion. * Documented CLEANOPTS option in the upgrade-system.conf manual page. -- Martin-Éric Racine Mon, 7 Jun 2004 14:12:41 +0300 upgrade-system (0.5-1) unstable; urgency=low * Added more drastic deborphan options in the default upgrade-system.conf file. -- Martin-Éric Racine Fri, 23 Apr 2004 09:36:32 +0300 upgrade-system (0.4-4) unstable; urgency=low * Sanitized the control file into policy compliance. -- Martin-Éric Racine Thu, 8 Apr 2004 12:56:39 +0300 upgrade-system (0.4-3) unstable; urgency=low * Upgraded all Debian packaging files to UTF-8 compliance. -- Martin-Éric Racine Fri, 2 Apr 2004 13:53:22 +0300 upgrade-system (0.4-2) unstable; urgency=low * Added a sample APT preferences file, to be installed if none is found. -- Martin-Éric Racine Wed, 31 Mar 2004 18:27:29 +0300 upgrade-system (0.4-1) unstable; urgency=low * Moved all apt-get and deborphan variables to /etc/upgrade-system.conf. -- Martin-Éric Racine Wed, 31 Mar 2004 09:57:27 +0300 upgrade-system (0.3-9) unstable; urgency=low * Made the upgrade really automatic by addition of -y option. -- Martin-Éric Racine Wed, 24 Mar 2004 13:08:15 +0200 upgrade-system (0.3-8) unstable; urgency=low * Simplified the deborphan kludge introduced in 0.3-5. -- Martin-Éric Racine Wed, 17 Mar 2004 11:57:24 +0200 upgrade-system (0.3-7) unstable; urgency=low * Provide additional feedback about which deborphan version was found. * Really fixed the deborphan kludge introduced in 0.3-5. -- Martin-Éric Racine Wed, 17 Mar 2004 11:38:04 +0200 upgrade-system (0.3-6) unstable; urgency=low * Fixed the deborphan kludge introduced in 0.3-5. ARGH!!! -- Martin-Éric Racine Wed, 17 Mar 2004 10:54:07 +0200 upgrade-system (0.3-5) unstable; urgency=low * Added bit about removal of orphan documentation in the manual page. * Inserted horrible kludge that assumes that deborphan >= 1.5 means Sarge. + Makes it possible to use upgrade-system on Woody systems. -- Martin-Éric Racine Wed, 17 Mar 2004 09:45:01 +0200 upgrade-system (0.3-4) unstable; urgency=low * Added warning about deborphan issue in the manual page. -- Martin-Éric Racine Tue, 16 Mar 2004 16:25:49 +0200 upgrade-system (0.3-3) unstable; urgency=low * Added support for removal of orphan documentation. -- Martin-Éric Racine Tue, 16 Mar 2004 15:53:06 +0200 upgrade-system (0.3-2) unstable; urgency=low * Fixed dependencies to specify deborphan 1.5-13 or newer (closes Bug#1). * Rewrote the package description more concisely. -- Martin-Éric Racine Tue, 16 Mar 2004 12:39:17 +0200 upgrade-system (0.3-1) unstable; urgency=low * Added support for removal of orphan development libraries. * Rephrased user feedback messages. -- Martin-Éric Racine Mon, 15 Mar 2004 14:13:09 +0200 upgrade-system (0.2-6) unstable; urgency=low * Reviewed the phrasing for consistency between package description and manual page. -- Martin-Éric Racine Sun, 14 Mar 2004 14:29:38 +0200 upgrade-system (0.2-5) unstable; urgency=low * Rephrased the package description and manual page. -- Martin-Éric Racine Sun, 14 Mar 2004 13:43:51 +0200 upgrade-system (0.2-4) unstable; urgency=low * Updated the AUTHORS section of the manual page. -- Martin-Éric Racine Sun, 14 Mar 2004 12:49:57 +0200 upgrade-system (0.2-3) unstable; urgency=low * Proofread the documentation with ispell. -- Martin-Éric Racine Sun, 14 Mar 2004 11:33:09 +0200 upgrade-system (0.2-2) unstable; urgency=low * Fixed the manual page into UTF-8 compliance. -- Martin-Éric Racine Sun, 14 Mar 2004 08:25:28 +0200 upgrade-system (0.2-1) unstable; urgency=low * Renamed to upgrade-system. * Rewrote the manual page. -- Martin-Éric Racine Tue, 9 Mar 2004 16:47:16 +0200 update-system (0.1-1) unstable; urgency=low * First Debian release. -- Martin-Éric Racine Mon, 16 Feb 2004 20:45:09 +0200 upgrade-system-1.6.3.4/debian/upgrade-system.maintscript0000644000000000000000000000013511721662112020172 0ustar mv_conffile /etc/cron.daily/apt-update /etc/cron.daily/upgrade-system 1.4.2.1 upgrade-system upgrade-system-1.6.3.4/debian/upgrade-system.cron.daily0000644000000000000000000000061512012130737017677 0ustar #!/bin/sh # # /etc/cron.daily/upgrade-system # # COPYRIGHT © 2004-2012 Martin-Éric Racine # # LICENSE # GPLv2+: GNU GPL version 2 or later # LANGUAGE=C LC_ALL=C export LANGUAGE LC_ALL apt-get --quiet --quiet update apt-get --quiet --quiet autoclean if [ -x /usr/bin/apt-show-versions ] then apt-show-versions --upgradeable fi #EOF upgrade-system-1.6.3.4/debian/copyright0000644000000000000000000000122312147111444014674 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Files: * Copyright: © 2004-2012 Martin-Éric Racine © 2004,2012 Christoph Schindler © 2003-2004 Martin Zdrahal License: GPL-2+ On Debian systems, the complete text of the GNU General Public License can be found in . Files: debian/source_upgrade-system.py Copyright: © 2011 Brian Murray License: GPL-2+ On Debian systems, the complete text of the GNU General Public License can be found in .