diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-03-05 10:45:00 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-03-05 10:45:00 +0000 |
commit | 8a1c93a5fcf213c949b188a79f24c75783ca81f9 (patch) | |
tree | 16b2e8f5af6bce105011ab3d21975385bd153479 /usr.sbin/pkg_add/OpenBSD | |
parent | 13189e0df97e9811e0cf1b12baf851a3276e054e (diff) |
call may_check_digest after extraction
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Add.pm | 4 | ||||
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Replace.pm | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Add.pm b/usr.sbin/pkg_add/OpenBSD/Add.pm index 7d3711f1220..d3135a1379a 100644 --- a/usr.sbin/pkg_add/OpenBSD/Add.pm +++ b/usr.sbin/pkg_add/OpenBSD/Add.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Add.pm,v 1.85 2008/10/20 10:25:16 espie Exp $ +# $OpenBSD: Add.pm,v 1.86 2009/03/05 10:44:59 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -408,6 +408,8 @@ sub install return; } else { $file->create; + $self->may_check_digest($file, $state); + } } $self->set_modes($destdir.$fullname); diff --git a/usr.sbin/pkg_add/OpenBSD/Replace.pm b/usr.sbin/pkg_add/OpenBSD/Replace.pm index a3270f913c1..7c676b9b198 100644 --- a/usr.sbin/pkg_add/OpenBSD/Replace.pm +++ b/usr.sbin/pkg_add/OpenBSD/Replace.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Replace.pm,v 1.47 2008/10/24 16:50:27 espie Exp $ +# $OpenBSD: Replace.pm,v 1.48 2009/03/05 10:44:59 espie Exp $ # # Copyright (c) 2004-2006 Marc Espie <espie@openbsd.org> # @@ -125,6 +125,7 @@ sub extract $file->{destdir} = ''; $file->{name} = $tempname; $file->create; + $self->may_check_digest($file, $state); } } |