r34283 - in /branches/upstream/libtest-distmanifest-perl/current: Build.PL Changes MANIFEST MANIFEST.SKIP META.yml Makefile.PL README SIGNATURE lib/Test/DistManifest.pm t/01min-perl.t t/01portability.t t/01prereq.t t/03core.t

jawnsy-guest at users.alioth.debian.org jawnsy-guest at users.alioth.debian.org
Tue Apr 28 21:06:21 UTC 2009


Author: jawnsy-guest
Date: Tue Apr 28 21:06:16 2009
New Revision: 34283

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=34283
Log:
[svn-upgrade] Integrating new upstream version, libtest-distmanifest-perl (1.1.4)

Removed:
    branches/upstream/libtest-distmanifest-perl/current/t/01prereq.t
Modified:
    branches/upstream/libtest-distmanifest-perl/current/Build.PL
    branches/upstream/libtest-distmanifest-perl/current/Changes
    branches/upstream/libtest-distmanifest-perl/current/MANIFEST
    branches/upstream/libtest-distmanifest-perl/current/MANIFEST.SKIP
    branches/upstream/libtest-distmanifest-perl/current/META.yml
    branches/upstream/libtest-distmanifest-perl/current/Makefile.PL
    branches/upstream/libtest-distmanifest-perl/current/README
    branches/upstream/libtest-distmanifest-perl/current/SIGNATURE
    branches/upstream/libtest-distmanifest-perl/current/lib/Test/DistManifest.pm
    branches/upstream/libtest-distmanifest-perl/current/t/01min-perl.t
    branches/upstream/libtest-distmanifest-perl/current/t/01portability.t
    branches/upstream/libtest-distmanifest-perl/current/t/03core.t

Modified: branches/upstream/libtest-distmanifest-perl/current/Build.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-distmanifest-perl/current/Build.PL?rev=34283&op=diff
==============================================================================
--- branches/upstream/libtest-distmanifest-perl/current/Build.PL (original)
+++ branches/upstream/libtest-distmanifest-perl/current/Build.PL Tue Apr 28 21:06:16 2009
@@ -3,7 +3,7 @@
 # Build.PL
 #  Script to build and install this distribution
 #
-# $Id: Build.PL 5639 2009-03-15 03:43:59Z FREQUENCY at cpan.org $
+# $Id: Build.PL 6602 2009-04-24 01:23:08Z FREQUENCY at cpan.org $
 #
 # All rights to this helper script are hereby disclaimed and its contents
 # released into the public domain by the author. Where this is not possible,
@@ -26,20 +26,21 @@
   create_packlist       => 1,
 
   # Maintain compatibility with ExtUtils::MakeMaker installations
-  create_makefile_pl    => 'traditional',
+  create_makefile_pl    => 'passthrough',
 
   requires => {
     'perl'              => 5.006,
 
     # Pragmatic and special modules
     'Carp'              => 1.04,
-    'version'           => 0,
+    'version'           => 0.76,
     'warnings'          => 0,
     'strict'            => 0,
 
     # File manipulation modules
     'Cwd'               => 0,
     'File::Spec'        => 0,
+    'File::Spec::Unix'  => 0,
     'File::Find'        => 0,
 
     # The tests are based on Test::More
@@ -47,7 +48,7 @@
     'Test::Builder'     => 0.86,
 
     # Other modules
-    'Module::Manifest'  => 0.05,
+    'Module::Manifest'  => 0.07,
   },
   build_requires => {
     # User tests for good functionality
@@ -63,7 +64,6 @@
     'Test::Signature'           => 1.10,
     'Test::Pod'                 => 1.14,
     'Test::Pod::Coverage'       => 1.04,
-    'Test::Prereq::Build'       => 1.036,
     'Test::Portability::Files'  => 0.05,
     'Test::MinimumVersion'      => 0.008,
   },

