xdg_cache_dir() uses wrong environment variable

Bug #1272042 reported by Andrew Starr-Bochicchio
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Low
Andrew Starr-Bochicchio
bzr (Debian)
Fix Released
Unknown

Bug Description

config.py contains this:

def xdg_cache_dir():
    # See http://standards.freedesktop.org/basedir-spec/latest/ar01s03.html
    # Possibly this should be different on Windows?
    e = os.environ.get('XDG_CACHE_DIR', None)
    if e:
        return e
    else:
        return os.path.expanduser('~/.cache')

But according to the specification the environment variable name should
be XDG_CACHE_HOME, not XDG_CACHE_DIR.

Forwarded from Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736448

Related branches

Changed in bzr:
importance: Undecided → Low
status: New → In Progress
assignee: nobody → Andrew Starr-Bochicchio (andrewsomething)
Changed in bzr (Debian):
status: Unknown → Confirmed
Vincent Ladeuil (vila)
Changed in bzr:
milestone: none → 2.7b1
status: In Progress → Fix Released
Changed in bzr (Debian):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.