[gnome-boxes] Ensure images directory exists before using it
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Ensure images directory exists before using it
- Date: Fri, 18 Nov 2011 16:41:07 +0000 (UTC)
commit a235135c64f6d282da3d6a4a8e9ee4ad8748d518
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Nov 18 18:23:28 2011 +0200
Ensure images directory exists before using it
src/vm-creator.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/vm-creator.vala b/src/vm-creator.vala
index e51418a..7aa6134 100644
--- a/src/vm-creator.vala
+++ b/src/vm-creator.vala
@@ -193,6 +193,7 @@ private class Boxes.VMCreator {
var pool = connection.find_storage_pool_by_name (Config.PACKAGE_TARNAME);
if (pool == null) {
var pool_path = get_pkgconfig ("images");
+ ensure_directory (pool_path);
var xml = "<pool type='dir'>\n" +
"<name>" + Config.PACKAGE_TARNAME + "</name>\n" +
" <source>\n" +
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]