Package: apticron
Version: 1.1.20
Severity: normal
Tags: patch

On line 70, apticron calls apt-get to download upgradeable packages:

======================================================================
        # do the upgrade downloads
        /usr/bin/apt-get -qq -d --allow-unauthenticated dist-upgrade >& 
/dev/null
======================================================================

This fails if apt-get thinks it has to downgrade a package:
======================================================================
[EMAIL PROTECTED]:~$ LANG=C sudo /usr/bin/apt-get -y -d --allow-unauthenticated 
dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
  libopenexr2c2a
The following NEW packages will be installed:
  libiw29 libopenexr2ldbl python2.5 python2.5-minimal
The following packages have been kept back:
  myspell-de-de
The following packages will be upgraded:
  binutils blender cpuburn cups-pdf emacs21 emacs21-bin-common emacs21-common 
email-reminder
  gstreamer0.10-alsa gstreamer0.10-gnomevfs gstreamer0.10-plugins-base 
gstreamer0.10-plugins-ugly
  gstreamer0.10-x ifrename kcontrol kdebase-bin kdebase-kio-plugins 
kdelibs-data kdelibs4c2a kdesktop
  kfind kicker konqueror konqueror-nsplugins konsole kwin libavcodeccvs51 
libavformatcvs51
  libavutilcvs49 libgd-gd2-noxpm-perl libgd2-xpm 
libgstreamer-plugins-base0.10-0 libid3-3.8.3c2a
  libkonq4 libnm-glib0 libpcap0.8 libpostproccvs51 libslab0 myspell-en-gb 
myspell-en-us netapplet
  openexr openoffice.org-hyphenation-de paps reprepro scribus tcpdump 
wireless-tools xkeycaps xterm
  yafray
The following packages will be DOWNGRADED:
  gaia
51 upgraded, 4 newly installed, 1 downgraded, 1 to remove and 1 not upgraded.
Need to get 70.5MB/74.6MB of archives.
After unpacking 23.3MB of additional disk space will be used.
E: There are problems and -y was used without --force-yes
[EMAIL PROTECTED]:~$ echo $?
100
[EMAIL PROTECTED]:~$ 
======================================================================
(there are probably more reasons why it might fail...)

The solution is either to
a) add --force-yes to apt-get's parameters or to
b) explicitly ignore the exitcode from apt-get so bash's -e does not
   kick in.

a) has the advantage that packages are still downloaded so I prefer
that :)

Thanks for your work,
Jö.

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

Kernel: Linux 2.6.21-2-k7 (SMP w/1 CPU core)
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apticron depends on:
ii  apt                      0.7.3           Advanced front-end for dpkg
ii  apt-listchanges          2.74            Display change history from .deb a
ii  debconf [debconf-2.0]    1.5.14          Debian configuration management sy
ii  iproute                  20070313-1      Professional tools to control the 
ii  mailutils [mailx]        1:1.1+dfsg1-3.1 GNU mailutils utilities for handli

apticron recommends no packages.

-- debconf information:
* apticron/notification: root

-- 
Of all the things I've lost, I miss my mind the most.
-- Ozzy Osbourne

Attachment: signature.asc
Description: Digital signature

Reply via email to