summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2021-06-06 10:00:56 +0200
committerFlorian Pritz <bluewind@xinu.at>2021-06-06 10:00:56 +0200
commitb33a064dbfeeed68c9256b3678d63d444a474ddd (patch)
treec9e722f9eafac47f1b930b8222cf57276ab9693a
parentd1dd53f7b083b4fa29a34dcc4fd214b9c5618a22 (diff)
downloadApp-ArchLinux-PackagerTools-b33a064dbfeeed68c9256b3678d63d444a474ddd.tar.gz
App-ArchLinux-PackagerTools-b33a064dbfeeed68c9256b3678d63d444a474ddd.tar.xz
Dump package list as json
Makes processing in other scripts easier. Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xscript/perlpkg.pl3
1 files changed, 2 insertions, 1 deletions
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