[libgeo-distance-perl] 01/08: Add patch to correct the reg_unit() call in the SYNOPSIS.
Bas Couwenberg
sebastic at xs4all.nl
Fri Jan 17 18:30:34 UTC 2014
This is an automated email from the git hooks/post-receive script.
sebastic-guest pushed a commit to branch master
in repository libgeo-distance-perl.
commit b66319e0942d8581d3eeb1bc07e52a00aa833cb5
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Fri Jan 17 18:09:06 2014 +0100
Add patch to correct the reg_unit() call in the SYNOPSIS.
Add patch to correct the reg_unit() call in the SYNOPSIS.
Thanks to Niko Tyni for the patch. (closes: #735682)
---
debian/changelog | 8 ++++++++
...ix-incorrect-reg_unit-example-in-SYNOPSIS.patch | 24 ++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 33 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 2dcd40a..5f9c742 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+libgeo-distance-perl (0.20-3) UNRELEASED; urgency=low
+
+ * Team upload.
+ * Add patch to correct the reg_unit() call in the SYNOPSIS.
+ Thanks to Niko Tyni for the patch. (closes: #735682)
+
+ -- Bas Couwenberg <sebastic at xs4all.nl> Fri, 17 Jan 2014 17:50:18 +0100
+
libgeo-distance-perl (0.20-2) UNRELEASED; urgency=low
* Change Vcs-Git to canonical URI (git://anonscm.debian.org)
diff --git a/debian/patches/0001-Fix-incorrect-reg_unit-example-in-SYNOPSIS.patch b/debian/patches/0001-Fix-incorrect-reg_unit-example-in-SYNOPSIS.patch
new file mode 100644
index 0000000..554c8d5
--- /dev/null
+++ b/debian/patches/0001-Fix-incorrect-reg_unit-example-in-SYNOPSIS.patch
@@ -0,0 +1,24 @@
+Bug: https://github.com/bluefeet/Geo-Distance/pull/9
+Bug-Debian: http://bugs.debian.org/735682
+From 08e4ef7c2262589c7797d3f3fcdced574e8c3bb9 Mon Sep 17 00:00:00 2001
+From: Niko Tyni <ntyni at debian.org>
+Date: Fri, 17 Jan 2014 16:04:17 +0200
+Subject: [PATCH] Fix incorrect reg_unit() example in SYNOPSIS
+
+As seen later in the documentation, the two argument form
+takes the radius first, not the name of the key.
+---
+ lib/Geo/Distance.pm | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/lib/Geo/Distance.pm
++++ b/lib/Geo/Distance.pm
+@@ -14,7 +14,7 @@ Geo::Distance - Calculate Distances and
+ use Geo::Distance;
+ my $geo = new Geo::Distance;
+ $geo->formula('hsin');
+- $geo->reg_unit( 'toad_hop', 200120 );
++ $geo->reg_unit( 200120, 'toad_hop );
+ $geo->reg_unit( 'frog_hop' => 6 => 'toad_hop' );
+ my $distance = $geo->distance( 'unit_type', $lon1,$lat1 => $lon2,$lat2 );
+ my $locations = $geo->closest(
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c85805f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Fix-incorrect-reg_unit-example-in-SYNOPSIS.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libgeo-distance-perl.git
More information about the Pkg-perl-cvs-commits
mailing list