From: Matt S Trout Date: Mon, 3 Oct 2011 21:45:40 +0000 (+0000) Subject: don't overwrite manifest after preflight X-Git-Tag: v0.001000~25 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d7998bfa475813657d0d938df424fca8cf73481d;p=p5sagit%2FDistar.git don't overwrite manifest after preflight --- diff --git a/lib/Distar.pm b/lib/Distar.pm index 0ce632d..92d7d9e 100644 --- a/lib/Distar.pm +++ b/lib/Distar.pm @@ -14,6 +14,8 @@ sub import { sub author { our $Author = shift } +our $Ran_Preflight; + our @Manifest = ( 'lib' => '.pm', 't' => '.t', @@ -50,6 +52,8 @@ sub write_manifest_skip { } sub run_preflight { + $Ran_Preflight = 1; + system("git fetch"); for (scalar `make manifest 2>&1 >/dev/null`) { @@ -103,7 +107,7 @@ END } END { - write_manifest_skip() + write_manifest_skip() unless $Ran_Preflight } 1;