diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-10-11 15:50:00 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-10-11 15:50:00 +0000 |
commit | 06c03872c86abf7ec2a621f9f18e475598c10ab5 (patch) | |
tree | 6244f81eb4336a7fcc02f9d035811643fe64cf8a | |
parent | 3c45eb4fc32b4c7c92465b3d1d64aa593af65600 (diff) | |
download | urpmi-06c03872c86abf7ec2a621f9f18e475598c10ab5.tar urpmi-06c03872c86abf7ec2a621f9f18e475598c10ab5.tar.gz urpmi-06c03872c86abf7ec2a621f9f18e475598c10ab5.tar.bz2 urpmi-06c03872c86abf7ec2a621f9f18e475598c10ab5.tar.xz urpmi-06c03872c86abf7ec2a621f9f18e475598c10ab5.zip |
add missing space
-rw-r--r-- | urpm.pm | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -155,6 +155,7 @@ sub init_dir { $dir; } + sub userdir_prefix { my ($_urpm) = @_; '/tmp/.urpmi-'; @@ -176,6 +177,7 @@ sub userdir { my $dir = ($urpm->{urpmi_root} || '') . userdir_prefix($urpm) . $<; init_dir($urpm, $dir); } + sub ensure_valid_cachedir { my ($urpm) = @_; if (my $dir = userdir($urpm)) { @@ -183,6 +185,7 @@ sub ensure_valid_cachedir { } -w "$urpm->{cachedir}/partial" or $urpm->{fatal}(1, N("Can not download packages into %s", "$urpm->{cachedir}/partial")); } + sub valid_cachedir { my ($urpm) = @_; userdir($urpm) || $urpm->{cachedir}; |