Modified: branches/upstream/libtest-distmanifest-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-distmanifest-perl/current/Changes?rev=34283&op=diff
==============================================================================
--- branches/upstream/libtest-distmanifest-perl/current/Changes (original)
+++ branches/upstream/libtest-distmanifest-perl/current/Changes Tue Apr 28 21:06:16 2009
@@ -1,3 +1,64 @@
+2009-04-26  Jonathan Yu <frequency at cpan.org>
+
+	- Updated to version 1.1.4, prepare for next release
+
+2009-04-26  Jonathan Yu <frequency at cpan.org>
+
+	- Added .tmp to MANIFEST.SKIP
+
+2009-04-24  Jonathan Yu <frequency at cpan.org>
+
+	Added Build.bat to MANIFEST.SKIP for Win32 builds...
+
+2009-04-23  Jonathan Yu <frequency at cpan.org>
+
+	- Added Win32 compatibility code. Closes the Win32 compatibility bug (RT#44401)
+	- Updated Build.PL
+	- Added META.yml
+	- Changed to a passthrough Makefile instead of a classic one
+
+2009-04-06  Jonathan Yu <frequency at cpan.org>
+
+	Updated META.yml
+
+2009-03-25  Jonathan Yu <frequency at cpan.org>
+
+	- Updated version dependency for version.pm
+	- Fixed a typo in the README
+
+2009-03-16  Jonathan Yu <frequency at cpan.org>
+
+	- Removed version-specific stuff from the README so I can be lazy (it was out-of-date anyway)
+
+2009-03-16  Jonathan Yu <frequency at cpan.org>
+
+	- Removed prereq.t from the MANIFEST
+
+2009-03-16  Jonathan Yu <frequency at cpan.org>
+
+	- Removed use of Test::Prereq, because it needs to use CPAN to do its work
+
+2009-03-16  Jonathan Yu <frequency at cpan.org>
+
+	Fix OS detection routines
+
+2009-03-16  Jonathan Yu <frequency at cpan.org>
+
+	- Enable svn:keywords: LastChangedBy Revision Id
+
+2009-03-16  Jonathan Yu <frequency at cpan.org>
+
+	- Updated 03core.t (header was old)
+	- Fixed Test/DistManifest.pm (minor variable name change)
+
+2009-03-16  Jonathan Yu <frequency at cpan.org>
+
+	- Modified the module so that it works portably (even with Win32, and other platforms File::Spec supports)
+
+2009-03-15  Jonathan Yu <frequency at cpan.org>
+
+	- Added simple bug fix for MANIFEST testing under Windows.
+
 2009-03-14  Jonathan Yu <frequency at cpan.org>
 
 	Updated prerequisite information in Build.PL and META.yml

Modified: branches/upstream/libtest-distmanifest-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-distmanifest-perl/current/MANIFEST?rev=34283&op=diff
==============================================================================
--- branches/upstream/libtest-distmanifest-perl/current/MANIFEST (original)
+++ branches/upstream/libtest-distmanifest-perl/current/MANIFEST Tue Apr 28 21:06:16 2009
@@ -21,6 +21,5 @@
 t/01pod-coverage.t
 t/01pod.t
 t/01portability.t
-t/01prereq.t
 t/02manifest.t
 t/03core.t

Modified: branches/upstream/libtest-distmanifest-perl/current/MANIFEST.SKIP
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-distmanifest-perl/current/MANIFEST.SKIP?rev=34283&op=diff
==============================================================================
--- branches/upstream/libtest-distmanifest-perl/current/MANIFEST.SKIP (original)
+++ branches/upstream/libtest-distmanifest-perl/current/MANIFEST.SKIP Tue Apr 28 21:06:16 2009
@@ -10,6 +10,7 @@
 
 # Module::Build generated files and dirs.
 ^Build$
+^Build\.bat$
 ^_build/
 
 # Module::Install included files.
@@ -30,6 +31,7 @@
 \#$
 \b\.#
 \.bak$
+\.tmp$
 
 # Devel::Cover files.
 \bcover_db\b

Modified: branches/upstream/libtest-distmanifest-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-distmanifest-perl/current/META.yml?rev=34283&op=diff
==============================================================================
--- branches/upstream/libtest-distmanifest-perl/current/META.yml (original)
+++ branches/upstream/libtest-distmanifest-perl/current/META.yml Tue Apr 28 21:06:16 2009
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name: Test-DistManifest
-version: 1.001002
+version: 1.001004
 author:
   - 'Jonathan Yu <frequency at cpan.org>'
 abstract: |-
@@ -17,7 +17,8 @@
   Cwd: 0
   File::Find: 0
   File::Spec: 0
-  Module::Manifest: 0.05
+  File::Spec::Unix: 0
+  Module::Manifest: 0.07
   Test::Builder: 0.86
   Test::More: 0.62
   perl: 5.006
@@ -34,6 +35,8 @@
   Test::Pod::Coverage: 1.04
   Test::Signature: 1.10
   Test::YAML::Meta: 0.11
+  Test::Portability::Files: 0.05
+  Test::MinimumVersion: 0.008
   Test::Prereq::Build: 1.036
   Test::Portability::Files: 0.05
   Test::MinimumVersion: 0.008
@@ -41,7 +44,7 @@
 provides:
   Test::DistManifest:
     file: lib/Test/DistManifest.pm
-    version: 1.001002
+    version: 1.001004
 generated_by: Module::Build version 0.3
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html

Modified: branches/upstream/libtest-distmanifest-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-distmanifest-perl/current/Makefile.PL?rev=34283&op=diff
==============================================================================
--- branches/upstream/libtest-distmanifest-perl/current/Makefile.PL (original)
+++ branches/upstream/libtest-distmanifest-perl/current/Makefile.PL Tue Apr 28 21:06:16 2009
@@ -1,25 +1,32 @@
-# Note: this file was auto-generated by Module::Build::Compat version 0.30
+# Note: this file was auto-generated by Module::Build::Compat version 0.2808_01
 require 5.006;
-use ExtUtils::MakeMaker;
-WriteMakefile(
-  'NAME' => 'Test::DistManifest',
-  'VERSION_FROM' => 'lib/Test/DistManifest.pm',
-  'PREREQ_PM' => {
-    'perl'              => 5.006,
-    'Carp'              => 1.04,
-    'version'           => 0,
-    'warnings'          => 0,
-    'strict'            => 0,
-    'Cwd'               => 0,
-    'File::Spec'        => 0,
-    'File::Find'        => 0,
-    'Test::More'        => 0.62,
-    'Test::Builder'     => 0.86,
-    'Module::Manifest'  => 0.05,
-    'Test::Builder::Tester' => 0,
-    'Test::NoWarnings'  => 0.084,
-  },
-  'INSTALLDIRS' => 'site',
-  'EXE_FILES' => [],
-  'PL_FILES' => {},
-);
+
+unless (eval "use Module::Build::Compat 0.02; 1") {
+  print "This module requires Module::Build to install itself.\n";
+
+  require ExtUtils::MakeMaker;
+  my $yn = ExtUtils::MakeMaker::prompt
+    ('  Install Module::Build now from CPAN?', 'y');
+
+    unless ($yn =~ /^y/i) {
+    die " *** Cannot install without Module::Build.  Exiting ...\n";
+  }
+
+  require Cwd;
+  require File::Spec;
+  require CPAN;
+
+  # Save this 'cause CPAN will chdir all over the place.
+  my $cwd = Cwd::cwd();
+  
+  CPAN::Shell->install('Module::Build::Compat');
+  CPAN::Shell->expand("Module", "Module::Build::Compat")->uptodate
+    or die "Couldn't install Module::Build, giving up.\n";
+
+  chdir $cwd or die "Cannot chdir() back to $cwd: $!";
+}
+eval "use Module::Build::Compat 0.02; 1" or die $@;
+
+Module::Build::Compat->run_build_pl(args => \@ARGV);
+require Module::Build;
+Module::Build::Compat->write_makefile(build_class => 'Module::Build');

Modified: branches/upstream/libtest-distmanifest-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-distmanifest-perl/current/README?rev=34283&op=diff
==============================================================================
--- branches/upstream/libtest-distmanifest-perl/current/README (original)
+++ branches/upstream/libtest-distmanifest-perl/current/README Tue Apr 28 21:06:16 2009
@@ -2,29 +2,11 @@
     Test::DistManifest - Tests that your MANIFEST matches the distribution
     as it exists, excluding those in your MANIFEST.SKIP
 
-VERSION
-    Version 1.1.2 ($Id: README 5622 2009-03-13 03:06:09Z FREQUENCY at cpan.org $)
-
-EXPORTS
-    By default, this module exports the following functions:
-
-    *   manifest_ok
+$Id: README 5755 2009-03-25 19:13:03Z FREQUENCY at cpan.org $
 
 DESCRIPTION
     This module provides a simple method of testing that a MANIFEST matches
     the distribution.
-
-SYNOPSIS
-      use Test::More;
-
-      eval 'use Test::DistManifest';
-      if ($@) {
-        plan skip_all => 'Test::DistManifest required to test MANIFEST';
-      }
-
-      manifest_ok('MANIFEST', 'MANIFEST.SKIP'); # Default options
-
-      manifest_ok(); # Functionally equivalent to above
 
 COMPATIBILITY
     This module was tested under Perl 5.10.0, using Debian Linux. However,
@@ -35,68 +17,8 @@
     If you encounter any problems on a different version or architecture,
     please contact the maintainer.
 
-FUNCTIONS
-  manifest_ok( $manifest , $skipfile )
-    This subroutine checks the manifest list contained in $manifest by using
-    "Module::Manifest" to determine the list of files and then checking for
-    the existence of all such files. Then, it checks if there are any files
-    in the distribution that were not specified in the $manifest file but do
-    not match any regular expressions provided in the $skipfile exclusion
-    file.
-
-    If your MANIFEST file is generated by "ExtUtils::MakeMaker" or
-    "Module::Build", then you shouldn't have any problems with these files.
-    It's just a helpful test to remind you to update these files, using:
-
-      $ make dist # For ExtUtils::MakeMaker
-      $ ./Build dist # For Module::Build
-
-GUTS
-    This module internally plans 3 tests:
-
-    1   MANIFEST and MANIFEST.SKIP can be parsed by "Module::Manifest"
-
-    2   Check which files exist in the distribution directory that do not
-        match an existing regular expression in MANIFEST.SKIP and not listed
-        in the MANIFEST file. These files should either be excluded from the
-        test by addition of a mask in MANIFEST.SKIP (in the case of
-        temporary development or test files) or should be included in the
-        MANIFEST.
-
-    3   Check which files are specified in MANIFEST but do not exist on the
-        disk. This usually occurs when one deletes a test or similar script
-        from the distribution, or accidentally moves it.
-
-    If you want to run tests on multiple different MANIFEST files, you can
-    simply pass 'no_plan' to the import function, like so:
-
-      use Test::DistManifest 'no_plan';
-
-      # Multiple tests work properly now
-      manifest_ok('MANIFEST', 'MANIFEST.SKIP');
-      manifest_ok();
-      manifest_ok('MANIFEST.OTHER', 'MANIFEST.SKIP');
-
-    I doubt this will be useful to users of this module. However, this is
-    used internally for testing and it might be helpful to you. You can also
-    plan more tests, but keep in mind that the idea of "3 internal tests"
-    may change in the future.
-
-    Example code:
-
-      use Test::DistManifest tests => 4;
-      manifest_ok(); # 3 tests
-      ok(1, 'is 1 true?');
-
 AUTHOR
     Jonathan Yu <frequency at cpan.org>
-
-  CONTRIBUTORS
-    Your name here ;-)
-
-ACKNOWLEDGEMENTS
-    *   Thanks to Adam Kennedy <adamk at cpan.org>, developer of
-        Module::Manifest, which is used in this module.
 
 SUPPORT
     You can find documentation for this module with the perldoc command.
