diff options
author | Olivier Thauvin <nanardon@mandriva.org> | 2004-01-15 23:41:45 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mandriva.org> | 2004-01-15 23:41:45 +0000 |
commit | 144b2ddb191ce4ac7f76950dd9bda65402d474c2 (patch) | |
tree | 31860bed4ab84622dfd5308cb93cb0045c59a888 | |
parent | 806fbcd4bc7540519fa604d0b0754eb513a296ce (diff) | |
download | urpmi-144b2ddb191ce4ac7f76950dd9bda65402d474c2.tar urpmi-144b2ddb191ce4ac7f76950dd9bda65402d474c2.tar.gz urpmi-144b2ddb191ce4ac7f76950dd9bda65402d474c2.tar.bz2 urpmi-144b2ddb191ce4ac7f76950dd9bda65402d474c2.tar.xz urpmi-144b2ddb191ce4ac7f76950dd9bda65402d474c2.zip |
- add --root in man/--help, --use-distrib in --help only
- fix issue using virtual medium and --bug
- update error message if --bug dir exist
-rw-r--r-- | man/C/urpme.8 | 4 | ||||
-rw-r--r-- | man/C/urpmi.8 | 4 | ||||
-rw-r--r-- | man/C/urpmq.8 | 4 | ||||
-rw-r--r-- | urpm.pm | 4 | ||||
-rw-r--r-- | urpme | 3 | ||||
-rwxr-xr-x | urpmi | 11 | ||||
-rw-r--r-- | urpmi.spec | 5 | ||||
-rwxr-xr-x | urpmq | 2 |
8 files changed, 32 insertions, 5 deletions
diff --git a/man/C/urpme.8 b/man/C/urpme.8 index 9f7e494d..43af3268 100644 --- a/man/C/urpme.8 +++ b/man/C/urpme.8 @@ -21,6 +21,10 @@ machines). \fIalias\fP defines which extension module to use by urpmi (currently \fBurpmi-parallel-ka-run\fP or \fBurpmi-parallel-ssh\fP) and which machines should be updated, this alias is defined in the file /etc/urpmi/parallel.cfg as described below. +.IP "\fB\--root\fP \fIdirectory\fP" +Use the file system tree rooted for rpm install. All operations and scripts +will run after chroot(2). The rpm database in the rooted tree will be used but +urpmi configuration comes from normal system. .IP "\fB\-v\fP" Proposes a verbose mode with various messages. .IP "\fB\-a\fP" diff --git a/man/C/urpmi.8 b/man/C/urpmi.8 index 69fafa52..d43de1be 100644 --- a/man/C/urpmi.8 +++ b/man/C/urpmi.8 @@ -105,6 +105,10 @@ machines). \fIalias\fP defines which extension module to use by urpmi (currently \fBurpmi-parallel-ka-run\fP or \fBurpmi-parallel-ssh\fP) and which machines should be updated, this alias is defined in the file /etc/urpmi/parallel.cfg as described below. +.IP "\fB\--root\fP \fIdirectory\fP" +Use the file system tree rooted for rpm install. All operations and scripts +will run after chroot(2). The rpm database in the rooted tree will be used but +urpmi configuration comes from normal system. .IP "\fB\--wget\fP" Use wget only for downloading distant files. By default curl is used if available or wget instead. diff --git a/man/C/urpmq.8 b/man/C/urpmq.8 index ee062d65..d43e81e3 100644 --- a/man/C/urpmq.8 +++ b/man/C/urpmq.8 @@ -64,6 +64,10 @@ machines). \fIalias\fP defines which extension module to use by urpmi (currently \fBurpmi-parallel-ka-run\fP or \fBurpmi-parallel-ssh\fP) and which machines should be updated, this alias is defined in the file /etc/urpmi/parallel.cfg as described below. +.IP "\fB\--root\fP \fIdirectory\fP" +Use the file system tree rooted for rpm install. All operations and scripts +will run after chroot(2). The rpm database in the rooted tree will be used but +urpmi configuration comes from normal system. .IP "\fB\--wget\fP" Use wget only for downloading distant files. By default curl is used if available or wget instead. @@ -737,7 +737,9 @@ sub configure { my ($urpm, %options) = @_; $urpm->clean; - + + $options{parallel} && $options{usedistrib} and die N("Can't use parallele mode with use-distrib mode"); + if ($options{parallel}) { my ($parallel_options, $parallel_handler); #- handle parallel configuration, examine all module available that @@ -43,6 +43,9 @@ usage: ") . N(" --test - verify if the installation can be achieved correctly. ") . N(" --force - force invocation even if some packages do not exist. ") . N(" --parallel - distributed urpmi accross machines of alias. +") . N(" --root - use another root for rpm installation. +") . N(" --use-distrib - configure urpmi on the fly from a distrib tree, useful + to (un)install a chroot with --root option. ") . N(" -v - verbose mode. ") . N(" -a - select all packages matching expression. "); @@ -98,6 +98,9 @@ usage: ") . N(" --allow-force - allow asking user to install packages without dependencies checking and integrity. ") . N(" --parallel - distributed urpmi accross machines of alias. +") . N(" --root - use another root for rpm installation. +") . N(" --use-distrib - configure urpmi on the fly from a distrib tree, useful + to install a chroot with --root option. ") . N(" --wget - use wget to retrieve distant files. ") . N(" --curl - use curl to retrieve distant files. ") . N(" --limit-rate - limit the download speed. @@ -246,7 +249,7 @@ if ($install_src) { #- prepare bug report. if ($bug) { - mkdir $bug or $urpm->{fatal}(8, N("Unable to create directory [%s] for bug report", $bug)); + mkdir $bug or $urpm->{fatal}(8, N((-d $bug ? "Directory [%s] allready exist, please use another directory for bug report or delete it" : "Unable to create directory [%s] for bug report"), $bug)); #- copy all synthesis file used, along with configuration of urpmi system("cp", "-af", $urpm->{skiplist}, $urpm->{instlist}, $bug); #- allow log file. @@ -335,7 +338,7 @@ $urpm->configure(nocheck_access => $env || $uid > 0, root => $root, bug => $bug, parallel => $parallel, - usedistrib => $usedistrib, + usedistrib => $usedistrib, ); #- get back activated default values of boolean options. foreach (qw(post-clean verify-rpm)) { @@ -354,7 +357,9 @@ if ($bug) { foreach (@{$urpm->{media}}) { #- take care of virtual medium this way. $_->{hdlist} ||= "hdlist.$_->{name}.cz"; - delete $_->{virtual}; + + # Why to delete this flag ? This break rpm find process if list is need + # delete $_->{virtual}; #- now build directly synthesis file, this is by far the simplest method. if (defined $_->{start} && defined $_->{end}) { $urpm->build_synthesis(start => $_->{start}, end => $_->{end}, synthesis => "$bug/synthesis.$_->{hdlist}"); @@ -252,8 +252,11 @@ $urpm->update_media(nolock => 1, nopubkey => 1); - From Pascal Terjan <pterjan@mandrake.org> : - $root =~ s!/*!! to avoid root detection issue - From Olivier Thauvin <thauvin@aerov.jussieu.fr> : - - add --use-distrib code + - add --use-distrib - fix urpmq for virtual medium + - add --root in man/--help + - fix issue using virtual medium and --bug + - update error message if --bug dir exist * Mon Jan 12 2004 Guillaume Cottenceau <gc@mandrakesoft.com> 4.4.1-1mdk - add ability to cancel packages downloads from within rpmdrake @@ -58,6 +58,8 @@ usage: ") . N(" --sources - give all source packages before downloading (root only). ") . N(" --force - force invocation even if some packages do not exist. ") . N(" --parallel - distributed urpmi accross machines of alias. +") . N(" --use-distrib - configure urpmi on the fly from a distrib tree. + This permit to querying a distro. ") . N(" --wget - use wget to retrieve distant files. ") . N(" --curl - use curl to retrieve distant files. ") . N(" --proxy - use specified HTTP proxy, the port number is assumed |