]> git.donarmstrong.com Git - debhelper.git/commitdiff
r449: * dh_perl update
authorjoey <joey>
Sun, 25 Feb 2001 07:36:49 +0000 (07:36 +0000)
committerjoey <joey>
Sun, 25 Feb 2001 07:36:49 +0000 (07:36 +0000)
Debian/Debhelper/Dh_Lib.pm
debian/changelog
dh_perl

index e17913eda9c9cd5dd0ab84eaf1ba66a61cd8e47d..5ed9d163b22c09d098c7f0e868941f2d4342ff54 100644 (file)
@@ -60,9 +60,7 @@ sub init {
        # the default, doing them all.
        if (! defined $dh{DOPACKAGES} || ! @{$dh{DOPACKAGES}}) {
                if ($dh{DOINDEP} || $dh{DOARCH} || $dh{DOSAME}) {
-                       # User specified that all arch (in)dep package be 
-                       # built, and there are none of that type.
-                       error("I have no package to act on");
+                       error("You asked that all arch in(dep) packages be built, but there are none of that type.");
                }
                push @{$dh{DOPACKAGES}},@allpackages;
        }
index bd59672e50a28f0e1771139d3c5da3cd9456bae1..15109a625ee9c6ffda18390993119e3a176c993c 100644 (file)
@@ -1,3 +1,9 @@
+debhelper (3.0.8) unstable; urgency=low
+
+  * dh_perl update
+
+ -- Joey Hess <joeyh@debian.org>  Sat, 24 Feb 2001 23:31:31 -0800
+
 debhelper (3.0.7) unstable; urgency=low
 
   * dh_makeshlibs: only generate call to ldconfig if it really looks like 
diff --git a/dh_perl b/dh_perl
index 64cb362bc8bc755092c6145ec2bf3cdce3d7201b..8bdfdad824c70a10c57f3802209cfb15f1084f20 100755 (executable)
--- a/dh_perl
+++ b/dh_perl
@@ -36,6 +36,12 @@ full perl package. If so, you can pass the -d option to make dh_perl generate
 a dependency on the correct base package. This is only necessary for some
 packages that are included in the base system.
 
+=item B<-V>
+
+By default, scripts and architecture independent modules don't depend
+on any specific version of perl.  The -V option causes the current
+version of the perl (or perl-base with -d) package to be specified.
+
 =item I<library dirs>
 
 If your package installs perl modules in non-standard
@@ -107,7 +113,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
        my $perl_depends = $perl;
        if ($deps & XS_MODULE or $dh{V_FLAG_SET})
        {
-           ($version) = `dpkg -p $perl` =~ /^Version:\s*(\S+)/m
+           ($version) = `dpkg -s $perl` =~ /^Version:\s*(\S+)/m
                unless $version;
 
            $perl_depends .= " (>= $version)";