summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rwxr-xr-xmgaapplet4
2 files changed, 4 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 2264a9a8..447ca2f8 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- fix urpm::check_dir() call (old name check_cache_dir() was changed)
+
Version 2.79 - 15 April 2013, Thierry Vignaud
- check that choosen download directory is owned by root (mga#6083)
diff --git a/mgaapplet b/mgaapplet
index e1df0fdd..81be6260 100755
--- a/mgaapplet
+++ b/mgaapplet
@@ -401,7 +401,7 @@ sub confirm_upgrade() {
$temp_dir = $_[0]->get_current_folder;
my $ok = 1;
require urpm;
- urpm::check_cache_dir({ fatal => sub { $ok = 0 } }, $temp_dir);
+ urpm::check_dir({ fatal => sub { $ok = 0 } }, $temp_dir);
$ok or ask_warn(N("Error"), N("You must choose a directory owned by the super administrator!"));
});
$browse->set_current_folder($download_dir);
@@ -436,7 +436,7 @@ sub confirm_upgrade() {
if ($res) {
require urpm;
my $ok = 1;
- urpm::check_cache_dir({ fatal => sub { $ok = 0 } }, $temp_dir);
+ urpm::check_dir({ fatal => sub { $ok = 0 } }, $temp_dir);
$ok or goto &confirm_upgrade;
$download_dir = $temp_dir;
really_confirm_upgrade();