diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-07-31 01:06:22 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-31 08:02:10 +0100 |
commit | f558ecf90e05e7ba32f1a4a24572c450360244dc (patch) | |
tree | 898f29ec0f3c5725720d5fc75232b49e89cece4a | |
parent | 2ed3f63b021626fa3de90153c5648ad927518e21 (diff) | |
download | poky-f558ecf90e05e7ba32f1a4a24572c450360244dc.tar.gz |
combo-layer: ignore patch-* temp directories in dirty check
Make the dirty repo check somewhat less strict by ignoring old
patch directories created by this tool.
(From OE-Core rev: fea477ac55e2555c5bb0aad36db641aaa27aa915)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | scripts/combo-layer | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/combo-layer b/scripts/combo-layer index 554ac06191..a93fb9b0e6 100755 --- a/scripts/combo-layer +++ b/scripts/combo-layer | |||
@@ -25,6 +25,7 @@ import optparse | |||
25 | import logging | 25 | import logging |
26 | import subprocess | 26 | import subprocess |
27 | import ConfigParser | 27 | import ConfigParser |
28 | import re | ||
28 | 29 | ||
29 | __version__ = "0.2.1" | 30 | __version__ = "0.2.1" |
30 | 31 | ||
@@ -140,7 +141,9 @@ def check_repo_clean(repodir): | |||
140 | exit if repo is dirty | 141 | exit if repo is dirty |
141 | """ | 142 | """ |
142 | output=runcmd("git status --porcelain", repodir) | 143 | output=runcmd("git status --porcelain", repodir) |
143 | if output: | 144 | r = re.compile('\?\? patch-.*/') |
145 | dirtyout = [item for item in output.splitlines() if not r.match(item)] | ||
146 | if dirtyout: | ||
144 | logger.error("git repo %s is dirty, please fix it first", repodir) | 147 | logger.error("git repo %s is dirty, please fix it first", repodir) |
145 | sys.exit(1) | 148 | sys.exit(1) |
146 | 149 | ||