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:
fc47f14
)
src/Palete/Gtk.vala
author
Alan Knowles
<alan@roojs.com>
Tue, 22 Sep 2015 09:41:32 +0000
(17:41 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 22 Sep 2015 09:41:32 +0000
(17:41 +0800)
src/Palete/Gtk.vala
patch
|
blob
|
history
diff --git
a/src/Palete/Gtk.vala
b/src/Palete/Gtk.vala
index
82601eb
..
377b31f
100644
(file)
--- a/
src/Palete/Gtk.vala
+++ b/
src/Palete/Gtk.vala
@@
-227,9
+227,15
@@
namespace Palete {
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,