@@ -128,9 +50,9 @@
     L<http://svn.ali.as/cpan/trunk/Test-DistManifest>
 
     If you are a CPAN developer and would like to make modifications to the
-    code base, please contact Adam Kennedy E<lt>adamk at cpan.orgE<gt>, the
-    repository administrator. I only ask that you contact me first to discuss
-    the changes you wish to make to the distribution.
+    code base, please contact Adam Kennedy <adamk at cpan.org>, the repository
+    administrator. I only ask that you contact me first to discuss the
+    changes you wish to make to the distribution.
 
 FEEDBACK
     Please send relevant comments, rotten tomatoes and suggestions directly
@@ -160,17 +82,7 @@
     Copyright (C) 2008-2009 by Jonathan Yu <frequency at cpan.org>
 
   LICENSE
-    This package is distributed under a triple licensing scheme. You are
-    entitled to enjoy the covenants of, at your option:
-
-    1   The Free Software Foundation's GNU General Public License (GPL),
-        version 3 or later; or
-
-    2   The Perl Foundation's Artistic License, version 2.0 or later; or
-
-    3   The terms that Perl itself is licensed under (at time of writing,
-        this is a dual license of the GNU General Public License and the
-        Perl Artistic License).
+    This package is distributed under the same terms as Perl itself.
 
 DISCLAIMER OF WARRANTY
     This software is provided by the copyright holders and contributors "AS

