summaryrefslogtreecommitdiffstats
path: root/urpm/media.pm
Commit message (Collapse)AuthorAgeFilesLines
* much nicer userdir() functions:Pascal Rigaux2008-09-041-5/+3
| | | | | | | | | - 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}
* if we use metalink, don't try various mirrors, aria2 will take care of ↵Pascal Rigaux2008-09-031-2/+10
| | | | everything
* use sync_rel() instead of sync_url()Pascal Rigaux2008-09-031-5/+5
| | | | | (this requires changing _new_distribconf_and_download parameters)
* modify _probe_with_try_list() to be able to use sync_rel()Pascal Rigaux2008-09-031-5/+6
|
* simplify (as suggested by perl_checker)Pascal Rigaux2008-09-031-3/+2
|
* create urpm::download::sync_url() and use itPascal Rigaux2008-09-031-2/+2
|
* use urpm::download::sync_rel()Pascal Rigaux2008-09-031-2/+2
|
* - fix _synthesis_dir() (from previous commit)Pascal Rigaux2008-09-031-8/+14
| | | | | | - create _url_with_synthesis_rel() out of _url_with_synthesis() and use it - use sync_rel()
* - create _synthesis_dir_rel() out of _synthesis_dir()Pascal Rigaux2008-09-031-5/+11
| | | | | - fix typo in previous commit
* create urpm::download::sync_rel() and use itPascal Rigaux2008-09-031-3/+3
|
* minimal re-indent to make things clearPascal Rigaux2008-08-211-2/+3
|
* shut up the "adding medium "Virtual"" when using --synthesis or --use-distribPascal Rigaux2008-07-101-5/+5
|
* - urpmi.addmediaPascal Rigaux2008-07-081-1/+3
| | | | | o --interactive: fix selecting "noauto" media (#39522)
* skip non-updates media before doing ask_media Pascal Rigaux2008-07-081-5/+6
| | | | | | (for urpmi.addmedia --interactive), otherwise we prompt for a media, then discard it
* with --urpmi-root, we do not use statedir_media_info_file to allow ↵Pascal Rigaux2008-07-071-1/+4
| | | | compatibility with older urpmi
* use db_open_or_die_()Pascal Rigaux2008-07-011-1/+1
|
* - all tools:Pascal Rigaux2008-06-241-3/+23
| | | | | | | | o statedir files are now in /var/lib/urpmi/<medium-name>/ for eg: /var/lib/urpmi/synthesis.hdlist.<medium-name> is now /var/lib/urpmi/<medium-name>/synthesis.hdlist.cz it allows easier medium update without using urpmi.update (#31893)
* use @media_info_prefix_suffix and statedir_media_info_file()Pascal Rigaux2008-06-241-2/+11
| | | | | (useful for next commit)
* create statedir_media_info_basename() and use itPascal Rigaux2008-06-241-3/+8
|
* cleanupPascal Rigaux2008-06-241-8/+7
|
* - urpmi.addmedia, urpmi.update:Pascal Rigaux2008-06-051-2/+2
| | | | | o fix --no-md5sum (regression introduced in 5.20) (#41237)
* - urpmi.addmedia, urpmi.update:Pascal Rigaux2008-05-151-8/+24
| | | | | | | o check downloaded MD5SUM is not invalid HTML code, and try another mirror from mirrorlist (#39918) (useful for servers not returning a valid HTTP error)
* display "reconfiguring urpmi" only if the reconfig.urpmi magic is foundPascal Rigaux2008-05-151-2/+2
|
* - urpmi.addmedia, urpmi.update:Pascal Rigaux2008-05-151-2/+14
| | | | | | o check downloaded synthesis is not invalid HTML code (#39918) (useful for servers not returning a valid HTTP error)
* - urpmi.addmedia, urpmi.update:Pascal Rigaux2008-05-151-2/+2
| | | | | | | o fix checking synthesis MD5SUM ie fix typo
* - urpmfPascal Rigaux2008-04-011-0/+6
| | | | | | o in some cases (iso on disk), the hdlist is not available in media/xxx/media_info/, but we can use the statedir copy. So use it
* - urpmi.addmedia:Pascal Rigaux2008-03-311-3/+5
| | | | | | o --mirrorlist: if the retrieved media.cfg is broken, try another mirror (#39591, it also workarounds #39592)
* - urpmi.addmedia, urpmi.update:Pascal Rigaux2008-03-311-2/+3
| | | | | | o correctly handle media with no xml-info when using "xml-info: always" (#39521)
* create _maybe_in_statedir_MD5SUM() out of _any_media_info__or_download() for ↵Pascal Rigaux2008-03-311-3/+8
| | | | next commit
* add_distrib_media(): be sure to override "with-dir" when calling add_medium()Pascal Rigaux2008-03-281-1/+1
| | | | | (gurpmi.addmedia was plaggued by this, but it is fixed in gurpmi.addmedia too)
* nicer error messagePascal Rigaux2008-03-061-1/+1
|
* simplifyPascal Rigaux2008-03-031-1/+1
|
* correctly name function since it's outside of its modulePascal Rigaux2008-03-031-2/+2
|
* - urpmq:Pascal Rigaux2008-03-031-0/+21
| | | | | | | | o --list: speed it up (2.5x faster, and 6x faster with names.<medium>) - all tools: o restore generation of /var/lib/urpmi/names.<medium>, but it is now done in urpmq/urpmi/urpmf (and so only if used as root)
* - create non_modified_media() and use itPascal Rigaux2008-03-031-8/+14
| | | | | - rename _parse_media() into parse_media() for next commit
* - urpmf, urpmq:Pascal Rigaux2008-03-031-2/+2
| | | | | o never display raw downloader output, otherwise output is very messy (#38125)
* move is_iso to urpm::media and rename itPascal Rigaux2008-02-291-1/+6
|
* do not download on the fly xml-info unless we know if it is availablePascal Rigaux2008-02-291-3/+2
| | | | | | (useful for the cdrom case where there is no MD5SUM, but we take care of xml-info during urpmi.addmedia, never afterwards)
* fix --mirrorlist broken by _migrate_removable_devicePascal Rigaux2008-02-291-1/+3
|
* - urpmf, urpmq:Pascal Rigaux2008-02-281-0/+5
| | | | | o do not try to download xml-info if it's not available (#38125)
* fix typoPascal Rigaux2008-02-271-2/+2
|
* - create _migrate_removable_url out of _migrate_removable_devicePascal Rigaux2008-02-271-9/+23
| | | | | - do keep our url scheme for cdroms (#30613)
* - adapt "we want to copy lzma from cds" to new cdrom:// schemePascal Rigaux2008-02-271-1/+2
| | | | | - missing lzma on cds is not a failure
* - all tools:Pascal Rigaux2008-02-271-39/+23
| | | | | o cdrom:// replaces removable://
* - create file_from_local_medium(), and use it where possible instead ofPascal Rigaux2008-02-271-12/+12
| | | | | | | | | file_from_local_url() - in urpm::removable, this implies passing $blist around nb: for now file_from_local_medium() doesn't use the first parameter if url is given, but future commit will use both (needed for {url} cdrom://)
* create is_local_medium() and is_local_url()Pascal Rigaux2008-02-271-4/+4
|
* internally use {iso} instead of {removable} for iso filesPascal Rigaux2008-02-271-4/+4
| | | | | (to make things more clear)
* there is no reason not to use {removable} only for isoPascal Rigaux2008-02-271-2/+1
|
* what we really want here is the place where the synthesis is, so in the casePascal Rigaux2008-02-271-3/+3
| | | | | of {with_synthesis}, we want to check/mount there
* create separate function to mount isoPascal Rigaux2008-02-271-1/+1
|