aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-06-11 17:59:04 +0000
committerFrancois Pons <fpons@mandriva.com>2002-06-11 17:59:04 +0000
commit74c3cfe40e76d2cf047e7cbc57653298a460b658 (patch)
tree0455e964846482182d896763b9819646a6239a87 /URPM.pm
parenta3d672d23de228cb2955f5825869154b77a7f5e0 (diff)
downloadperl-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.pm24
1 files changed, 2 insertions, 22 deletions
diff --git a/URPM.pm b/URPM.pm
index 2d6bb85..4ba32ad 100644
--- a/URPM.pm
+++ b/URPM.pm
@@ -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
-}
-