summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-01-06 19:43:56 +0000
committerThierry Vignaud <tv@mageia.org>2012-01-06 19:43:56 +0000
commit301ab0a298cc5e0ef4033546a65ed40a7484aec5 (patch)
treea35e5ee7ff8c5b14ca1f1c473ba1e5797e442884
parentff72490e95713c7cd55790128c3f190eb12f0f30 (diff)
downloadurpmi-301ab0a298cc5e0ef4033546a65ed40a7484aec5.tar
urpmi-301ab0a298cc5e0ef4033546a65ed40a7484aec5.tar.gz
urpmi-301ab0a298cc5e0ef4033546a65ed40a7484aec5.tar.bz2
urpmi-301ab0a298cc5e0ef4033546a65ed40a7484aec5.tar.xz
urpmi-301ab0a298cc5e0ef4033546a65ed40a7484aec5.zip
(df) fix checking available space of mount point
(cautgh by perl_checker, might help mga#1342) introduced by cfergeau in r261869 on 2009-10-13 ("add df function to urpm/sys.pm")
-rw-r--r--NEWS1
-rw-r--r--urpm/sys.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 5691343b..2d892b71 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@
- urpmi
o do not compute orphan packages when handling priority upgrades
o disable dudf support (we've nothing server side)
+ o fix checking available space of mount point (mga#1342)
Version 6.42 - 05 November 2011
diff --git a/urpm/sys.pm b/urpm/sys.pm
index 44b48d33..3e40151f 100644
--- a/urpm/sys.pm
+++ b/urpm/sys.pm
@@ -96,7 +96,7 @@ sub _find_a_mntpoint {
sub df {
my ($mntpoint) = @_;
require Filesys::Df;
- my $df = Filesys::Df::df("/", 1024); # ask 1kb values
+ my $df = Filesys::Df::df($mntpoint || "/", 1024); # ask 1kb values
@$df{qw(blocks bfree)};
}