[gnome-ostree] autobuilder: Ignore unknown modules from push notification
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] autobuilder: Ignore unknown modules from push notification
- Date: Mon, 22 Oct 2012 19:41:49 +0000 (UTC)
commit bb2e7d6c1a16a6c06623dabd0ade74a79bbe435a
Author: Colin Walters <walters verbum org>
Date: Mon Oct 22 15:41:07 2012 -0400
autobuilder: Ignore unknown modules from push notification
src/ostbuild/pyostbuild/builtin_autobuilder.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/ostbuild/pyostbuild/builtin_autobuilder.py b/src/ostbuild/pyostbuild/builtin_autobuilder.py
index 3a40544..3e8709c 100755
--- a/src/ostbuild/pyostbuild/builtin_autobuilder.py
+++ b/src/ostbuild/pyostbuild/builtin_autobuilder.py
@@ -205,7 +205,11 @@ class OstbuildAutobuilder(builtins.Builtin):
updated.append(name)
path = os.path.join(self.updated_modules_dir, name)
os.unlink(path)
+ latest_snapshot = self.get_src_snapshot_db().get_latest()
for name in updated:
+ if (latest_snapshot is not None
+ and self.find_component_in_snapshot(name, latest_snapshot) is None):
+ continue
log("Queuing fetch of %s from push notification" % (name, ))
self._updated_modules_queue[name] = 1
self._process_updated_modules_dir()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]