summaryrefslogtreecommitdiff
path: root/Porting/sync-with-cpan
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2016-12-30 15:05:42 +0000
committerAaron Crane <arc@cpan.org>2016-12-30 18:44:17 +0000
commit7035e4d30f85a7fd0408e933a583d34d140e3714 (patch)
treecba340ac7dff268459282c4597e1df3325324382 /Porting/sync-with-cpan
parentabec7027d3cfd4d003895131f8b4ec25ca774a18 (diff)
downloadperl-7035e4d30f85a7fd0408e933a583d34d140e3714.tar.gz
Porting/sync-with-cpan: offer advice in the face of CUSTOMIZED
Diffstat (limited to 'Porting/sync-with-cpan')
-rwxr-xr-xPorting/sync-with-cpan19
1 files changed, 19 insertions, 0 deletions
diff --git a/Porting/sync-with-cpan b/Porting/sync-with-cpan
index e45b1f3bc8..564b6aff27 100755
--- a/Porting/sync-with-cpan
+++ b/Porting/sync-with-cpan
@@ -238,6 +238,25 @@ if (!$info) {
$module = $guess;
}
+if ($info->{CUSTOMIZED}) {
+ print <<"EOF";
+$module has a CUSTOMIZED entry in Porting/Maintainers.pl.
+
+This program's behaviour is to copy every CUSTOMIZED file into the version
+of the module being imported. But that might not be the right thing: in some
+cases, the new CPAN version will supersede whatever changes had previously
+been made in blead, so it would be better to import the new CPAN files.
+
+If you've checked that the CUSTOMIZED versions are still correct, you can
+proceed now. Otherwise, you should abort and investigate the situation. If
+the blead customizations are no longer needed, delete the CUSTOMIZED entry
+for $module in Porting/Maintainers.pl (and you'll also need to regenerate
+t/porting/customized.dat in that case; see t/porting/customized.t).
+
+EOF
+ print "Hit return to continue; ^C to abort "; <STDIN>;
+}
+
my $cpan_mod = @ARGV ? shift : $module;
my $distribution = $$info {DISTRIBUTION};