[sysadmin-bin] gnome-post-receive: send a fishpoke to ostree.gnome.org



commit ee6ec57fb57eb8db82b84655cbf04f83d3b78d44
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Tue Oct 9 00:13:22 2012 -0400

    gnome-post-receive: send a fishpoke to ostree.gnome.org
    
    We want to trigger rebuilds on commits, so for each commit,
    fishpoke ostree.gnome.org.

 git/gnome-post-receive         |    1 +
 git/post-receive-notify-ostree |   44 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+), 0 deletions(-)
---
diff --git a/git/gnome-post-receive b/git/gnome-post-receive
index 8bfee10..6e7fa22 100755
--- a/git/gnome-post-receive
+++ b/git/gnome-post-receive
@@ -26,4 +26,5 @@ tee >($BINDIR/log-push 1>&2) \
     >($BINDIR/post-receive-update-description 1>&2) \
     >($BINDIR/post-receive-notify-cia 1>&2) \
     >($BINDIR/post-receive-notify-updates 1>&2) \
+    >($BINDIR/post-receive-notify-ostree 1>&2) \
     | $BINDIR/gnome-post-receive-email 1>&2
diff --git a/git/post-receive-notify-ostree b/git/post-receive-notify-ostree
new file mode 100755
index 0000000..0bedcf5
--- /dev/null
+++ b/git/post-receive-notify-ostree
@@ -0,0 +1,44 @@
+#!/usr/bin/python
+#
+# post-receive-notify-updates
+#
+# Copyright (C) 2008  Owen Taylor
+# Copyright (C) 2009  Red Hat, Inc
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, If not, see
+# http://www.gnu.org/licenses/.
+#
+# About
+# =====
+# This script is simply sends a poke to a fishpoll target on
+# ostree.gnome.org
+
+from subprocess import Popen
+import sys
+
+script_path = os.path.realpath(os.path.abspath(sys.argv[0]))
+script_dir = os.path.dirname(script_path)
+
+sys.path.insert(0, script_dir)
+
+from git import *
+
+if __name__ == '__main__':
+    module_name = get_module_name()
+
+    process = Popen(["/usr/bin/fishpoke", "ostree-back", "modules-changed", module_name],
+                      stdout=None, stderr=None, stdin=None)
+    process.wait()
+
+    main()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]