summaryrefslogtreecommitdiffstats
path: root/script/perlpkg.pl
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-12-25 10:21:01 +0100
committerFlorian Pritz <bluewind@xinu.at>2018-12-25 10:21:01 +0100
commit28eab23842118e6fe7aa61c8dc8fb6219f53d1ac (patch)
tree80cecc829c72c901dd330125967eda5159dca9f6 /script/perlpkg.pl
parent3aedf7a4e2380b9e96b2b68bfd9fb13a33774c5d (diff)
downloadApp-ArchLinux-PackagerTools-28eab23842118e6fe7aa61c8dc8fb6219f53d1ac.tar.gz
App-ArchLinux-PackagerTools-28eab23842118e6fe7aa61c8dc8fb6219f53d1ac.tar.xz
Make script logic testable by moving to main package
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'script/perlpkg.pl')
-rwxr-xr-xscript/perlpkg.pl7
1 files changed, 2 insertions, 5 deletions
diff --git a/script/perlpkg.pl b/script/perlpkg.pl
index 03bdb92..195adc9 100755
--- a/script/perlpkg.pl
+++ b/script/perlpkg.pl
@@ -51,11 +51,8 @@ Log::Any::Adapter->set('Log4perl');
my $app = App::ArchLinux::PackagerTools->new();
use Data::Dumper;
-my $dists = $app->get_distributions_in_repo();
-my $dist_names = [map {$_->{dist_name}} $dists->@*];
-my $updateable = $app->get_updateable_packages($dist_names);
-my $pkgs = $app->add_maintainers($updateable);
-my $filtered_pkgs = $app->filter_by_maintainer($pkgs);
+
+my $filtered_pkgs = $app->get_filtered_updateable_packages();
print Dumper($filtered_pkgs);