diff options
author | Francois Pons <fpons@mandriva.com> | 2002-06-03 12:04:26 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-06-03 12:04:26 +0000 |
commit | eaae50adaa99db6a8d285f5a9122228a88484d2f (patch) | |
tree | a1c65961ca650be21638695fbf9861858777870e | |
parent | e87c5fb7813f00872dc3d0a383bf5bed1a67e575 (diff) | |
download | rpmtools-eaae50adaa99db6a8d285f5a9122228a88484d2f.tar rpmtools-eaae50adaa99db6a8d285f5a9122228a88484d2f.tar.gz rpmtools-eaae50adaa99db6a8d285f5a9122228a88484d2f.tar.bz2 rpmtools-eaae50adaa99db6a8d285f5a9122228a88484d2f.tar.xz rpmtools-eaae50adaa99db6a8d285f5a9122228a88484d2f.zip |
added missing log removed since gendistrib use perl-URPM.
-rwxr-xr-x | gendistrib | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -108,3 +108,28 @@ $urpm->build_base_files(depslist => "$root/Mandrake/base/depslist.ordered", provides => "$root/Mandrake/base/provides", compss => "$root/Mandrake/base/compss"); +#- check if there are NOTFOUND in dependancy, check if they are in other medium, warn the user. +foreach (0 .. $#{$urpm->{depslist}}) { + my $pkg = $urpm->{depslist}[$_]; + + foreach (split " ", $urpm->{deps}[$_]) { + /NOTFOUND_(.*)/ or next; + print STDERR $pkg->fullname . " requires [$1] which\n"; + if ($urpm->{provides}{$1}) { + print STDERR " is available on packages not listed in this medium or previous medium:\n"; + foreach (keys %{$urpm->{provides}{$1}}) { + my $dep_pkg = $urpm->{depslist}[$_]; + print STDERR " " . $dep_pkg->fullname . "\n"; + } + } else { + print STDERR " is not available in any medium listed\n"; + if (/NOTFOUND_(\D*)(\d+[\.\-\d]*)?(.*)?\.so\./) { + my $re = (quotemeta $1) . '(\d+[\.\-\d]*)' . (!$2 && "?") . '\.so\.'; + foreach (keys %{$urpm->{provides}}) { + /$re/ or next; + print STDERR " but a similar provides is available as [$_], need rebuild ?\n"; + } + } + } + } +} |