reset recorder if we get contents from packages, since it would grow too

much.
This commit is contained in:
espie 2010-09-15 09:36:57 +00:00
parent 4090fab496
commit 761854d37a

View File

@ -1,6 +1,6 @@
#!/usr/bin/perl
# $OpenBSD: check-lib-depends,v 1.5 2010/09/13 14:38:05 espie Exp $
# $OpenBSD: check-lib-depends,v 1.6 2010/09/15 09:36:57 espie Exp $
# Copyright (c) 2004-2010 Marc Espie <espie@openbsd.org>
#
# Permission to use, copy, modify, and distribute this software for any
@ -451,6 +451,7 @@ sub do_pkg
$state->set_context($plist);
if ($state->{need_package}) {
my $temp = OpenBSD::Temp->dir;
$state->{recorder} = OpenBSD::DumpRecorder->new;
$self->scan_package($state, $plist,
OpenBSD::PkgFileSource->new($true_package, $temp));
}
@ -458,6 +459,9 @@ sub do_pkg
$true_package->close;
$true_package->wipe_info;
$plist->forget;
if ($state->{need_package}) {
undef $state->{recorder};
}
return 1;
}