diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-12-17 16:20:20 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-12-17 16:20:20 +0100 |
commit | 20e07437f413e338f2b54447133e1533f5262c13 (patch) | |
tree | c76b32b67ada1fdda9d52314a1f7445ebf9761eb /lib/App/ArchLinux/PackagerTools/CPAN.pm | |
parent | a64d07890544d2d2a503c52a6d92ff3e064c5585 (diff) | |
download | App-ArchLinux-PackagerTools-20e07437f413e338f2b54447133e1533f5262c13.tar.gz App-ArchLinux-PackagerTools-20e07437f413e338f2b54447133e1533f5262c13.tar.xz |
WIP Add cache
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'lib/App/ArchLinux/PackagerTools/CPAN.pm')
-rw-r--r-- | lib/App/ArchLinux/PackagerTools/CPAN.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/App/ArchLinux/PackagerTools/CPAN.pm b/lib/App/ArchLinux/PackagerTools/CPAN.pm index 2a2e7a2..de2a397 100644 --- a/lib/App/ArchLinux/PackagerTools/CPAN.pm +++ b/lib/App/ArchLinux/PackagerTools/CPAN.pm @@ -43,14 +43,14 @@ method new($class: $deps = {}) { } method new_no_defaults($class: $deps = {}) { - return $deps->{context}->{__PACKAGE__} if defined $deps->{context}->{__PACKAGE__}; + return $deps->{context}->{$class} if defined $deps->{context}->{$class}; my $self = {}; bless $self, $class; $self->{deps} = $deps; $self->{dist_lc_map} = {}; $self->{dists} = {}; - $deps->{context}->{__PACKAGE__} = $self; + $deps->{context}->{$class} = $self; $log->debug("Initialized new CPAN object"); return $self; } |