+* 2.1.10
+- Added more check points for immediate "CANCEL"
+== donghee yang <donghee.yang@samsung.com> 2013-03-26
* 2.1.9
- Fixed a bug that "CANCEL" is not done immediately
== donghee yang <donghee.yang@samsung.com> 2013-03-26
Source : dibs
-Version :2.1.9
+Version :2.1.10
Maintainer : taejun ha<taejun.ha@samsung.com>, jiil hyoun <jiil.hyoun@samsung.com>, donghyuk yang <donghyouk.yang@samsung.com>, donghee yang <donghee.yang@samsung.com>, sungmin kim <dev.sungmin.kim@samsung.com
Package : dibs
# create process to execute command
public
def execute_command(cmd)
+ # if canceled, must prevent invoking more process
+ check_event
+
# execute
pid, status = Utils.execute_shell_with_log(cmd, @log.path, false)
@sub_pid = pid
end
@sub_pid = 0
+ # if canceled, must exit job thread
check_event
+
# return
return pid, status
end
end
def execute_shell(cmd)
+ # if canceled, must prevent invoking more process
+ check_event
ret = Utils.execute_shell(cmd)
+ # if canceled, must exit job thread
check_event
return ret
end
# install build dependencies
@log.info( "Installing dependent packages...", Log::LV_USER)
pkginfo.get_build_dependencies( os ).each do |dep|
+ # if job, check "CANCEL"
+ if not @job.nil? then @job.check_event() end
+
if dep.target_os_list.count != 0 then
dep_target_os = dep.target_os_list[0]
else