summaryrefslogtreecommitdiffstats
path: root/urpm/main_loop.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-08-31 16:45:13 +0000
committerThierry Vignaud <tv@mageia.org>2012-08-31 16:45:13 +0000
commit3cd85172bf689b679e8c1fc626690ba87b136d74 (patch)
treed73d48ff546eb7f1667b7f179ad031c326354753 /urpm/main_loop.pm
parent9dadc64a5547524da5fcbe188b2d443709f627f0 (diff)
downloadurpmi-3cd85172bf689b679e8c1fc626690ba87b136d74.tar
urpmi-3cd85172bf689b679e8c1fc626690ba87b136d74.tar.gz
urpmi-3cd85172bf689b679e8c1fc626690ba87b136d74.tar.bz2
urpmi-3cd85172bf689b679e8c1fc626690ba87b136d74.tar.xz
urpmi-3cd85172bf689b679e8c1fc626690ba87b136d74.zip
document some functions
Diffstat (limited to 'urpm/main_loop.pm')
-rw-r--r--urpm/main_loop.pm40
1 files changed, 39 insertions, 1 deletions
diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm
index e8bae71c..52525da1 100644
--- a/urpm/main_loop.pm
+++ b/urpm/main_loop.pm
@@ -309,7 +309,45 @@ sub _run_transaction {
!$fatal;
}
-# locking is left to callers
+=item run($urpm, $state, $something_was_to_be_done, $ask_unselect, $_requested, $callbacks)
+
+Run the main urpm loop:
+
+=over
+
+=item * mount removable media if needed
+
+=item * split the work in smaller transactions
+
+=item * for each transaction:
+
+=over
+
+=item * prepare the transaction
+
+=item * download packages needed for this small transaction
+
+=item * verify packages
+
+=item * split package that should be installed instead of upgraded,
+
+=item * install source package only (whatever the user is root or not, but use rpm for that)
+
+=item * install/remove other packages
+
+=back
+
+=item * migrate the chrooted rpmdb if needed
+
+=item * display the final success/error message(s)
+
+=back
+
+Warning: locking is left to callers...
+
+=cut
+
+
sub run {
my ($urpm, $state, $something_was_to_be_done, $ask_unselect, $_requested, $callbacks) = @_;