n/weboob: Fix XDG default paths.

slackware-14.2
Damien Goutte-Gattat 11 years ago
parent 811983dab2
commit 143be0a043
  1. 14
      n/weboob/weboob-0.a-xdg-fix.diff
  2. 4
      n/weboob/weboob.SlackBuild

@ -0,0 +1,14 @@
diff -Naur weboob-0.a.orig/weboob/core/ouiboube.py weboob-0.a/weboob/core/ouiboube.py
--- weboob-0.a.orig/weboob/core/ouiboube.py 2012-02-05 19:35:30.000000000 +0100
+++ weboob-0.a/weboob/core/ouiboube.py 2012-03-10 18:00:35.136403499 +0100
@@ -58,8 +58,8 @@
datadir = workdir = os.environ.get('WEBOOB_WORKDIR')
else:
old_workdir = os.path.join(os.path.expanduser('~'), '.weboob')
- xdg_config_home = os.environ.get('XDG_CONFIG_HOME', os.path.join(os.path.expanduser('~'), '.config', 'weboob'))
- xdg_data_home = os.environ.get('XDG_DATA_HOME', os.path.join(os.path.expanduser('~'), '.local', 'share', 'weboob'))
+ xdg_config_home = os.path.join(os.environ.get('XDG_CONFIG_HOME', os.path.join(os.path.expanduser('~'), '.config')), 'weboob')
+ xdg_data_home = os.path.join(os.environ.get('XDG_DATA_HOME', os.path.join(os.path.expanduser('~'), '.local', 'share')), 'weboob')
if os.path.isdir(old_workdir):
self.logger.warning('You are using "%s" as working directory. Files are moved into %s and %s.'

@ -28,6 +28,7 @@
# Depends: l/python-html5lib, l/python-lxml, l/python-mako
# Depends: l/python-mechanize, l/python-dateutil, l/python-yaml
# Depends: l/python-routes, l/python-webob
# Optional: l/python-html2text, l/python-prettytable, ap/mms
# Source package infos
NAMESRC=${NAMESRC:-weboob}
@ -37,7 +38,7 @@ WGET=${WGET:-https://symlink.me/attachments/download/165/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-weboob}
BUILD=${BUILD:-1GGD}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -73,6 +74,7 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
patch -p 1 < $CWD/weboob-0.a-xdg-fix.diff
python setup.py build
python setup.py install --root=$PKG

Loading…
Cancel
Save