[gnome-boxes/gnome-3-14] vm-creator: Make use of internal util functions
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/gnome-3-14] vm-creator: Make use of internal util functions
- Date: Wed, 15 Jul 2015 16:53:38 +0000 (UTC)
commit bba3396238d604c8c1fc7877483aecff7dca051f
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Jul 15 16:17:29 2015 +0100
vm-creator: Make use of internal util functions
Make code simpler by use of internal util function to ensure storage
pool directory exists.
https://bugzilla.gnome.org/show_bug.cgi?id=752417
src/vm-creator.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/vm-creator.vala b/src/vm-creator.vala
index aa6ada0..f4eec60 100644
--- a/src/vm-creator.vala
+++ b/src/vm-creator.vala
@@ -215,7 +215,9 @@ private class Boxes.VMCreator {
debug ("Created storage pool.");
} else if (pool.get_info ().state == StoragePoolState.INACTIVE) {
// Ensure pool directory exists in case user deleted it after pool creation
- DirUtils.create_with_parents (GLib.Path.build_filename (get_user_pkgdata (), "images", null),
0775);
+ var pool_path = get_user_pkgdata ("images");
+ ensure_directory (pool_path);
+
yield pool.start_async (0, null);
yield pool.refresh_async (null);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]