summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - move lock functions to a full blown modulePascal Rigaux2006-11-2311-78/+112
| | | | | | | | | | | | - handle get_exclusive and release_exclusive on existing lock, *but* don't use it for now! (not useful) - remove urpmi_db locking from add_medium and update_media - move rpm_db locking into _read_cachedir_pubkey - update_media: restrict rpm_db exclusive locking to parse_pubkeys - urpmi: move locking rpm_db near its use - handle lock directly in urpmi.addmedia, urpmi.update, urpme, urpmf - log locking/unlocking
* better no lock than bad lock on should-not-be-used functionPascal Rigaux2006-11-231-2/+0
|
* db_open_or_die: better parameter namePascal Rigaux2006-11-231-2/+2
|
* don't say "urpmi database locked" when it's the rpm database that is lockedPascal Rigaux2006-11-231-6/+7
|
* don't have a global variable to hold locks, otherwise code can't lock twicePascal Rigaux2006-11-237-52/+42
| | | | | non-exclusive
* release 4.9.0Pascal Rigaux2006-11-221-0/+1679
|
* remove md5sum from @PER_MEDIA_OPT (which only list per-medium options inPascal Rigaux2006-11-222-3/+3
| | | | | | | | | | urpmi.cfg), so that urpmi.cfg do not contain the md5sum (and so urpmi.cfg doesn't need to be modified on urpmi.update, only /var/lib/urpmi/MD5SUM is modified) (bug introduced when creating @PER_MEDIA_OPT in r35745, fixed in r35832, but broken again in r35953)
* @PER_MEDIA_OPT is now in urpm::mediaPascal Rigaux2006-11-221-1/+1
|
* move many functions from urpm.pm to new module urpm/select.pmPascal Rigaux2006-11-216-450/+466
|
* - move download_packages_of_distant_media() from urpm.pm to urpm::get_pkgsPascal Rigaux2006-11-215-213/+229
| | | | | - move urpm::get_source_packages() -> urpm::get_pkgs::selected2list()
* create urpm::signature out of urpm.pmPascal Rigaux2006-11-214-67/+79
|
* create urpm::removable out of urpm.pmPascal Rigaux2006-11-217-194/+207
|
* move clean_dir()Pascal Rigaux2006-11-212-9/+9
|
* move many functions from urpm.pm to urpm/media.pmPascal Rigaux2006-11-2115-1846/+1960
|
* help perl_checkerPascal Rigaux2006-11-211-0/+1
|
* move create_transaction() and prepare_transaction() from urpm.pm into ↵Pascal Rigaux2006-11-214-42/+43
| | | | urpm/install.pm
* add Id svn keywordPascal Rigaux2006-11-213-3/+3
|
* move urpm::install() into urpm::install::install() (new module)Pascal Rigaux2006-11-215-150/+166
|
* add svn IdPascal Rigaux2006-11-213-3/+3
|
* create urpm::md5sum, move md5sum functions into it: Pascal Rigaux2006-11-213-63/+73
| | | | | | - urpm::util::md5sum() -> urpm::md5sum::compute() - urpm::local_md5sum() -> urpm::md5sum::on_local_medium()
* move open_safe, opendir_safe and syserror to urpm::sysPascal Rigaux2006-11-213-122/+48
|
* - rename get_md5sum() into from_MD5SUM()Pascal Rigaux2006-11-211-9/+7
| | | | | | - rename parse_md5sum() into from_MD5SUM__or_warn() - in from_MD5SUM__or_warn(), display the name of the MD5SUM file used
* when computing the md5sum of an hdlist, display the file name in the logPascal Rigaux2006-11-211-1/+1
|
* fix an optimisation i introduced which breaks generated /var/lib/urpmi/MD5SUMPascal Rigaux2006-11-211-1/+3
|
* 20 is the minimal valid size for an empty synthesis (which should be valid)Pascal Rigaux2006-11-211-7/+7
|
* move lock functions to urpm::sysPascal Rigaux2006-11-216-93/+93
|
* move urpm::parallel_remove to urpm::parallel::removePascal Rigaux2006-11-213-12/+15
| | | | | (but keep urpm::parallel_remove for backward compatibility since rpmdrake uses it)
* drop urpm::parallel_install(), directly use {parallel_handler}->parallel_installPascal Rigaux2006-11-212-10/+5
|
* create urpm::parallel and move some things from urpm.pmPascal Rigaux2006-11-212-45/+60
|
* cleanupPascal Rigaux2006-11-211-5/+3
|
* create _parse_media() out of configure()Pascal Rigaux2006-11-211-53/+56
|
* create _compute_flags_for_skiplist() and _compute_flags_for_instlist() out ↵Pascal Rigaux2006-11-211-25/+35
| | | | of configure()
* only do generate_medium_names() on really_modified (ie updated) mediaPascal Rigaux2006-11-211-17/+12
|
* introduce $medium->{really_modified} which is what $medium->{modified} shouldPascal Rigaux2006-11-211-4/+6
| | | | | be... but {modified} is over-used (eg: it often means "to update")
* use function names more appropriatePascal Rigaux2006-11-211-4/+4
|
* adapt function names to pubkey and descriptions being done laterPascal Rigaux2006-11-211-5/+5
|
* handle pubkey and descriptions after the whole hdlist/synthesis/list mess is ↵Pascal Rigaux2006-11-211-5/+6
| | | | settled down
* restore removing {list} (it was done in _write_rpm_list_if_needed)Pascal Rigaux2006-11-211-16/+11
|
* set $medium->{list} only when neededPascal Rigaux2006-11-211-5/+2
|
* create _get_pubkey_and_descriptions() out of various code that was done in thePascal Rigaux2006-11-211-14/+15
| | | | | middle of code parsing hdlist/synthesis
* don't pass rpm_files around, use $medium->{rpm_files}Pascal Rigaux2006-11-211-16/+10
|
* don't pass around $retrieved_md5sum, set $medium->{md5sum} as soon as wePascal Rigaux2006-11-211-8/+17
| | | | | | | | checked against {md5sum}. but remove it if parsing fail later on. also restore parsing current synthesis when new hdlist/synthesis is buggy. (it was in _update_medium_first_pass_failed())
* create _read_rpms_from_dir() out of ↵Pascal Rigaux2006-11-211-46/+56
| | | | _update_medium__parse_if_unmodified__or_get_files__local
* no {with_hdlist} is valid (it will end up setting {force_building_hdlist} ↵Pascal Rigaux2006-11-211-1/+1
| | | | and using *.rpm)
* remove hopefully now non useful reparsing of synthesis on errorPascal Rigaux2006-11-211-5/+0
| | | | | (since URPM 1.48, parse_synthesis doesn't modify {depslist} if it doesn't succeed)
* create get_hdlist_or_synthesis_and_check_md5sum__local() out ofPascal Rigaux2006-11-211-26/+29
| | | | | | _update_medium__parse_if_unmodified__or_get_files__local() and so make things clearer
* rename recompute_local_md5sum() to local_md5sum()Pascal Rigaux2006-11-211-3/+3
|
* simplifyPascal Rigaux2006-11-211-8/+5
|
* handle error by returningPascal Rigaux2006-11-211-15/+14
|
* _update_medium_second_pass: move what is not $second_pass dependent in ↵Pascal Rigaux2006-11-211-6/+14
| | | | _update_medium_build_hdlist_synthesis()