[gnome-ostree/wip/compile-one-js: 1/3] build: Use parse_name for reading filenames from ostbuild config



commit f494a8181324a1f3566e16faa321470d2bcaeea5
Author: Colin Walters <walters verbum org>
Date:   Mon Feb 11 18:22:53 2013 -0500

    build: Use parse_name for reading filenames from ostbuild config
    
    So that ~ works.

 src/ostbuild/js/builtin.js |    4 ++--
 src/ostbuild/js/task.js    |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/ostbuild/js/builtin.js b/src/ostbuild/js/builtin.js
index e3d01f0..168c228 100644
--- a/src/ostbuild/js/builtin.js
+++ b/src/ostbuild/js/builtin.js
@@ -38,8 +38,8 @@ const Builtin = new Lang.Class({
 	this.parser = new ArgParse.ArgumentParser(this.DESCRIPTION);
         
 	this.config = Config.get();
-	this.workdir = Gio.File.new_for_path(this.config.getGlobal('workdir'));
-	this.mirrordir = Gio.File.new_for_path(this.config.getGlobal('mirrordir'));
+	this.workdir = Gio.File.parse_name(this.config.getGlobal('workdir'));
+	this.mirrordir = Gio.File.parse_name(this.config.getGlobal('mirrordir'));
 	this.patchdir = this.workdir.get_child('patches');
 	this.libdir = Gio.File.new_for_path(GLib.getenv('OSTBUILD_LIBDIR'));
 	this.repo = this.workdir.get_child('repo');
diff --git a/src/ostbuild/js/task.js b/src/ostbuild/js/task.js
index fb12fa7..8c7a5e8 100644
--- a/src/ostbuild/js/task.js
+++ b/src/ostbuild/js/task.js
@@ -210,9 +210,9 @@ const TaskDef = new Lang.Class({
 	this.parameters = Params.parse(parameters, this.DefaultParameters);
 
 	this.config = Config.get();
-	this.workdir = Gio.File.new_for_path(this.config.getGlobal('workdir'));
+	this.workdir = Gio.File.parse_name(this.config.getGlobal('workdir'));
 	this.resultdir = this.workdir.get_child('results');
-	this.mirrordir = Gio.File.new_for_path(this.config.getGlobal('mirrordir'));
+	this.mirrordir = Gio.File.parse_name(this.config.getGlobal('mirrordir'));
 	this.libdir = Gio.File.new_for_path(GLib.getenv('OSTBUILD_LIBDIR'));
 	this.repo = this.workdir.get_child('repo');
     },


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