java-gobject-introspection r27 - trunk/src/org/gnome/gir/compiler
- From: otaylor svn gnome org
- To: svn-commits-list gnome org
- Subject: java-gobject-introspection r27 - trunk/src/org/gnome/gir/compiler
- Date: Thu, 4 Sep 2008 19:00:45 +0000 (UTC)
Author: otaylor
Date: Thu Sep 4 19:00:45 2008
New Revision: 27
URL: http://svn.gnome.org/viewvc/java-gobject-introspection?rev=27&view=rev
Log:
Skip non-existent or non-writeable girepository directories from XDG_DATA_DIRS
Modified:
trunk/src/org/gnome/gir/compiler/CodeFactory.java
Modified: trunk/src/org/gnome/gir/compiler/CodeFactory.java
==============================================================================
--- trunk/src/org/gnome/gir/compiler/CodeFactory.java (original)
+++ trunk/src/org/gnome/gir/compiler/CodeFactory.java Thu Sep 4 19:00:45 2008
@@ -1726,6 +1726,9 @@
Set<File> jarPaths = new HashSet<File>();
for (String dir : dataDirs) {
File typelibsDir = new File(dir, "girepository");
+ if (!typelibsDir.canWrite()) // Exists and writable
+ continue;
+
for (String filename : typelibsDir.list()) {
String namespace;
String version = null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]