projects
/
gnome.gobject-introspection
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad0aeac
)
Ignore errors caused by permissions in $HOME
author
Josselin Mouette
<joss@malsain.org>
Wed, 2 Dec 2009 12:50:29 +0000
(10:50 -0200)
committer
Johan Dahlin
<johan@gnome.org>
Wed, 2 Dec 2009 12:50:53 +0000
(10:50 -0200)
https://bugzilla.gnome.org/show_bug.cgi?id=596960
giscanner/cachestore.py
patch
|
blob
|
history
diff --git
a/giscanner/cachestore.py
b/giscanner/cachestore.py
index
9ecde26
..
e127dda
100644
(file)
--- a/
giscanner/cachestore.py
+++ b/
giscanner/cachestore.py
@@
-35,7
+35,10
@@
def _get_cachedir():
cachedir = os.path.join(homedir, '.cache')
if not os.path.exists(cachedir):
- os.mkdir(cachedir, 0755)
+ try:
+ os.mkdir(cachedir, 0755)
+ except OSError:
+ return None
scannerdir = os.path.join(cachedir, 'g-ir-scanner')
if not os.path.exists(scannerdir):