Don't process (apparent) duplicate extension directories.
authorNicholas Clark <nick@ccl4.org>
Fri, 25 Sep 2009 19:46:36 +0000 (20:46 +0100)
committerNicholas Clark <nick@ccl4.org>
Fri, 25 Sep 2009 19:46:36 +0000 (20:46 +0100)
(Another work-around for smokers that are not clearing directories. Without this
vestigial directories in ext/ are treated as nonxs extensions, and as ext/ is
scanned after cpan/, that classification overrides the truth.)

win32/FindExt.pm

index 3f12a23..fe1febd 100644 (file)
@@ -88,6 +88,9 @@ sub find_ext
         $this_ext =~ s!-!/!g;
         $leaf =~ s/.*-//;
 
+       # Temporary hack to cope with smokers that are not clearing directories:
+        next if $ext{$this_ext};
+
         if (has_xs_or_c("$ext_dir$item")) {
             $ext{$this_ext} = $static{$this_ext} ? 'static' : 'dynamic';
         } else {