# ex:ts=8 sw=4:
-# $OpenBSD: PackageRepository.pm,v 1.123 2016/04/25 10:53:13 espie Exp $
+# $OpenBSD: PackageRepository.pm,v 1.124 2016/06/27 08:38:15 espie Exp $
#
# Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org>
#
return $class->unique($class->parse_url($r, $state));
}
+sub dont_cleanup
+{
+}
+
sub ftp() { 'OpenBSD::PackageRepository::FTP' }
sub http() { 'OpenBSD::PackageRepository::HTTP' }
sub https() { 'OpenBSD::PackageRepository::HTTPS' }
my $pid3 = open(my $in, "-|");
$self->did_it_fork($pid3);
if ($pid3) {
+ $self->dont_cleanup;
$self->pkg_copy($in, $object);
} else {
$self->grab_object($object);
# ex:ts=8 sw=4:
-# $OpenBSD: Persistent.pm,v 1.1 2014/08/27 18:40:03 kspillner Exp $
+# $OpenBSD: Persistent.pm,v 1.2 2016/06/27 08:38:15 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
CORE::close($cmdfh);
CORE::close($getfh);
waitpid($self->{controller}, 0);
+ delete $self->{controller};
}
}
+sub dont_cleanup
+{
+ my $self = shift;
+ CORE::close($self->{cmdfh});
+ CORE::close($self->{getfh});
+ delete $self->{controller};
+}
+
sub reinitialize
{
my $self = shift;