diff options
author | Francois Pons <fpons@mandriva.com> | 2000-05-02 08:45:28 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2000-05-02 08:45:28 +0000 |
commit | f80fa3b76df681f4dc2837cd2192247cfe2c0d7c (patch) | |
tree | 14e8254b8c2f5507fd9a9f37358e58512300d09a /perl-install | |
parent | f3807275cf85b2081526cbe1a0e559e183741af3 (diff) | |
download | drakx-backup-do-not-use-f80fa3b76df681f4dc2837cd2192247cfe2c0d7c.tar drakx-backup-do-not-use-f80fa3b76df681f4dc2837cd2192247cfe2c0d7c.tar.gz drakx-backup-do-not-use-f80fa3b76df681f4dc2837cd2192247cfe2c0d7c.tar.bz2 drakx-backup-do-not-use-f80fa3b76df681f4dc2837cd2192247cfe2c0d7c.tar.xz drakx-backup-do-not-use-f80fa3b76df681f4dc2837cd2192247cfe2c0d7c.zip |
*** empty log message ***
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/install_any.pm | 4 | ||||
-rw-r--r-- | perl-install/pkgs.pm | 16 |
2 files changed, 14 insertions, 6 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index 82ac04c82..371969337 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -420,11 +420,11 @@ sub setAuthentication { $o->pkg_install("ypbind"); my $domain = $o->{netc}{NISDOMAIN}; $domain || $nis ne "broadcast" or die _("Can't use broadcast with no NIS domain"); - my $t = $domain ? "domain $domain" . ($nis_server ne "broadcast" && " server") + my $t = $domain ? "domain $domain" . ($nis ne "broadcast" && " server") : "ypserver"; substInFile { $_ = "#~$_" unless /^#/; - $_ .= "$t $nis_server\n" if eof; + $_ .= "$t $nis\n" if eof; } "$p/etc/yp.conf"; network::write_conf("$p/etc/sysconfig/network", $o->{netc}); } diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm index 6a36eb9aa..198df945a 100644 --- a/perl-install/pkgs.pm +++ b/perl-install/pkgs.pm @@ -465,6 +465,9 @@ sub getDeps($) { my $f = install_any::getFile("depslist.ordered") or die "can't find dependencies list"; + #- beware of heavily mismatching depslist.ordered file against hdlist files. + my $mismatch = 0; + #- update dependencies list, provides attributes are updated later #- cross reference to be resolved on id (think of loop requires) #- provides should be updated after base flag has been set to save @@ -473,9 +476,11 @@ sub getDeps($) { my ($name, $version, $release, $sizeDeps) = /^(\S*)-([^-\s]+)-([^-\s]+)\s+(.*)/; my $pkg = $packages->[0]{$name}; - $pkg or log::l("ignoring package $name-$version-$release in depslist is not in hdlist"), next; - $version eq packageVersion($pkg) and $release eq packageRelease($pkg) - or log::l("ignoring package $name-$version-$release in depslist mismatch version or release in hdlist"), next; + $pkg or + log::l("ignoring $name-$version-$release in depslist is not in hdlist"), $mismatch = 1, next; + $version eq packageVersion($pkg) and $release eq packageRelease($pkg) or + log::l("ignoring $name-$version-$release in depslist mismatch version or release in hdlist"), $mismatch = 1, next; + $pkg->{sizeDeps} = $sizeDeps; #- check position of package in depslist according to precomputed @@ -483,12 +488,15 @@ sub getDeps($) { #- above warning have chance to raise an exception here, but may help #- for debugging. my $i = scalar @{$packages->[1]}; - $i >= $pkg->{medium}{min} && $i <= $pkg->{medium}{max} or die "depslist.ordered mismatch against hdlist files"; + $i >= $pkg->{medium}{min} && $i <= $pkg->{medium}{max} or $mismatch = 1; #- package are already sorted in depslist to enable small transaction and multiple medium. push @{$packages->[1]}, $pkg; } + #- check for mismatching package, it should breaj with above die unless depslist has too many errors! + $mismatch and die "depslist.ordered mismatch against hdlist files"; + #- check for same number of package in depslist and hdlists. scalar(keys %{$packages->[0]}) == scalar(@{$packages->[1]}) or die "depslist.ordered has not same package as hdlist files"; } |