Skip to content

Commit

Permalink
Comment out all uses of Data::Printer (it's only debug code)
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaran committed Nov 13, 2019
1 parent ca78eb4 commit 77254a5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions bin/download-package-lists.pl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
use File::Touch;
use Try::Tiny;

use Data::Printer;
#use Data::Printer;

our $VERSION = '0.1';
our $HOMEPAGE = 'https://github.com/xtaran/dist-detect';
Expand Down Expand Up @@ -171,7 +171,7 @@
$distribution = ucfirst($base_url =~ s{^.*/([^/-]+)(-[^/]*)?/?$}{$1}r);

my @debug = ( $base_url, $dist, $distribution, $version, $codename, $suite );
p @debug;
#p @debug;
}

my $main =
Expand Down
8 changes: 4 additions & 4 deletions bin/find-openssh-versions-in-package-lists.pl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
use App::DistDetect::SSH::Banner;

# DEBUG HELPER
use Data::Printer;
#use Data::Printer;

my $pkglistdir = path("$Bin/../package-lists")->make_path;
my $schema_dir = path("$Bin/../sql")->make_path;
Expand Down Expand Up @@ -96,7 +96,7 @@
$tags);

my @banners = expected_banner_from_version($version, $os);
p @banners;
#p @banners;
foreach my $banner (@banners) {
$db->query('replace into banner2version(version,os,banner,source) '.
'values (?, ?, ?, ?)',
Expand Down Expand Up @@ -174,7 +174,7 @@
# Also list the initial version for that release
push(@upd_counter_values, $v_unchanged);

p @upd_counter_values;
#p @upd_counter_values;

foreach my $no_sec_upd_version (@upd_counter_values) {
say("$no_sec_upd_version | ".($local_tags?"[$local_tags] ":'').
Expand All @@ -186,7 +186,7 @@
path($pkglist)->stat->mtime, $local_tags);

my @banners = expected_banner_from_version($no_sec_upd_version, $os);
p @banners;
#p @banners;
foreach my $banner (@banners) {
$db->query('replace into banner2version(version,os,banner,source) '.
'values (?, ?, ?, ?)',
Expand Down
4 changes: 2 additions & 2 deletions bin/scrap-wiki-ubuntu-releases.pl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
use Mojo::UserAgent;
use Mojo::SQLite;

use Data::Printer;
#use Data::Printer;

my $url = 'https://wiki.ubuntu.com/Releases';

Expand All @@ -52,7 +52,7 @@
$_->find('td')->each(
sub {
my $text = $_->all_text;
p $text;
#p $text;
});
});
});
2 changes: 1 addition & 1 deletion lib/App/DistDetect/SSH/Banner.pm
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ require Exporter;
our @ISA = qw(Exporter);

# DEBUG HELPER
use Data::Printer;
#use Data::Printer;

=head1 FUNCTIONS
Expand Down
2 changes: 1 addition & 1 deletion lib/DPKG/Parse/FromHandle.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use Class::C3;
use base 'DPKG::Parse';

# DEBUG HELPER
use Data::Printer;
#use Data::Printer;

sub new {
my $self = shift;
Expand Down

0 comments on commit 77254a5

Please sign in to comment.