Your message dated Wed, 23 Jun 2010 16:26:46 +0000
with message-id <e1orsmk-00028q...@ries.debian.org>
and subject line Bug#568757: fixed in pyxdg 0.19-2
has caused the Debian Bug report #568757,
regarding python-xdg: xdg.BaseDirectory doesn’t follow the spec in one corner 
case
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
568757: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568757
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python-xdg
Version: 0.18-1
Severity: important
Tags: patch

Hello

According to the XDG BaseDir Spec at
<http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html>:

    If $XDG_DATA_HOME is either not set or empty, a default equal to
    $HOME/.local/share should be used. 

However, the Python code contains this, which doesn't do the right thing if
one var is defined but empty (i.e. it will return an empty sting instead of the
default value):

    xdg_data_home = os.environ.get('XDG_DATA_HOME',
                os.path.join(_home, '.local', 'share'))

Attached path fixes this.

Kind regards


-- System Information:
Debian Release: squeeze
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-xdg depends on:
ii  python                        2.5.4-9    An interactive high-level object-o
ii  python-support                1.0.6      automated rebuilding support for P

python-xdg recommends no packages.

python-xdg suggests no packages.

-- no debconf information
--- pyxdg-0.18/xdg/BaseDirectory.py.old	2010-02-07 16:35:38.000000000 +0100
+++ pyxdg-0.18/xdg/BaseDirectory.py	2010-02-07 16:35:22.000000000 +0100
@@ -28,21 +28,21 @@
 from __future__ import generators
 import os
 
-_home = os.environ.get('HOME', '/')
-xdg_data_home = os.environ.get('XDG_DATA_HOME',
-            os.path.join(_home, '.local', 'share'))
+_home = os.path.expanduser('~')
+xdg_data_home = os.environ.get('XDG_DATA_HOME') or \
+            os.path.join(_home, '.local', 'share')
 
 xdg_data_dirs = [xdg_data_home] + \
     os.environ.get('XDG_DATA_DIRS', '/usr/local/share:/usr/share').split(':')
 
-xdg_config_home = os.environ.get('XDG_CONFIG_HOME',
-            os.path.join(_home, '.config'))
+xdg_config_home = os.environ.get('XDG_CONFIG_HOME') or \
+            os.path.join(_home, '.config')
 
 xdg_config_dirs = [xdg_config_home] + \
     os.environ.get('XDG_CONFIG_DIRS', '/etc/xdg').split(':')
 
-xdg_cache_home = os.environ.get('XDG_CACHE_HOME',
-            os.path.join(_home, '.cache'))
+xdg_cache_home = os.environ.get('XDG_CACHE_HOME') or \
+            os.path.join(_home, '.cache')
 
 xdg_data_dirs = filter(lambda x: x, xdg_data_dirs)
 xdg_config_dirs = filter(lambda x: x, xdg_config_dirs)

--- End Message ---
--- Begin Message ---
Source: pyxdg
Source-Version: 0.19-2

We believe that the bug you reported is fixed in the latest version of
pyxdg, which is due to be installed in the Debian FTP archive:

python-xdg_0.19-2_all.deb
  to main/p/pyxdg/python-xdg_0.19-2_all.deb
pyxdg_0.19-2.debian.tar.gz
  to main/p/pyxdg/pyxdg_0.19-2.debian.tar.gz
pyxdg_0.19-2.dsc
  to main/p/pyxdg/pyxdg_0.19-2.dsc



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 568...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Piotr Lewandowski <piotr.lewandow...@gmail.com> (supplier of updated pyxdg 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 23 Jun 2010 16:55:31 +0200
Source: pyxdg
Binary: python-xdg
Architecture: source all
Version: 0.19-2
Distribution: unstable
Urgency: low
Maintainer: Debian Python Modules Team 
<python-modules-team@lists.alioth.debian.org>
Changed-By: Piotr Lewandowski <piotr.lewandow...@gmail.com>
Description: 
 python-xdg - Python library to access freedesktop.org standards
Closes: 568757 583497 585340
Changes: 
 pyxdg (0.19-2) unstable; urgency=low
 .
   * Fix case when $XDG_*_HOME is empty (fix-BaseDirectory-cornercase.patch)
     (closes: #568757). Kudos to Éric Araujo!
   * Fix xdg.Mime.install_mime_info() exception (fix-583497.patch)
     (closes: #583497). Thanks Jakub Wilk!
   * Replace string exceptions in Mime.py (fix-string-exceptions.patch)
     (closes: #585340). Thanks Sandro Tosi!
Checksums-Sha1: 
 6e9c7a9bbebb99f7f1a85c856f8090c7d3e84666 1905 pyxdg_0.19-2.dsc
 c02c9e4b9b4916a4f20d814dff00be2c3c7a7925 5087 pyxdg_0.19-2.debian.tar.gz
 0fe7036e37fc6c5d738c7908cc597799c8d11401 34964 python-xdg_0.19-2_all.deb
Checksums-Sha256: 
 23158c96bacf8ce4b05a1c9a2b00ccaa8ab6d149fc39a558099bc69dedc4bd57 1905 
pyxdg_0.19-2.dsc
 d447edfd349efda50c3817a22b537b7507a2163dff46ed5fac31ea9b48858ee9 5087 
pyxdg_0.19-2.debian.tar.gz
 2e33140fa2e95fad9c93be645cdeea990d9ef2605c4a0c239b7840c20c5f5759 34964 
python-xdg_0.19-2_all.deb
Files: 
 7d7c2b5aebf6ad1d96e40845ecc178d1 1905 python optional pyxdg_0.19-2.dsc
 13b5c800edf0808cc9e4c5925d61569b 5087 python optional 
pyxdg_0.19-2.debian.tar.gz
 94c659fc15a42168eb91108bb5f2a228 34964 python optional 
python-xdg_0.19-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBCAAGBQJMIiDwAAoJEC1Os6YBVHX16roP/0lUsI9cEgLKEjcjSWFHV/uK
yOBskBldPxiCwFuw+vDr8sY65M4YeqLfE9OJ67Q6M1WV8XuAI1/PvEWZY5Gtm+Nf
o6IBz9KKtfUkVNm3Dz1oaN49UGsktFS4R2zRiFhCp5cAMoNUpESBqfLmqKnRc3ip
gOoyGOXDGxzvpW0Wmbl92IIsOylWC5Xpv+JFTuFscndM/EjjbuwmYWCcYssJ1CoI
RUBBkPyy7ItiJcmhIyYsECUaVEiYkBUw5Gs9zeEh8qF8ghw3MHEorNve4h3oQM5g
DcFVuUT/zf6GcMd6r0bliJV4b1tfCQ8ht2QMHFtEFa8e+cAscmO8H0U10a/lJIvb
6upZNpbLWKhFAn9gs9K8N958sAfe36TK4CFDNmwF2Tw0Qh8Fq2IpdLsqTvsH8aN9
dOxVWJBa3CwHKrAru23ZcHUbtNdEKslUzyN4KnF9S1xZ+9NDZs1Gi8dJZFgDuUOV
pWhF7gnnd7EVQJCSwAgR57lI4fdXk7/vsJN6jKFYqSYO6EYAXIUaKY1WHzZJLuQh
xRmJmZp76R6TvAJs/O1iTJdUMb+D82RuhEM/f0DYG8xZliz7RyXwZN2gFtMQXCJd
AeNbwKDYbr9F6gKnlex226nkLa21sR2s1CWb+yRZOvGggaMGgl82BEQ4DjpzykIM
3w+N2esjtx8m7z1E4FI9
=iD91
-----END PGP SIGNATURE-----



--- End Message ---
_______________________________________________
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/python-modules-team

Reply via email to