diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-09-18 16:07:19 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-09-18 16:07:19 +0000 |
commit | 285637ea4904d4eb6b87510b446999faba9db52b (patch) | |
tree | de8a3751d764440cd947e6fc2b1214f55eced2f6 /URPM.pm | |
parent | eb7964172b2adfdb2dca493348089bbf7f26d5de (diff) | |
download | perl-URPM-285637ea4904d4eb6b87510b446999faba9db52b.tar perl-URPM-285637ea4904d4eb6b87510b446999faba9db52b.tar.gz perl-URPM-285637ea4904d4eb6b87510b446999faba9db52b.tar.bz2 perl-URPM-285637ea4904d4eb6b87510b446999faba9db52b.tar.xz perl-URPM-285637ea4904d4eb6b87510b446999faba9db52b.zip |
- fix regression in 2.00: we can't cache the platform, cache the result of
is_arch_compat instead
ie:
- revert commits on URPM.xs which introduced the cache on platform
- rename is_arch_compat to is_arch_compat__XS in URPM.xs
- create URPM::Package::is_arch_compat in URPM.pm
Diffstat (limited to 'URPM.pm')
-rw-r--r-- | URPM.pm | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -212,6 +212,15 @@ upgrade: ${\($pkg->flag_upgrade)} EODUMP } +my %arch_cache; +sub is_arch_compat { + my ($pkg) = @_; + my $arch = $pkg->arch; + exists $arch_cache{$arch} and return $arch_cache{$arch}; + + $arch_cache{$arch} = is_arch_compat__XS($pkg); +} + package URPM::Transaction; our @ISA = qw(); # help perl_checker |