[gnome-boxes/gnome-3-12] unattended-installer: Use correct cache path



commit b3bc21c40ac5135661b659b2cbf0b4cb12418e3c
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Apr 22 18:17:11 2014 +0100

    unattended-installer: Use correct cache path
    
    d4bd651 caused a regression, where unattended installation setup failed
    for OSes for which we download drivers (win7 and winxp) if the driver
    files only exist in system cache since the code still tried to use the
    user cache for all situations.
    
    This patches fixes the issue by using the cache where there the file
    exists/is downloaded.

 src/unattended-installer.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala
index d80a232..63aab12 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -513,7 +513,7 @@ private class Boxes.UnattendedInstaller: InstallerMedia {
             file = yield downloader.download (file, cached_paths, file_progress);
             file_progress.progress = 1.0; // Ensure progress reaches 100%
 
-            driver_files.append (new UnattendedRawFile (this, cached_path, filename));
+            driver_files.append (new UnattendedRawFile (this, file.get_path (), filename));
         }
 
         // We don't do this in above loop to ensure we have all the driver files


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