[libdancer2-perl] 01/02: add no-phone-home.patch disabling version check when creating new application via 'dancer2 -a'
Damyan Ivanov
dmn at moszumanska.debian.org
Tue Dec 5 21:46:12 UTC 2017
This is an automated email from the git hooks/post-receive script.
dmn pushed a commit to branch master
in repository libdancer2-perl.
commit cfa2426c2feb48bfb8b433a53449374273612f73
Author: Damyan Ivanov <dmn at debian.org>
Date: Tue Dec 5 21:39:06 2017 +0000
add no-phone-home.patch disabling version check when creating new application via 'dancer2 -a'
Closes: #883606
---
debian/patches/no-phone-home.patch | 25 +++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 26 insertions(+)
diff --git a/debian/patches/no-phone-home.patch b/debian/patches/no-phone-home.patch
new file mode 100644
index 0000000..e660413
--- /dev/null
+++ b/debian/patches/no-phone-home.patch
@@ -0,0 +1,25 @@
+Description: Remove version check when generating an application tree
+ This is a privacy breach and serves no real purpose for the package in
+ Debian/stable
+Forwarded: not-needed
+Author: Damyan Ivanov <dmn at debian.org>
+Bug-Debian: https://bugs.debian.org/883606
+
+--- a/lib/Dancer2/CLI/Command/gen.pm
++++ b/lib/Dancer2/CLI/Command/gen.pm
+@@ -26,7 +26,6 @@ sub opt_spec {
+ [ 'path|p=s', 'application path (default: current directory)',
+ { default => '.' } ],
+ [ 'overwrite|o', 'overwrite existing files' ],
+- [ 'no-check|x', 'don\'t check latest Dancer2 version (requires internet)' ],
+ [ 'skel|s=s', 'skeleton directory' ],
+ );
+ }
+@@ -57,7 +56,6 @@ sub validate_args {
+
+ sub execute {
+ my ($self, $opt, $args) = @_;
+- $self->_version_check() unless $opt->{'no_check'};
+
+ my $dist_dir = dist_dir('Dancer2');
+ my $skel_dir = $opt->{skel} || catdir($dist_dir, 'skel');
diff --git a/debian/patches/series b/debian/patches/series
index 284c926..0f62a91 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
remove-eumm-version-req.patch
+no-phone-home.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdancer2-perl.git
More information about the Pkg-perl-cvs-commits
mailing list