Mageia Bugzilla – Attachment 4186 Details for
Bug 10685
feature request: use urpmi without root privileges to just download packages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
fix the usage of the value given through --download-dir optiion
urpm.patch (text/plain), 784 bytes, created by
Guillaume Rousse
on 2013-07-03 15:45:01 CEST
(
hide
)
Description:
fix the usage of the value given through --download-dir optiion
Filename:
MIME Type:
Creator:
Guillaume Rousse
Created:
2013-07-03 15:45:01 CEST
Size:
784 bytes
patch
obsolete
>Index: urpm.pm >=================================================================== >--- urpm.pm (révision 6367) >+++ urpm.pm (copie de travail) >@@ -165,7 +165,9 @@ > my ($urpm) = @_; > $< or return; > >- my $dir = ($urpm->{urpmi_root} || '') . userdir_prefix($urpm) . $< . "/lib"; >+ my $dir = $urpm->{options}{cachedir} ? >+ $urpm->{options}{cachedir} . "/lib": >+ ($urpm->{urpmi_root} || '') . userdir_prefix($urpm) . $< . "/lib"; > init_dir($urpm, $dir); > } > >@@ -174,7 +176,9 @@ > my ($urpm) = @_; > $< or return; > >- my $dir = ($urpm->{urpmi_root} || '') . userdir_prefix($urpm) . $<; >+ my $dir = $urpm->{options}{cachedir} ? >+ $urpm->{options}{cachedir} : >+ ($urpm->{urpmi_root} || '') . userdir_prefix($urpm) . $<; > init_dir($urpm, $dir); > } >
Index: urpm.pm =================================================================== --- urpm.pm (révision 6367) +++ urpm.pm (copie de travail) @@ -165,7 +165,9 @@ my ($urpm) = @_; $< or return; - my $dir = ($urpm->{urpmi_root} || '') . userdir_prefix($urpm) . $< . "/lib"; + my $dir = $urpm->{options}{cachedir} ? + $urpm->{options}{cachedir} . "/lib": + ($urpm->{urpmi_root} || '') . userdir_prefix($urpm) . $< . "/lib"; init_dir($urpm, $dir); } @@ -174,7 +176,9 @@ my ($urpm) = @_; $< or return; - my $dir = ($urpm->{urpmi_root} || '') . userdir_prefix($urpm) . $<; + my $dir = $urpm->{options}{cachedir} ? + $urpm->{options}{cachedir} : + ($urpm->{urpmi_root} || '') . userdir_prefix($urpm) . $<; init_dir($urpm, $dir); }
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 10685
:
4184
|
4185
| 4186