summaryrefslogtreecommitdiffstats
path: root/lib/App/ArchLinux/PackagerTools.pm
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-12-17 00:38:24 +0100
committerFlorian Pritz <bluewind@xinu.at>2018-12-17 00:38:24 +0100
commit90535df46d0d8b4052497a9dc0beacd8c186066f (patch)
tree147063c319cc1469d15af6f5e8c1355997ca0d7f /lib/App/ArchLinux/PackagerTools.pm
parentd7cd126cc8326f42713c20d2d95091156b44e58f (diff)
downloadApp-ArchLinux-PackagerTools-90535df46d0d8b4052497a9dc0beacd8c186066f.tar.gz
App-ArchLinux-PackagerTools-90535df46d0d8b4052497a9dc0beacd8c186066f.tar.xz
Use context variable to track singletons
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'lib/App/ArchLinux/PackagerTools.pm')
-rw-r--r--lib/App/ArchLinux/PackagerTools.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/App/ArchLinux/PackagerTools.pm b/lib/App/ArchLinux/PackagerTools.pm
index a4cd69e..0bd602a 100644
--- a/lib/App/ArchLinux/PackagerTools.pm
+++ b/lib/App/ArchLinux/PackagerTools.pm
@@ -38,9 +38,9 @@ Returns a new instance.
=cut
method new($class: $deps = {}) {
- $deps->{config} //= App::ArchLinux::PackagerTools::Config->new();
- $deps->{cpan} //= App::ArchLinux::PackagerTools::CPAN->new();
- $deps->{pacman} //= App::ArchLinux::PackagerTools::Pacman->new({$deps->%{cpan}});
+ $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}});
return $class->new_no_defaults($deps);
}