From cb500b33c76c7d9b1e8010c49f694c52c2257a24 Mon Sep 17 00:00:00 2001 From: espie Date: Tue, 10 Jan 2012 19:35:36 +0000 Subject: [PATCH] remove files from distinfo when they no longer exist, so when you clean up files and history, it won't recreate fantom stuff... --- infrastructure/lib/DPB/Fetch.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infrastructure/lib/DPB/Fetch.pm b/infrastructure/lib/DPB/Fetch.pm index 972a8b7311f..e457eb8518f 100644 --- a/infrastructure/lib/DPB/Fetch.pm +++ b/infrastructure/lib/DPB/Fetch.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Fetch.pm,v 1.26 2012/01/09 17:56:28 espie Exp $ +# $OpenBSD: Fetch.pm,v 1.27 2012/01/10 19:35:36 espie Exp $ # # Copyright (c) 2010 Marc Espie # @@ -292,6 +292,7 @@ sub new my $_; while (<$fh>) { if (m/^SHA256\s*\((.*)\) \= (.*)/) { + next unless -f "$distdir/$1"; $o->{sha}{$1} = OpenBSD::sha->fromstring($2); $o->{reverse}{$2} = $1; }