* grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.

This commit is contained in:
Mads Kiilerich 2012-04-18 23:31:26 +02:00 committed by Vladimir 'phcoder' Serbinenko
parent f8315e145d
commit 81092a75e5
2 changed files with 5 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2012-04-18 Mads Kiilerich <mads@kiilerich.com>
* grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
2012-04-18 Mike Gilbert <floppym@gentoo.org> 2012-04-18 Mike Gilbert <floppym@gentoo.org>
* util/grub.d/10_linux.in: Fix detection of genkernel initramfs. * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.

View file

@ -177,6 +177,7 @@ grub_file_is_not_garbage ()
if test -f "$1" ; then if test -f "$1" ; then
case "$1" in case "$1" in
*.dpkg-*) return 1 ;; # debian dpkg *.dpkg-*) return 1 ;; # debian dpkg
*.rpmsave|*.rpmnew) return 1 ;;
README*|*/README*) return 1 ;; # documentation README*|*/README*) return 1 ;; # documentation
esac esac
else else