[gnome-boxes] Correction to get_user_unattended_dir()



commit 1b49c2da8ab64ba1f87e275d29eead44e57c0bba
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Nov 18 18:21:16 2011 +0200

    Correction to get_user_unattended_dir()
    
    It must not assume that passed filename is for directories and therefore
    shouldn't create it (as directory).

 src/unattended-installer.vala |    2 +-
 src/util.vala                 |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala
index 1a843d9..2600601 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -195,7 +195,7 @@ private abstract class Boxes.UnattendedInstaller: InstallerMedia {
 
     private async void copy_unattended_file (Cancellable? cancellable) throws GLib.Error {
         var unattended_src = File.new_for_path (unattended_src_path);
-        var unattended_tmp_path = get_unattended_dir (unattended_dest_name);
+        var unattended_tmp_path = get_user_unattended_dir (unattended_dest_name);
         var unattended_tmp = File.new_for_path (unattended_tmp_path);
 
         debug ("Creating unattended file at '%s'..", unattended_tmp_path);
diff --git a/src/util.vala b/src/util.vala
index 2e4a41a..e7e4c43 100644
--- a/src/util.vala
+++ b/src/util.vala
@@ -34,7 +34,7 @@ namespace Boxes {
     }
 
     public string get_user_unattended_dir (string? file_name = null) {
-        var dir = Path.build_filename (get_pkgconfig (), "unattended", file_name);
+        var dir = Path.build_filename (get_pkgconfig (), "unattended");
 
         ensure_directory (dir);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]