[kteam-tools][PATCH] apply-stable-patches: add --stop-on-fail switch
Andy Whitcroft
apw at canonical.com
Fri Sep 20 14:14:04 UTC 2013
On Thu, Sep 19, 2013 at 09:30:39AM -0700, Kamal Mostafa wrote:
> @@ -515,6 +521,9 @@ class ApplyStablePatches(StdApp):
> move(patch_file, failed_dir)
> print("failed")
> status, result = run_command('git am --abort')
> + if 'stop_on_fail' in self.cfg:
> + print("Stopping because a patch failed to apply.")
> + break
> continue
> if patch_file == filename:
> move(filename, applied_dir)
PS: this bit is indented slightly off, which normally says you used tabs
when the file is spaces or visa-versa... and in some later pythons this
will call you rude names and refuse to work.
-apw
More information about the kernel-team
mailing list