diff options
author | Francois Pons <fpons@mandriva.com> | 2002-06-11 17:59:04 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-06-11 17:59:04 +0000 |
commit | 74c3cfe40e76d2cf047e7cbc57653298a460b658 (patch) | |
tree | 0455e964846482182d896763b9819646a6239a87 /URPM.pm | |
parent | a3d672d23de228cb2955f5825869154b77a7f5e0 (diff) | |
download | perl-URPM-74c3cfe40e76d2cf047e7cbc57653298a460b658.tar perl-URPM-74c3cfe40e76d2cf047e7cbc57653298a460b658.tar.gz perl-URPM-74c3cfe40e76d2cf047e7cbc57653298a460b658.tar.bz2 perl-URPM-74c3cfe40e76d2cf047e7cbc57653298a460b658.tar.xz perl-URPM-74c3cfe40e76d2cf047e7cbc57653298a460b658.zip |
0.04-1mdk
Diffstat (limited to 'URPM.pm')
-rw-r--r-- | URPM.pm | 24 |
1 files changed, 2 insertions, 22 deletions
@@ -6,7 +6,7 @@ use vars qw($VERSION @ISA); require DynaLoader; @ISA = qw(DynaLoader); -$VERSION = '0.03'; +$VERSION = '0.04'; bootstrap URPM $VERSION; @@ -66,7 +66,7 @@ sub traverse_tag { } } elsif ($tag eq 'triggeredby' || $tag eq 'path') { foreach (@{$urpm->{depslist} || []}) { - if (grep { exists $names{$_} } $_->files) { + if (grep { exists $names{$_} } $_->files, grep { /^\// } $_->provides_nosense) { $callback and $callback->($_); ++$count; } @@ -128,23 +128,3 @@ sub relocate_depslist { $relocated_entries; } -#- resolve requires using requested tag, keep resolution state to speed process. -#- a requested package is marked to be installed, once done, a upgrade flag or -#- installed flag is set according to needs of package. -#- other required package will have required flag set along with upgrade flag or -#- installed flag. -#- base flag should always been installed or upgraded. -#- the following options are recognized : -#- check : check requires of installed packages. -sub resolve_requires { - my ($urpm, $db, $state, %options); - my (@packages); - - #- get package that need to be evaluated. - foreach (0 .. $#{$urpm->{depslist}}) { - my $pkg = $urpm->{depslist}[$_]; - $pkg->flag_requested && !($pkg->flag_installed || $pkg->flag_upgrade) and push @packages, $_; - } - #TODO -} - |