Modified: branches/upstream/libtest-distmanifest-perl/current/SIGNATURE
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-distmanifest-perl/current/SIGNATURE?rev=34283&op=diff
==============================================================================
--- branches/upstream/libtest-distmanifest-perl/current/SIGNATURE (original)
+++ branches/upstream/libtest-distmanifest-perl/current/SIGNATURE Tue Apr 28 21:06:16 2009
@@ -14,35 +14,34 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-SHA1 0f7bf1920a476da6c1935d732e17396d82e9e882 Build.PL
+SHA1 374598505d2937f792550f19f5c8a668a1df5430 Build.PL
 SHA1 8190073af2323d80436cc0b79421cd19e095cbc9 CIRCULAR.SKIP
-SHA1 13443c2c6786a6b6765b3918138666204b2f37fd Changes
+SHA1 c60db0a32de8cb36d04398b2059d2019008c3c5e Changes
 SHA1 6bc8386fc92c74529ab0cfce62a91a369640e67e LICENSE
-SHA1 3aea2195ef4a636091516c53316c37ed477bbee2 MANIFEST
+SHA1 86ea176734ddbe1785af4978163e30f43c451e15 MANIFEST
 SHA1 91e8519cd6ba58a9a1810ec16c6b5b30f94edc25 MANIFEST.EXTRA
