allow check for local cores

This commit is contained in:
espie 2011-11-14 21:56:04 +00:00
parent 9861d0a3f0
commit 5ffb1d6f17

View File

@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
# $OpenBSD: Core.pm,v 1.9 2011/06/04 12:58:24 espie Exp $
# $OpenBSD: Core.pm,v 1.10 2011/11/14 21:56:04 espie Exp $
#
# Copyright (c) 2010 Marc Espie <espie@openbsd.org>
#
@ -458,6 +458,11 @@ sub set_logdir
$logdir = shift;
}
sub is_local
{
return 0;
}
my @extra_report = ();
my @extra_important = ();
sub register_report
@ -663,6 +668,11 @@ sub hostname
return $host;
}
sub is_local
{
return 1;
}
package DPB::Core::Fetcher;
our @ISA = qw(DPB::Core::Local);