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 /urpm.pm | |
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
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 14 |
1 files changed, 14 insertions, 0 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(); } |