require "socket"
=begin
-
+
BuildComm.rb
Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
if port_open? port then
raise "Port \"#{@port}\" is already in use."
end
-
+
if log.nil? then
- log = Log.new(nil)
+ log = Log.new(".log")
end
# create cache dir if not nil
if socket.nil? then
return nil
end
-
+
if log.nil? then
- log = Log.new(nil)
- end
+ log = Log.new(".log")
+ end
return new(socket, log)
end
if not log_path.nil? then
@log = Log.new(log_path)
else
- @log = Log.new(nil)
+ @log = Log.new(".log")
end
end
contents = contents + lines
lines = []
end
- end
+ end
end
# generate shell script
pid, status = @job.execute_command( build_command )
else
pid, status = Utils.execute_shell_with_log( build_command, @log.path )
- end
+ end
+
if status.exitstatus != 0 then
@log.error( "Failed on build script: \"#{target}\"", Log::LV_USER)
return false
=end
class Package
- attr_accessor :package_name, :label, :version, :os, :build_host_os, :maintainer, :attribute, :install_dep_list, :build_dep_list, :source_dep_list, :conflicts, :source, :src_path, :path, :origin, :checksum, :size, :description, :os_list, :custom
+ attr_accessor :package_name, :label, :version, :os, :build_host_os, :maintainer, :attribute, :install_dep_list, :build_dep_list, :source_dep_list, :conflicts, :source, :src_path, :path, :origin, :checksum, :size, :description, :os_list, :custom, :change_log
def initialize (package_name)
@package_name = package_name
@label = ""
@size = ""
@description = ""
@custom = ""
+ @change_log = {}
end
def print