| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
regression:
"(selected2local_and_blists) prevent having duplicate packages in blists
(thus fixing downloading twice noarch packages on x86_64 with
--download-all (mga#4867))"
|
| |
|
|
|
|
|
| |
(thus fixing downloading twice noarch packages on x86_64 with
--download-all (mga#4867))
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
with Magiea.
This commit consitsts of the following subversion commits:
------------------------------------------------------------------------
r1928 | dmorgan | 2011-09-13 21:44:28 +0100 (Tue, 13 Sep 2011) | 1 line
Import urpmi
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It's sometimes possible that a package is available from both a
local medium (CDROM) and a distant one. This causes problems
when the package isn't signed with the same key (this is bad
but happens on MES5 install CDs) as urpmi tends to get confused
about where a package comes from and then check the package against
the wrong key.
Packages are assigned IDs by urpmi, and these IDs are
used to figure out the package media. This ID is also used as an
identifier to "recognize" identical packages coming from different
media, so we need to be careful when manipulating it. In particular,
we can't assign the right ID to every package right away because then
this would break package downloading (we'd download packages available
on local media).
When processing packages to download, if we encounter a local
package, we assign it the right ID. This assumes the list of media
in the blist are sorted by order of relevance (ie prioritary ones
first).
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
When the same packages is available from different medias (main/release
and main/update for example), urpmi can forget from which media it
downloaded the package, and this causes issues with key checking. This
commit makes sure we are using the right package id for the package we
downloaded (the same package will have different IDs if it's available
from different medias).
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
o allow "retry" on aria2 download failure
|
|
|
|
|
|
| |
o do not use --max-file-not-found=3 when downloading rpms
(since rpms are "versioned")
|
|
|
|
|
|
|
|
|
| |
- userdir() does not modify $urpm->{cachedir} anymore,
if you must ensure $urpm->{cachedir} to be modified, use
ensure_valid_cachedir()
- valid_cachedir() gives you a valid cachedir (works for root or simple-user),
but does not modify $urpm->{cachedir}
|
|
|
|
|
| |
userdir() in most cases
|
|
|
|
|
| |
- use it and sync_rel()
|
| |
|
| |
|
|
|
|
| |
blist->{list}
|
|
|
|
| |
of blist->{list}
|
| |
|
|
|
|
|
| |
and make selected2local_and_blists() do the computation
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
download_packages_of_distant_media()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
use $blists instead
- create urpm::get_pkgs::selected2local_and_blists(),
which is similar to selected2list(), but returns a $blists
- the following functions have been modified to use a $blists instead of $list:
urpm::cdrom::copy_packages_of_removable_media()
urpm::install::prepare_transaction()
urpm::removable::try_mounting_non_cdroms()
urpm::get_pkgs::download_packages_of_distant_media()
- adapt code to use $blists
|
| |
|
| |
|
|
|
|
|
| |
it in previous loop
|
| |
|
|
|
|
|
|
| |
so the real pb here is $cachedir/partial being fucked up (occurs for example
when /var is being removed during urpmi...)
|
|
|
|
|
| |
o fix displaying "files are missing" (regression introduced in 5.6)
|
| |
|
|
|
|
|
| |
(it won't hurt urpm::removable::_do_the_copy())
|
| |
|
| |
|
|
|
|
|
| |
download_packages_of_distant_media()
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
downloaded rpm is bad.
this adds a new callback for rpmdrake: "bad_rpms"
this modifies the API of urpm::get_pkgs::download_packages_of_distant_media
($error_sources is now { url => reason } instead of { id => url })
|
| |
|
|
|
|
|
|
| |
o have fatal errors on some errors that must not happen (eg: moving rpm from
download dir to cachedir)
|
|
|
|
|
| |
o --install-src as user now works for remote medium
|
| |
|
|
|
|
|
|
|
|
| |
o fix "urpmi --install-src" (regression introduced in 4.10.9)
nb: packages_by_name can't be used here since $urpm->{provides} doesn't have src.rpm
so a full search is needed
|