Your message dated Sun, 08 May 2011 18:02:55 +0000
with message-id <[email protected]>
and subject line Bug#568757: fixed in pyxdg 0.19-3
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 [email protected]
immediately.)
--
568757: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568757
Debian Bug Tracking System
Contact [email protected] 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-3
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-3_all.deb
to main/p/pyxdg/python-xdg_0.19-3_all.deb
pyxdg_0.19-3.debian.tar.gz
to main/p/pyxdg/pyxdg_0.19-3.debian.tar.gz
pyxdg_0.19-3.dsc
to main/p/pyxdg/pyxdg_0.19-3.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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Jakub Wilk <[email protected]> (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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sun, 08 May 2011 19:34:06 +0200
Source: pyxdg
Binary: python-xdg
Architecture: source all
Version: 0.19-3
Distribution: unstable
Urgency: low
Maintainer: Debian Python Modules Team
<[email protected]>
Changed-By: Jakub Wilk <[email protected]>
Description:
python-xdg - Python library to access freedesktop.org standards
Closes: 568757
Changes:
pyxdg (0.19-3) unstable; urgency=low
.
* Team upload.
* Update fix-BaseDirectory-cornercase.patch to handle $XDG_*_DIRS variables
(closes: #568757). Thanks to Thibaut Girka for the updated patch.
* Bump standards version to 3.9.2 (no changes needed).
Checksums-Sha1:
04df2ce6b6032b47fd2c6c18235b6f200a9b8da7 1905 pyxdg_0.19-3.dsc
6aca4a3f887d52829f5c660c62f5f97b456d3da8 5462 pyxdg_0.19-3.debian.tar.gz
23a2aacad2bd9e9fa0fd11047382eb41f5a34bac 35506 python-xdg_0.19-3_all.deb
Checksums-Sha256:
503e17cda68d31d355855043cd928094f39c5f2ada6c04f99d9e298e473370ce 1905
pyxdg_0.19-3.dsc
7358b38fa5e223c37ebd4993aacd3c16da6093acb25e5d45973674d5b4db8e1f 5462
pyxdg_0.19-3.debian.tar.gz
1e7dd70f5aaabc58978510728cfa478e550a46935ec6c6f07e78bc4103735019 35506
python-xdg_0.19-3_all.deb
Files:
25c81c8848d8947eee29fc61531116cb 1905 python optional pyxdg_0.19-3.dsc
04c95bbf94895d422899d7c5db097557 5462 python optional
pyxdg_0.19-3.debian.tar.gz
9348470b658c50c0486dce8ec9c03e59 35506 python optional
python-xdg_0.19-3_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQIcBAEBCAAGBQJNxtgcAAoJEC1Os6YBVHX1sSkP/i8HpnsnUOTo22YQe91oPugy
q+rpaP761lMZr1bFPAYblJuH9SDq2WHUvyqhqMGqgKF73l+URJTIEaEu1VeQrcWU
ZRgpk/JMAdRTkaZ3FN+PHdjO8WQeYXjBBv0EXs1uALgS4sRUVbIRG6HAWrNnfBAE
0lBX2hNWnByrN75MeVQqzs8KdbozGeZ6Ax8J5KOGlDf2pMGS8rk1doqwPZRfeDmp
uhOUaTFrEWerT0t4N8Y3pbMYefXVRg131tw/MrD37/c0bz1el5qFZXrmaF/Qh1YP
VQ8pOWXTDyOr1e8jhAzk0SW1a6K63BN78+zX5YwfK/DkhgKsTyRIVHlQEHcVMirc
m3IOlF4jQwbG+ZdXoAslaEW965MLkUZ6wwDX+QXgvxw3T/g+5Yj/wHSYYGakn5Io
6tYRUXNcilK8pl1SSDXFZ9RgE4ZXA2BBjCeAmIR0D8d/La4r4Lz4+pXbkLKpRQvv
32jV5lMPlgxvwIC1tpcTAFPf+zydSQ0EtnfiHGCPoKEm5CbCCwcqFGZt7TLbynR1
UAgWo5wVFwnmuYYfpCi9RfAP7cpfi1zdkfT47x/n4ECi48JNbRIQdXyQ/uWy4Wes
M47mbEoU3WF8VLdlyRmLhQiQtFJWL3bQecr9mCNs9dgA4gO5dNU+nzdO0gd8Ntm3
iGS39VxfxrPHOHrazgpo
=JIjl
-----END PGP SIGNATURE-----
--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/python-modules-team