var context = new Vala.CodeContext ();
this.package_cache = this.loadPackages(Path.get_dirname (context.get_vapi_path("glib-2.0")));
+ this.package_cache.add_all(
+ this.loadPackages(Path.get_dirname (context.get_vapi_path("gee-1.0")))
+ );
//this.load();
// various loader methods..
//this.map = [];
var ret = new Gee.ArrayList<string>();
//this.package_cache = new Gee.ArrayList<string>();
-
+
+ if (!GLib.FileUtils.test(dirname, FileTest.IS_DIR)) {
+ print("opps package directory %s does not exist", dirname);
+ return ret;
+ }
var dir = File.new_for_path(dirname);
+
+
try {
var file_enum = dir.enumerate_children(
GLib.FileAttribute.STANDARD_DISPLAY_NAME,
// only exact matches from here on...
if (cur_instance) {
+ if (cls == null) {
+ return ret;
+ }
if (cls.props.has_key(parts[i])) {
var prop = cls.props.get(parts[i]);
if (prop.type.index_of(".",0) > -1) {