From: "Luis R. Rodriguez" <mcgrof@xxxxxxxxxxxxxxxx> This cleans sanitizes a source tree and ensures no content is present from what was intended. Signed-off-by: Luis R. Rodriguez <mcgrof@xxxxxxxxxxxxxxxx> --- lib/bpgit.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/bpgit.py b/lib/bpgit.py index fe68d8f..1c3ccbf 100644 --- a/lib/bpgit.py +++ b/lib/bpgit.py @@ -82,6 +82,13 @@ def verify(tree=None): return dict(r=process.returncode, output=stdout) +def paranoia(tree=None): + clean(tree) + extra = status(tree) + if (len(extra) != 0): + return dict(r=-1, output=extra) + return verify(tree) + def init(tree=None): process = subprocess.Popen(['git', 'init'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe backports" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html