/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to shamap.py

Create cache dir if it doesn't exist yet.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
    try:
37
37
        from xdg.BaseDirectory import xdg_cache_home
38
38
    except ImportError:
39
 
        pass
 
39
        from bzrlib.config import config_dir
 
40
        ret = os.path.join(config_dir(), "git")
40
41
    else:
41
 
        return os.path.join(xdg_cache_home, "bazaar", "git")
42
 
    from bzrlib.config import config_dir
43
 
    return os.path.join(config_dir(), "git")
 
42
        ret = os.path.join(xdg_cache_home, "bazaar", "git")
 
43
    if not os.path.isdir(ret):
 
44
        os.makedirs(ret)
 
45
    return ret
44
46
 
45
47
 
46
48
def check_pysqlite_version(sqlite3):