From b33a064dbfeeed68c9256b3678d63d444a474ddd Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 6 Jun 2021 10:00:56 +0200 Subject: Dump package list as json Makes processing in other scripts easier. Signed-off-by: Florian Pritz --- script/perlpkg.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'script') diff --git a/script/perlpkg.pl b/script/perlpkg.pl index 195adc9..c78a05e 100755 --- a/script/perlpkg.pl +++ b/script/perlpkg.pl @@ -8,6 +8,7 @@ use strict; use Function::Parameters; use Log::Any::Adapter; use Log::Log4perl qw(:easy); +use JSON; use App::ArchLinux::PackagerTools; @@ -54,7 +55,7 @@ use Data::Dumper; my $filtered_pkgs = $app->get_filtered_updateable_packages(); -print Dumper($filtered_pkgs); +print encode_json($filtered_pkgs); # TODO generate new pacakge pkgbuild # TODO build -- cgit v1.2.3-24-g4f1b