diff options
author | Francois Pons <fpons@mandriva.com> | 2003-09-06 16:00:08 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-09-06 16:00:08 +0000 |
commit | e8bd73f457e7ad957ce06ad6ceb7ecc1fd973aa8 (patch) | |
tree | 9dfe737aa9875afc2ef6dd240b4074c8502f65dc | |
parent | 63e88d1369bd72101cd729d6f8c1c6f4c1c4b768 (diff) | |
download | urpmi-e8bd73f457e7ad957ce06ad6ceb7ecc1fd973aa8.tar urpmi-e8bd73f457e7ad957ce06ad6ceb7ecc1fd973aa8.tar.gz urpmi-e8bd73f457e7ad957ce06ad6ceb7ecc1fd973aa8.tar.bz2 urpmi-e8bd73f457e7ad957ce06ad6ceb7ecc1fd973aa8.tar.xz urpmi-e8bd73f457e7ad957ce06ad6ceb7ecc1fd973aa8.zip |
4.4-33mdk
-rw-r--r-- | urpm.pm | 14 | ||||
-rw-r--r-- | urpmi.spec | 8 |
2 files changed, 21 insertions, 1 deletions
@@ -856,12 +856,14 @@ sub configure { unless ($options{noskipping}) { $urpm->compute_flags($urpm->get_packages_list($urpm->{skiplist}, $options{skip}), skip => 1, callback => sub { my ($urpm, $pkg) = @_; + $pkg->is_arch_compat or return; $urpm->{error}(N("skipping package %s", scalar($pkg->fullname))); }); } unless ($options{noinstalling}) { $urpm->compute_flags($urpm->get_packages_list($urpm->{instlist}, $options{inst}), disable_obsolete => 1, callback => sub { my ($urpm, $pkg) = @_; + $pkg->is_arch_compat or return; $urpm->{log}(N("would install instead of upgrade package %s", scalar($pkg->fullname))); }); } @@ -1997,6 +1999,18 @@ this could happen if you mounted manually the directory when creating the medium } } + foreach (@{$urpm->{media}}) { + unlink "$urpm->{statedir}/names.$_->{name}"; + if (defined $_->{start} && defined $_->{end}) { + local *F; + open F, ">$urpm->{statedir}/names.$_->{name}"; + foreach ($_->{start} .. $_->{end}) { + print F $urpm->{depslist}[$_]->name."\n"; + } + close F; + } + } + #- this file is written in any cases. $urpm->write_config(); } @@ -2,7 +2,7 @@ Name: urpmi Version: 4.4 -Release: 32mdk +Release: 33mdk License: GPL Source0: %{name}.tar.bz2 Source1: %{name}.logrotate @@ -202,6 +202,12 @@ $urpm->update_media(nolock => 1, nopubkey => 1); %changelog +* Sat Sep 6 2003 François Pons <fpons@mandrakesoft.com> 4.4-33mdk +- added automatic generation of /var/lib/urpmi/names.<medium> + for completion to be faster. +- skipped or installed entries are first tested against + compatible arch. + * Fri Sep 5 2003 François Pons <fpons@mandrakesoft.com> 4.4-32mdk - fixed symlink in current working directory. - added fixes from gc (signature checking improvement and |