[gnome-boxes] installer: Separate out drivers cache by arch
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] installer: Separate out drivers cache by arch
- Date: Mon, 17 Dec 2012 14:14:32 +0000 (UTC)
commit b38994b13fafc1f80f7a66a44ef7e21f663e54aa
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Dec 11 04:03:57 2012 +0200
installer: Separate out drivers cache by arch
Use driver architecture string as part of driver filenames so that cache
is separate for each architecture.
https://bugzilla.gnome.org/show_bug.cgi?id=690021
src/unattended-installer.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala
index 6fb858c..5760fa9 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -618,7 +618,9 @@ private class Boxes.UnattendedInstaller: InstallerMedia {
foreach (var filename in driver.get_files ()) {
var file_uri = location + "/" + filename;
var file = File.new_for_uri (file_uri);
- var cached_path = get_drivers_cache (os.short_id + "-" + file.get_basename ());
+ var cached_path = get_drivers_cache (os.short_id + "-" +
+ driver.get_architecture () + "-" +
+ file.get_basename ());
file = yield downloader.download (file, cached_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]