[jhbuild] [git] Always trigger a build for dirty git branches (GNOME bug 618254)
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] [git] Always trigger a build for dirty git branches (GNOME bug 618254)
- Date: Tue, 8 Jun 2010 08:51:25 +0000 (UTC)
commit 6aa32d48dc0935a19f5452b588f8135954ba5525
Author: Dirk Wallenstein <halsmit t-online de>
Date: Sat May 22 20:29:50 2010 +0200
[git] Always trigger a build for dirty git branches (GNOME bug 618254)
A dirty git branch will be considered not up to date in every
build_policy.
jhbuild/modtypes/__init__.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/jhbuild/modtypes/__init__.py b/jhbuild/modtypes/__init__.py
index 96d5adf..dd856db 100644
--- a/jhbuild/modtypes/__init__.py
+++ b/jhbuild/modtypes/__init__.py
@@ -31,6 +31,7 @@ import os
from jhbuild.errors import FatalError, CommandError, BuildStateError, SkipToEnd
from jhbuild.utils.sxml import sxml
+from jhbuild.versioncontrol.git import GitBranch
_module_types = {}
def register_module_type(name, parse_func):
@@ -174,6 +175,11 @@ class Package:
def check_build_policy(self, buildscript):
if not buildscript.config.build_policy in ('updated', 'updated-deps'):
return
+
+ # Always trigger a build for dirty git branches.
+ if isinstance(self.branch, GitBranch) and self.branch.is_dirty():
+ return
+
if not buildscript.packagedb.check(self.name, self.get_revision() or ''):
# package has not been updated
return
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]