[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Dancer2 no phone home patch



Hi,

I'm the maintainer of perl-Dancer2 in Fedora. A while back, I
shamelessly stole the patch that prevents Dancer2 from checking
there is no later version of it.

https://salsa.debian.org/perl-team/modules/packages/libdancer2-perl/-/blob/master/debian/patches/no-phone-home.patch

Dancer2 made changes to the CLI script with version 0.301002
and I had to rebase the script to the new version. Attached is the
updated patch. Hopefully, this will be useful to somebody.

Regards,
Emmanuel
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

--- a/lib/Dancer2/CLI/Gen.pm
+++ b/lib/Dancer2/CLI/Gen.pm
@@ -51,14 +51,6 @@ option overwrite => (
     default  => 0,
 );
 
-option no_check => (
-    is       => 'ro',
-    short    => 'x',
-    doc      => "don't check latest Dancer2 version (default: check - requires internet)",
-    required => 0,
-    default  => 0,
-);
-
 option skel => (
     is         => 'ro',
     short      => 's',
@@ -92,7 +84,6 @@ dots, hyphens or start with a number.
 
 sub run {
     my $self = shift;
-    $self->_version_check unless $self->no_check;
 
     my $app_name = $self->application;
     my $app_file = $self->_get_app_file( $app_name );

Reply to: