aboutsummaryrefslogtreecommitdiffstats
path: root/genbasefiles
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2000-09-03 17:03:33 +0000
committerFrancois Pons <fpons@mandriva.com>2000-09-03 17:03:33 +0000
commit6b947817a5c48e175a43f95ab6d59cfec58f4e67 (patch)
treebc3eff5bb42e0ad9839daf5719db55cb196b99d8 /genbasefiles
parent75d42db69052672a2e8ce38303577e826ff380f7 (diff)
downloadrpmtools-6b947817a5c48e175a43f95ab6d59cfec58f4e67.tar
rpmtools-6b947817a5c48e175a43f95ab6d59cfec58f4e67.tar.gz
rpmtools-6b947817a5c48e175a43f95ab6d59cfec58f4e67.tar.bz2
rpmtools-6b947817a5c48e175a43f95ab6d59cfec58f4e67.tar.xz
rpmtools-6b947817a5c48e175a43f95ab6d59cfec58f4e67.zip
*** empty log message ***
Diffstat (limited to 'genbasefiles')
-rwxr-xr-xgenbasefiles14
1 files changed, 13 insertions, 1 deletions
diff --git a/genbasefiles b/genbasefiles
index 5a68704..03411a9 100755
--- a/genbasefiles
+++ b/genbasefiles
@@ -44,15 +44,27 @@ sub main {
my @unresolved = $params->get_unresolved_provides_files();
if (@unresolved > 0) {
foreach (@unresolved) {
- print STDERR "found requires on file not yet found [$_], forcing a second pass\n";
+ print STDERR "found requires on file not yet found [$_], forcing two other linked pass\n";
}
#- cleaning.
$params->keep_only_cleaned_provides_files();
+ #- much more severe cleaning here, so we are sure with 2 pass.
+ #- else it may happen that a package need an inexistant file,
+ #- which will be in the provides forever, event after fixing the
+ #- package.
+ $params->{provides} = {};
+
+ #- compute (avoiding depslist computation on first one.
foreach (@files) {
print STDERR "reading (second pass) $_\n";
/\.rpm$/ ? $params->read_rpms($_) : $params->read_hdlists($_);
+ }
+ $params->keep_only_cleaned_provides_files();
+ foreach (@files) {
+ print STDERR "reading (third pass) $_\n";
+ /\.rpm$/ ? $params->read_rpms($_) : $params->read_hdlists($_);
$params->compute_depslist();
}
}