when checksumming existing files work, remove a possible .part
This commit is contained in:
parent
22f2dd40c8
commit
e6a94f281b
@ -1,5 +1,5 @@
|
||||
# ex:ts=8 sw=4:
|
||||
# $OpenBSD: Port.pm,v 1.11 2011/06/04 12:56:54 espie Exp $
|
||||
# $OpenBSD: Port.pm,v 1.12 2011/07/14 11:03:35 espie Exp $
|
||||
#
|
||||
# Copyright (c) 2010 Marc Espie <espie@openbsd.org>
|
||||
#
|
||||
@ -134,6 +134,8 @@ sub run
|
||||
for my $dist (values %{$job->{v}{info}{DIST}}) {
|
||||
if (!$dist->checksum($dist->filename)) {
|
||||
$exit = 1;
|
||||
} else {
|
||||
unlink($dist->tempfilename);
|
||||
}
|
||||
}
|
||||
exit($exit);
|
||||
|
Loading…
Reference in New Issue
Block a user