[Title] fix ORIGIN for compatable issue
authorjiil.hyoun <jiil.hyoun@samsung.com>
Mon, 15 Oct 2012 12:20:28 +0000 (21:20 +0900)
committerjiil.hyoun <jiil.hyoun@samsung.com>
Mon, 15 Oct 2012 12:20:28 +0000 (21:20 +0900)
[Type] Bugfix
[Module] Toolchain /
[Priority] Major
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

Change-Id: I3b572362323c8456822adb0a2350ce48e2f0aa36

src/common/parser.rb

index 994661808975d17f77bb21fdf82551f19586ea0e..713621188205c1f8e553a4a9466446fe5c8490c7 100644 (file)
@@ -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