diff options
author | Florian Pritz <bluewind@xinu.at> | 2021-06-06 10:00:56 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2021-06-06 10:00:56 +0200 |
commit | b33a064dbfeeed68c9256b3678d63d444a474ddd (patch) | |
tree | c9e722f9eafac47f1b930b8222cf57276ab9693a | |
parent | d1dd53f7b083b4fa29a34dcc4fd214b9c5618a22 (diff) | |
download | App-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-x | script/perlpkg.pl | 3 |
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 |