projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7d3f4fa
)
src/Project/Gtk.vala
author
Alan Knowles
<alan@roojs.com>
Tue, 26 May 2015 05:35:43 +0000
(13:35 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 26 May 2015 05:35:43 +0000
(13:35 +0800)
src/Project/Gtk.vala
patch
|
blob
|
history
diff --git
a/src/Project/Gtk.vala
b/src/Project/Gtk.vala
index
bf912a2
..
1b719a2
100644
(file)
--- a/
src/Project/Gtk.vala
+++ b/
src/Project/Gtk.vala
@@
-216,24
+216,29
@@
namespace Project {
}
}
-
+ } catch(Error e) {
+ GLib.warning("oops - something went wrong scanning the projects\n");
+ }
// add the cfiles to ret - if they do not have a vala...
// add the cfiles to ret - if they do not have a vala...
- for (var i = 0; i < cfiles.size; i ++) {
-
- var fn = cfiles.get(i);
- var vv = (new Regex("\\.c$")).replace( fn, fn, 0, ".vala");
-
- if (ret.index_of( vv) > -1) {
- continue;
- }
- ret.add(fn);
+ for (var i = 0; i < cfiles.size; i ++) {
+
+ var fn = cfiles.get(i);
+ vv = fn;
+ try {
+ vv = (new Regex("\\.c$")).replace( fn, fn, 0, ".vala");
+ } catch (Error e) {
+ continue;
}
}
+
-
- } catch(Error e) {
- GLib.warning("oops - something went wrong scanning the projects\n");
+ if (ret.index_of( vv) > -1) {
+ continue;
+ }
+ ret.add(fn);
}
}
+
+
GLib.debug("SCAN %s = returning %d", dirname, ret.size);
return ret;
GLib.debug("SCAN %s = returning %d", dirname, ret.size);
return ret;