[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] [PATCH] warning if include file not found
****** message to minivend-users from Stefan Hornburg <racke@linuxia.de> ******
Motivation: better a warning then silently ignoring #includes
Against: IC 4.5.5
diff -u -c -r1.8 Config.pm
*** Config.pm 2000/08/08 14:29:57 1.8
--- Config.pm 2000/08/09 09:08:20
***************
*** 710,716 ****
#unshift @include, [ $configfile, tell(CONFIG) ];
unshift @include, $ref;
close CONFIG;
! unshift @include, grep -f $_, glob($spec);
next CONFIGLOOP;
}
my $tie = undef;
--- 710,721 ----
#unshift @include, [ $configfile, tell(CONFIG) ];
unshift @include, $ref;
close CONFIG;
! my @files = grep -f $_, glob($spec);
! if (@files) {
! unshift @include, @files;
! } else {
! config_warn ("No files matching $spec found");
! }
next CONFIGLOOP;
}
my $tie = undef;
--
LinuXia Systems && Cobolt NetServices, eCommerce and more
Shop- und Datenbanklösungen mit MiniVend, Firewalls auf Debian-Basis
http://www.linuxia.de - http://www.cobolt.net
--> Coding from hell and back <---
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list