Bug#424223: grub-pc: update-grub should avoid dpkg backup files

Sam Morris sam at robots.org.uk
Tue May 15 21:44:18 UTC 2007


Package: grub-pc
Version: 1.95+20070515-1
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

When I upgraded the package I found that update-grub ran the .dpkg-old
files and included their output in grub.cfg. This can probably be fixed
with something like:

[lines >= 117 of update-grub follows]
 for i in ${update_grub_dir}/* ; do
   case $i in
     # emacsen backup files. FIXME: support other editors
     *~) ;;
+    *.dpkg-dist) ;;
+    *.dpkg-old) ;;
     *)
       if test -x $i ; then
         echo
         echo "### BEGIN $i ###"
         $i
         echo "### END $i ###"
       fi
     ;;
   esac
 done


- -- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (530, 'testing'), (520, 'unstable'), (510, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-4-k7 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-pc depends on:
ii  libc6                         2.5-7      GNU C Library: Shared libraries
ii  liblzo2-2                     2.02-2     data compression library

grub-pc recommends no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGSimyshl/216gEHgRAv2aAJ9LOpV9DMboUxP3KU8R6FVIWpVInACfW6Cm
jecKfhIVZXKGt3LpwsWuKWs=
=+4VZ
-----END PGP SIGNATURE-----




More information about the Pkg-grub-devel mailing list