From 135686539f7d0e8c51555e37a334b9556fd55a19 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 17 Dec 2018 00:42:13 +0100 Subject: Initialize context in top level package Signed-off-by: Florian Pritz --- lib/App/ArchLinux/PackagerTools.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/App/ArchLinux') diff --git a/lib/App/ArchLinux/PackagerTools.pm b/lib/App/ArchLinux/PackagerTools.pm index 0bd602a..0fbd224 100644 --- a/lib/App/ArchLinux/PackagerTools.pm +++ b/lib/App/ArchLinux/PackagerTools.pm @@ -38,6 +38,7 @@ Returns a new instance. =cut method new($class: $deps = {}) { + $deps->{context} //= {}; $deps->{config} //= App::ArchLinux::PackagerTools::Config->new({$deps->%{context}}); $deps->{cpan} //= App::ArchLinux::PackagerTools::CPAN->new({$deps->%{context}}); $deps->{pacman} //= App::ArchLinux::PackagerTools::Pacman->new({$deps->%{context}}); -- cgit v1.2.3-24-g4f1b