diff --git a/xen-create-image b/xen-create-image index b4f8a43..7802bde 100755 --- a/xen-create-image +++ b/xen-create-image @@ -402,7 +402,7 @@ Install an X11 server, using VNC and XDM -- http://www.steve.org.uk/ - $Id: xen-create-image,v 1.106 2006-03-11 21:37:04 steve Exp $ + $Id: xen-create-image,v 1.107 2006-03-20 17:51:10 radu Exp $ =cut @@ -1007,7 +1007,7 @@ sub parseCommandLineArguments if ( $VERSION ) { - my $REVISION = '$Revision: 1.106 $'; + my $REVISION = '$Revision: 1.107 $'; if ( $REVISION =~ /1.([0-9.]+) / ) { @@ -1467,6 +1467,10 @@ sub runHooks # foreach my $file ( sort( glob( $HOOK_DIR . "*" ) ) ) { + # skip files that end with .dpkg-new, .dpkg-old or '~' + next if ( $file =~ /\.dpkg-(new|old)/ ); + next if ( $file =~ /~$/ ); + # # Only run executable files. #