-SHA1 c4c013dae36ac310c895e97cd7e908375a8469d7 MANIFEST.SKIP
-SHA1 61a7746117956319a2f13116e6195b7efc89d753 META.yml
-SHA1 cb4b2f4f8dacf4ec5ecbf61b528a4d9f8295c5c9 Makefile.PL
-SHA1 62f675c89a1118fa8a95ee6a7459f99918e047e1 README
+SHA1 c1ef3014c0bc3ed78eec43db3590cecd28f39a12 MANIFEST.SKIP
+SHA1 f671eba3c84a74f6d0ae5ea49420a13abb024904 META.yml
+SHA1 7cfa2f7bdb9c7494ceb0f3260077453c41deb412 Makefile.PL
+SHA1 e18b41ceeb4f9012fa12985fc7b23caee30e8967 README
 SHA1 605a74373a17120acdd2497cd2f9a3fcbc81a730 examples/checkmanifest.t
-SHA1 c2bcc876fc912ab01e1bd62845ef6a5e76469ac3 lib/Test/DistManifest.pm
+SHA1 f1cbdd9873cec1b2c7c4c084d117788de4a42d97 lib/Test/DistManifest.pm
 SHA1 b6f1c337969d535166dbd528ace297575b077aaf t/00signature.t
 SHA1 3f1dc7578eecb686008662e1b6400155111d3a82 t/01compile.t
 SHA1 9448154fc848b5e30726bfd0454e52cb65a57489 t/01critic.rc
 SHA1 e69b0f9d4ccd130d227e51d05fa53714f3f91b47 t/01critic.t
 SHA1 bce439259d869bb358634cb6e57bb1f42998d635 t/01kwalitee.t
 SHA1 366f36bd6a09fac3de61c4439adec20147ea73a5 t/01meta.t
