r35021 - /trunk/dh-make-perl/lib/Debian/Dependencies.pm

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Fri May 8 13:58:01 UTC 2009


Author: dmn
Date: Fri May  8 13:57:55 2009
New Revision: 35021

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=35021
Log:
Dependencies: add sort() method

Modified:
    trunk/dh-make-perl/lib/Debian/Dependencies.pm

Modified: trunk/dh-make-perl/lib/Debian/Dependencies.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/lib/Debian/Dependencies.pm?rev=35021&op=diff
==============================================================================
--- trunk/dh-make-perl/lib/Debian/Dependencies.pm (original)
+++ trunk/dh-make-perl/lib/Debian/Dependencies.pm Fri May  8 13:57:55 2009
@@ -203,6 +203,18 @@
     Carp::croak("prune() is deprecated and does nothing");
 }
 
+=item sort
+
+Sorts the dependency list by packagee name, version and relation.
+
+=cut
+
+sub sort {
+    my( $self ) = @_;
+
+    @$self = sort { $a <=> $b } @$self;
+}
+
 =back
 
 =cut




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