[jhbuild] triggers: Handle ~/.local installs
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] triggers: Handle ~/.local installs
- Date: Wed, 13 Jul 2011 15:01:54 +0000 (UTC)
commit 298c3096e29a3a606c3ae731bb581f2e0f313023
Author: Colin Walters <walters verbum org>
Date: Wed Jul 13 11:01:21 2011 -0400
triggers: Handle ~/.local installs
https://bugzilla.gnome.org/show_bug.cgi?id=653842
jhbuild/frontends/buildscript.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/frontends/buildscript.py b/jhbuild/frontends/buildscript.py
index f8f2dc0..672d714 100644
--- a/jhbuild/frontends/buildscript.py
+++ b/jhbuild/frontends/buildscript.py
@@ -209,7 +209,11 @@ class BuildScript:
def run_triggers(self, module_name):
"""See triggers/README."""
- all_triggers = trigger.load_all(os.path.join(PKGDATADIR, 'triggers'))
+ if PKGDATADIR is not None:
+ trigger_path = os.path.join(PKGDATADIR, 'triggers')
+ else:
+ trigger_path = os.path.join(SRCDIR, 'triggers')
+ all_triggers = trigger.load_all(trigger_path)
triggers_to_run = []
for trig in all_triggers:
# Skip if somehow the module isn't really installed
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]