summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-12-17 00:42:13 +0100
committerFlorian Pritz <bluewind@xinu.at>2018-12-17 00:42:13 +0100
commit135686539f7d0e8c51555e37a334b9556fd55a19 (patch)
tree1c1a301abf0a920c4c509bd989fd30481d5d7b4c /lib
parent90535df46d0d8b4052497a9dc0beacd8c186066f (diff)
downloadApp-ArchLinux-PackagerTools-135686539f7d0e8c51555e37a334b9556fd55a19.tar.gz
App-ArchLinux-PackagerTools-135686539f7d0e8c51555e37a334b9556fd55a19.tar.xz
Initialize context in top level package
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/App/ArchLinux/PackagerTools.pm1
1 files changed, 1 insertions, 0 deletions
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}});