source: pkg/raul/main/gobject-introspection/trunk/debian/patches/02_giscanner_cache.patch @ 7002

Revision 7002, 841 bytes checked in by alanbach-guest, 3 years ago (diff)
  • Sync'd with Debian 0.9.3-1
  • giscanner/cachestore.py

    From 9a24233bed0e64b34f47f78e094df918fc85dcaf Mon Sep 17 00:00:00 2001
    From: Robert Ancell <robert.ancell@canonical.com>
    Date: Thu, 12 Aug 2010 10:01:37 +1000
    Subject: [PATCH] Fix giscanner crash with no cache directory
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=626694
    
    ---
     giscanner/cachestore.py |    3 +++
     1 files changed, 3 insertions(+), 0 deletions(-)
    
    diff --git a/giscanner/cachestore.py b/giscanner/cachestore.py
    index d839ef5..d72eee4 100644
    a b class CacheStore(object): 
    7676        self._check_cache_version() 
    7777 
    7878    def _check_cache_version(self): 
     79        if self._directory is None: 
     80            return 
     81 
    7982        current_hash = _get_versionhash() 
    8083        version = os.path.join(self._directory, _CACHE_VERSION_FILENAME) 
    8184        try: 
Note: See TracBrowser for help on using the repository browser.