[SCM] Debian packaging of libsoftware-license-perl branch, master, updated. debian/0.103004-2-25-g03b6230

Dominique Dumont dod at debian.org
Wed Dec 12 11:28:01 UTC 2012


The following commit has been merged in the master branch:
commit 8627a2ed9822606d4a91e0541aa6ddb6b3ab4611
Author: Dominique Dumont <dod at debian.org>
Date:   Tue Dec 11 19:11:35 2012 +0100

    backward compat patch: added dep-3 header and deprecation warning

diff --git a/debian/patches/backward-compat b/debian/patches/backward-compat
index 565622f..81fca8e 100644
--- a/debian/patches/backward-compat
+++ b/debian/patches/backward-compat
@@ -1,6 +1,10 @@
+Description: ensure backward compatibility
+ Patches done for 0.103004-2 were modified to follow upstream advices. This modification are not backward compatible. This patch provides this backward compatibility.
+ .
+ This patch should be dropped once the reverse deps are adapted to the new API.
 --- a/lib/Software/License.pm
 +++ b/lib/Software/License.pm
-@@ -11,10 +11,15 @@
+@@ -11,10 +11,17 @@
  use Sub::Install ();
  use Text::Template ();
  
@@ -10,7 +14,9 @@
    my ($class, $arg) = @_;
  
 +  if ($arg->{short_name}) {
-+         return Software::LicenseUtils->new_from_short_name($arg) ;
++	  Carp::carp "short_name parameter in Software::License->new is deprecated. Use ",
++		"Software::LicenseUtils::new_form_short_name" ;
++      return Software::LicenseUtils->new_from_short_name($arg) ;
 +  }
 +
    Carp::croak "no copyright holder specified" unless $arg->{holder};

-- 
Debian packaging of libsoftware-license-perl



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