-SHA1 7130023c1275ed9005f4dbd5db3620dba8cc1248 t/01min-perl.t
+SHA1 0140511d989dcd28b52dfdc473851d18b550225a t/01min-perl.t
 SHA1 9fde907c27f618cde1bd432b586e712da4824a6d t/01pod-coverage.t
 SHA1 fd570637144391b7cbd4a58e0305679c583d1a67 t/01pod.t
-SHA1 43d8eb12231e51e09bb2e3b9ecb73c951253a0d0 t/01portability.t
-SHA1 b53f173aaaaf99e2eebda3fb4e8acb924d60b990 t/01prereq.t
+SHA1 2364582da3cd9a6df6473f51e0388ed17ee5404e t/01portability.t
 SHA1 7d0f87938f966f5bad9f53097bd3fc162f64b864 t/02manifest.t
-SHA1 b55be2b4f2ec69ed6f22501d9ec4ea569723d625 t/03core.t
+SHA1 d5aab2d964d1b1f0e0d021053929e75c71dc3424 t/03core.t
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.9 (GNU/Linux)
 
-iEYEARECAAYFAkm8egAACgkQYYN9T93mai/WdgCgtOcHzb6MXOTMlVgMWQRTXM7b
-roUAnidZpVmpgHSXmtbE30hSuztdCcM0
-=IXLY
+iEYEARECAAYFAkn1BUAACgkQYYN9T93mai/piwCfap24t4r0m2plUMukreAYOdaW
+W30AoJ7gylq/+3z+LQzv7RSCeN9zjsRl
+=erJG
 -----END PGP SIGNATURE-----

Modified: branches/upstream/libtest-distmanifest-perl/current/lib/Test/DistManifest.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-distmanifest-perl/current/lib/Test/DistManifest.pm?rev=34283&op=diff
==============================================================================
--- branches/upstream/libtest-distmanifest-perl/current/lib/Test/DistManifest.pm (original)
+++ branches/upstream/libtest-distmanifest-perl/current/lib/Test/DistManifest.pm Tue Apr 28 21:06:16 2009
@@ -1,9 +1,9 @@
 # Test::DistManifest
 #  Tests that your manifest matches the distribution as it exists.
 #
-# $Id: DistManifest.pm 5634 2009-03-14 22:58:13Z FREQUENCY at cpan.org $
+# $Id: DistManifest.pm 6700 2009-04-27 01:05:33Z FREQUENCY at cpan.org $
 #
-# Copyright (C) 2008 by Jonathan Yu <frequency at cpan.org>
+# Copyright (C) 2008-2009 by Jonathan Yu <frequency at cpan.org>
 #
 # This package is distributed with the same licensing terms as Perl itself.
 # For additional information, please read the included `LICENSE' file.
@@ -21,11 +21,11 @@
 
 =head1 VERSION
 
-Version 1.1.2 ($Id: DistManifest.pm 5634 2009-03-14 22:58:13Z FREQUENCY at cpan.org $)
+Version 1.1.4 ($Id: DistManifest.pm 6700 2009-04-27 01:05:33Z FREQUENCY at cpan.org $)
 
 =cut
 
-use version; our $VERSION = qv('1.1.2');
+use version; our $VERSION = qv('1.1.4');
 
 =head1 EXPORTS
 
@@ -42,6 +42,7 @@
 # File management commands
 use Cwd ();
 use File::Spec (); # Portability
+use File::Spec::Unix (); # To get UNIX-style paths
 use File::Find (); # Traverse the filesystem tree
 
 use Module::Manifest ();
@@ -51,6 +52,19 @@
 
 my @EXPORTS = (
   'manifest_ok',
+);
+
+# These platforms were copied from File::Spec
+my %platforms = (
+  MacOS   => 1,
+  MSWin32 => 1,
+  os2     => 1,
+  VMS     => 1,
+  epoc    => 1,
+  NetWare => 1,
+  symbian => 1,
+  dos     => 1,
+  cygwin  => 1,
 );
 
 # Looking at other Test modules this seems to be an ad-hoc standard
@@ -170,6 +184,17 @@
   my $closure = sub {
     # Trim off the package root to determine the relative path.
     my $path = File::Spec->abs2rel($File::Find::name, $root);
+
+    # Portably deal with different OSes
+    if ($platforms{$^O}) { # Check if we are on a non-Unix platform
+      # Get path info from File::Spec, split apart
+      my (undef, $dir, $file) = File::Spec->splitpath($path);
+      my @dir = File::Spec->splitdir($dir);
+
+      # Reconstruct the path in Unix-style
+      $dir = File::Spec::Unix->catdir(@dir);
+      $path = File::Spec::Unix->catpath(undef, $dir, $file);
+    }
 
     # Test that the path is a file and then make sure it's not skipped
     if (-f $path && !$manifest->skipped($path)) {

Modified: branches/upstream/libtest-distmanifest-perl/current/t/01min-perl.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-distmanifest-perl/current/t/01min-perl.t?rev=34283&op=diff
==============================================================================
--- branches/upstream/libtest-distmanifest-perl/current/t/01min-perl.t (original)
+++ branches/upstream/libtest-distmanifest-perl/current/t/01min-perl.t Tue Apr 28 21:06:16 2009
@@ -3,7 +3,7 @@
 # t/01min-perl.t
 #  Tests that the minimum required Perl version matches META.yml
 #
-# $Id: 02fallback.t 5245 2009-02-09 03:38:28Z FREQUENCY at cpan.org $
+# $Id: 01min-perl.t 5666 2009-03-16 17:06:48Z FREQUENCY at cpan.org $
 #
 # All rights to this test script are hereby disclaimed and its contents
 # released into the public domain by the author. Where this is not possible,

Modified: branches/upstream/libtest-distmanifest-perl/current/t/01portability.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-distmanifest-perl/current/t/01portability.t?rev=34283&op=diff
==============================================================================
--- branches/upstream/libtest-distmanifest-perl/current/t/01portability.t (original)
+++ branches/upstream/libtest-distmanifest-perl/current/t/01portability.t Tue Apr 28 21:06:16 2009
@@ -3,7 +3,7 @@
 # t/01portability.t
 #  Tests if the distribution seems to be portable
 #
-# $Id: 02fallback.t 5245 2009-02-09 03:38:28Z FREQUENCY at cpan.org $
+# $Id: 01portability.t 5666 2009-03-16 17:06:48Z FREQUENCY at cpan.org $
 #
 # All rights to this test script are hereby disclaimed and its contents
 # released into the public domain by the author. Where this is not possible,

Modified: branches/upstream/libtest-distmanifest-perl/current/t/03core.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-distmanifest-perl/current/t/03core.t?rev=34283&op=diff
==============================================================================
--- branches/upstream/libtest-distmanifest-perl/current/t/03core.t (original)
+++ branches/upstream/libtest-distmanifest-perl/current/t/03core.t Tue Apr 28 21:06:16 2009
@@ -1,10 +1,9 @@
 #!/usr/bin/perl -T
 
-# t/02manifest-explicit.t
-#  Ensures MANIFEST file is up-to-date, when the files are specified
-#  explicitly.
+# t/03core.t
+#  Ensures the MANIFEST test output looks reasonable.
 #
-# $Id: 03core.t 5633 2009-03-14 20:00:03Z FREQUENCY at cpan.org $
+# $Id: 03core.t 5665 2009-03-16 16:19:40Z FREQUENCY at cpan.org $
 #
 # All rights to this test script are hereby disclaimed and its contents
 # released into the public domain by the author. Where this is not possible,




More information about the Pkg-perl-cvs-commits mailing list