From: jiil.hyoun Date: Mon, 15 Oct 2012 12:20:28 +0000 (+0900) Subject: [Title] fix ORIGIN for compatable issue X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=29f261694763295da0fae712a08c5bab1d82994f;p=sdk%2Ftools%2Fsdk-build.git [Title] fix ORIGIN for compatable issue [Type] Bugfix [Module] Toolchain / [Priority] Major [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] Change-Id: I3b572362323c8456822adb0a2350ce48e2f0aa36 --- diff --git a/src/common/parser.rb b/src/common/parser.rb index 9946618..7136211 100644 --- a/src/common/parser.rb +++ b/src/common/parser.rb @@ -100,6 +100,9 @@ class Parser else raise RuntimeError, "Not exist \"#{pfile}\"" end + when /^ORIGIN$/ then #for compatable + multi_line = nil + next else raise RuntimeError, "Can't parse below line in \"#{file}\" file \n\t#{l}" end when "COMMON" then @@ -120,6 +123,9 @@ class Parser if common_maintainer.empty? then common_maintainer = l.sub(/^[ \t]*Maintainer[ \t]*:[ \t]*/i,"").strip else raise RuntimeError, "#{field_name} information is conflict in \"#{file}\" file\nIf use #{field_name} field in Common section then Package section can't contain #{field_name} field" end + when /^ORIGIN$/ then #for compatable + multi_line = nil + next else raise RuntimeError, "Can't parse below line in \"#{file}\" file \n\t#{l}" end when "PACKAGE" then