[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#684380: MaintainerScripts: small mistake in upgrade diagram



Package: wiki.debian.org
Severity: minor

Dear Maintainer,

there seems to be a small mistake in the upgrade.png diagram displayed as part
of the wiki page http://wiki.debian.org/MaintainerScripts:

* The first line of the diagram states that during package upgrade the sequence

  1.2-3->prerm upgrade 1.2-4 -> failed
  1.2-4->prerm failed-upgrade 1.2-3 -> failed
  1.2-3->postinst abort-upgrade 1.2-4 -> failed

  leaves the "old" (1.2-3) package in an "Failed-Config" state.

* I consider this a typo, which should read "Half-Configured", as it is
  inconsistent with the first paragraph of section 6.6 "Details of unpack phase
  of installation or upgrade" of the Debian Policy Manual. See paragraph "1." in
http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-unpackphase
  where it says:
  ==============================================================================
  If a version of the package is already installed, call

       old-prerm upgrade new-version

  If the script runs but exits with a non-zero exit status, dpkg will attempt:

       new-prerm failed-upgrade old-version

  If this works, the upgrade continues. If this does not work, the error unwind:

       old-postinst abort-upgrade new-version

  If this works, then the old-version is "Installed", if not, the old version
  is in a "Half-Configured" state.
  ==============================================================================

* Unfortunately the dia diagram sources
  http://www.marga.com.ar/debian/diagrams/upgrade.dia
  of the upgrade.png are currently not online any more.
  It would be great if contact with the original author could be established
  to fix the diagram (and put the sources online).

Thanks for maintaining wiki.debian.org!
Cheers,
Arvid Requate


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-3-686-pae (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


Reply to: