Commit be56488a authored by Seblu's avatar Seblu
Browse files

Handle build exception gracefully

parent 348a2f09
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -155,12 +155,14 @@ def build(build_cmd, commit_cmd, localpkg, aurpkg):
		if commit_cmd is not None:
			info("Starting commit command")
			check_call(commit_cmd, stdin=DEVNULL, stdout=fd, stderr=fd, shell=True, close_fds=True)

		localpkg.lastbuild = now
		localpkg.lastmodified = aurpkg.lastmodified
	except Exception as exp:
		error("Build failure: %s" % exp)
	finally:
		chdir(cwd)
		fd.close()
	localpkg.lastbuild = now
	localpkg.lastmodified = aurpkg.lastmodified

def event_loop(packages, timeout):
	'''
	program roundabout