[jhbuild] jhbuild: Set default tarballdir to ~/.cache/jhbuild/downloads
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] jhbuild: Set default tarballdir to ~/.cache/jhbuild/downloads
- Date: Wed, 27 May 2015 22:19:30 +0000 (UTC)
commit 89bab4d4843ae792164ea0d6ecde405b01b0190d
Author: Philip Withnall <philip withnall collabora co uk>
Date: Sun Jan 25 10:19:22 2015 +0000
jhbuild: Set default tarballdir to ~/.cache/jhbuild/downloads
Rather than ~/jhbuild/downloads. Let’s be tidy.
https://bugzilla.gnome.org/show_bug.cgi?id=743469
doc/C/index.docbook | 2 +-
jhbuild/defaults.jhbuildrc | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/doc/C/index.docbook b/doc/C/index.docbook
index c37f502..7414d06 100644
--- a/doc/C/index.docbook
+++ b/doc/C/index.docbook
@@ -2284,7 +2284,7 @@ Optional packages: (JHBuild will build the missing packages)
This is useful if you have multiple JHBuild environments or
regularly clear out <varname>checkoutroot</varname> and want to
reduce bandwidth usage. Defaults to
- <literal>'~/jhbuild/downloads'</literal>.</simpara>
+ <literal>'~/.cache/jhbuild/downloads'</literal>.</simpara>
</listitem>
</varlistentry>
<varlistentry id="cfg-tinderbox-outputdir">
diff --git a/jhbuild/defaults.jhbuildrc b/jhbuild/defaults.jhbuildrc
index 85d4a0a..4b9a390 100644
--- a/jhbuild/defaults.jhbuildrc
+++ b/jhbuild/defaults.jhbuildrc
@@ -49,7 +49,10 @@ if os.path.exists(os.path.expanduser('~/checkout/gnome')):
else:
checkoutroot = '~/jhbuild/checkout/'
-tarballdir = '~/jhbuild/downloads/'
+xdg_cache_home = os.environ.get('XDG_CACHE_HOME',
+ os.path.join(os.path.expanduser('~'),
+ '.cache'))
+tarballdir = os.path.join(xdg_cache_home, 'jhbuild', 'downloads')
buildroot = None # if set, packages will be built with srcdir!=builddir
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]