summaryrefslogtreecommitdiffstats
path: root/urpm/mirrors.pm
Commit message (Collapse)AuthorAgeFilesLines
* Rework mirror protocol selection to favour encrypted protocolsDan Fandrich2021-09-041-3/+17
| | | | | | | | Previously, HTTP servers were preferred over everything, meaning that HTTPS servers were never used. Now, HTTPS servers have an edge over other protocols, but if another server is much closer geographically than others, it will still be used. If so, HTTP (and FTPS) will have an edge over FTP and RSYNC.
* Use https: when getting the mirrorlistDan Fandrich2021-08-311-3/+3
|
* bump copyrightThierry Vignaud2020-01-171-1/+1
|
* Update Mageia copyright statementsRémi Verschelde2017-04-261-0/+2
|
* Prefer http mirrors when using a mirrorlistAnssi Hannula2015-12-311-1/+3
| | | | | | | | | | Sort http mirrors to the beginning of the mirror list. This avoids an rsync mirror being selected as the mirror sometimes, which causes the preferred aria2 downloader from not being used. This also has the effect that in practice aria2 will only be given http mirrors. If this causes issues, the sorting code can be changed to reverse sort with the presence of "rsync://" instead.
* drop useless __END__Thierry Vignaud2015-10-091-1/+0
|
* drop very old CVS/SVN $Id tagsThierry Vignaud2015-09-021-1/+0
|
* only a couple func really are neededThierry Vignaud2013-03-211-1/+1
|
* convert a couple comments to PODThierry Vignaud2012-08-311-6/+14
|
* add basic POD documentationThierry Vignaud2012-08-311-0/+24
|
* s/mdv/mga/Thierry Vignaud2012-08-311-2/+2
|
* silent perl_checkerThierry Vignaud2012-03-271-1/+1
|
* perl_checker cleanupsThierry Vignaud2011-12-051-6/+6
|
* (_pick_one_) do not pick rsync medium if rsync is not installed (mga#3557)Thierry Vignaud2011-12-051-1/+7
|
* (_mandriva_mirrorlist) default to mageia product for upgrading from mdvThierry Vignaud2011-09-141-1/+2
| | | | (syncing with currently shipped urpmi)
* Synthesized commit during git-svn import combining previous Mandriva history ↵Mageia SVN-Git Migration2011-09-131-1/+1
| | | | | | | | | | | | 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 ------------------------------------------------------------------------
* reload mirror list cache if it's in an "old" formatChristophe Fergeau2009-12-081-0/+3
| | | | | | | | old mirror list caches didn't store the time of the product.id file. When such a file is encountered, make sure we invalidate the cache. Otherwise, when upgrading from a distro where the mirror list cache didn't have the product.id mtime to a distro where the mirror list cache would have it, the mirror list cache won't be invalidated
* don't use aria2 to fetch mirrorlist, fixes #53434Christophe Fergeau2009-10-291-1/+1
|
* make sure we don't use aria2 to fetch mirrorlistsChristophe Fergeau2009-10-211-1/+1
| | | | | | aria2 downloader currently doesn't work when we append a reason string to the api.mandriva.com URL, lamely fix that by making sure it's not used when grabbing a mirrorlist
* default to checking certificates when dowloading dataChristophe Fergeau2009-09-251-1/+1
|
* use https when getting files from api.mandriva.comChristophe Fergeau2009-08-311-2/+2
|
* append a 'reason' field to api.mandriva.com queries when the query isChristophe Fergeau2009-08-181-3/+12
| | | | meant to update the mirror list
* invalidate mirrorlist cache when distro version changesChristophe Fergeau2009-07-241-0/+5
| | | | | | | If mirrors.cache contains mirrors for 2009.1 and product.id changes to have version=2010.0, cache is used and urpmi.addmedia --distrib --mirrorlist will add 2009.1 mirrors. Store mtime of product.id in the mirror cache to properly detect when product.id was modified
* - library:Pascal Rigaux2008-10-141-1/+5
| | | | | o allow mdkapplet-upgrade-helper to force $MIRRORLIST distro version
* create urpm::mirrors::try_probe() as a alternative solution toPascal Rigaux2008-09-221-0/+21
| | | | | | urpm::mirrors::try() which ensure wrong path given by the user doesn't lead to mirrors being all blacklisted
* fix: use "&" instead of "," to join GET parameters in urlPascal Rigaux2008-09-061-1/+1
|
* create urpm::mirrors::list_urls() and use itPascal Rigaux2008-09-041-6/+19
| | | | | this fixes things like "mirrorlist: http://localmirror/dis/cooker/i586 $MIRRORLIST"
* - urpmi.addmediaPascal Rigaux2008-09-011-2/+5
| | | | | | o handle $URPMI_ADDMEDIA_REASON (special reason to give to api.mandriva.com/mirrors/... to allow statistics)
* set network_mtime in _pick_one_, it's cleaner (since we don't need to setPascal Rigaux2008-07-091-3/+5
| | | | | cache's network_mtime everytime we use the cache)
* simplifyPascal Rigaux2008-07-081-6/+4
|
* - urpmi.addmedia, urpmi.update:Pascal Rigaux2008-03-181-12/+36
| | | | | | | o urpmi.addmedia --mirrorlist handles a list of mirrors/mirrorlist: you can specify a mirror to use inside a local network, but it will default to standard mirrors when the local mirror is not available.
* create _expand() out of _list()Pascal Rigaux2008-03-181-6/+11
|
* create _pick_one_Pascal Rigaux2008-03-181-5/+14
| | | | | (needed for next commit)
* create _cache__may_clean_if_outdated() out of _pick_one()Pascal Rigaux2008-03-181-6/+19
|
* - urpmi, urpmi.addmedia, urpmi.update:Pascal Rigaux2008-02-251-2/+7
| | | | | o handle variables $ARCH/$RELEASE in mirrorlist
* - all tools:Pascal Rigaux2008-02-231-0/+212
o handle mirrorlist (need perl-Zone-TimeInfo patched for geolocalisation)