summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-10-11 15:50:00 +0000
committerThierry Vignaud <tv@mageia.org>2012-10-11 15:50:00 +0000
commit06c03872c86abf7ec2a621f9f18e475598c10ab5 (patch)
tree6244f81eb4336a7fcc02f9d035811643fe64cf8a /urpm.pm
parent3c45eb4fc32b4c7c92465b3d1d64aa593af65600 (diff)
downloadurpmi-06c03872c86abf7ec2a621f9f18e475598c10ab5.tar
urpmi-06c03872c86abf7ec2a621f9f18e475598c10ab5.tar.gz
urpmi-06c03872c86abf7ec2a621f9f18e475598c10ab5.tar.bz2
urpmi-06c03872c86abf7ec2a621f9f18e475598c10ab5.tar.xz
urpmi-06c03872c86abf7ec2a621f9f18e475598c10ab5.zip
add missing space
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index 8f830013..4690ece8 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -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};