[gnome-ostree] builder: Also find base/patches when looking up a component
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] builder: Also find base/patches when looking up a component
- Date: Thu, 15 Nov 2012 13:32:40 +0000 (UTC)
commit 144f899c812088ff6c8534556d41b5f844656489
Author: Colin Walters <walters verbum org>
Date: Thu Nov 15 08:30:44 2012 -0500
builder: Also find base/patches when looking up a component
This helps us get push notification for gnome-ostree at least, since
it's patches.
src/ostbuild/pyostbuild/builtins.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/ostbuild/pyostbuild/builtins.py b/src/ostbuild/pyostbuild/builtins.py
index ea32006..b21849b 100755
--- a/src/ostbuild/pyostbuild/builtins.py
+++ b/src/ostbuild/pyostbuild/builtins.py
@@ -114,6 +114,10 @@ class Builtin(object):
for component in snapshot['components']:
if component['name'] == name:
return component
+ if snapshot['base']['name'] == name:
+ return snapshot['base']
+ if snapshot['patches']['name'] == name:
+ return snapshot['patches']
return None
def get_component(self, name, in_snapshot=None):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]