On 08/11/2011 03:50 PM, tsedovic(a)redhat.com wrote:
From: Tomas Sedovic<tsedovic(a)redhat.com>
The Nokogiri that's in Fedora 15 has a different interface to its
`start_element` SAX method.
The `attributes` argument is a list of tuples where each tuple contains the
`name` and `value` of an attribute.
Previously, dbomatic expected the `attributes` to be a simple array of strings.
---
src/dbomatic/dbomatic | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/dbomatic/dbomatic b/src/dbomatic/dbomatic
index 013be84..7207758 100755
--- a/src/dbomatic/dbomatic
+++ b/src/dbomatic/dbomatic
@@ -105,7 +105,7 @@ class CondorEventLog< Nokogiri::XML::SAX::Document
# Store the name of the event log attribute we're looking at
def start_element(element, attributes)
- @tag = attributes[1] if element == "a"
+ @tag = attributes.first[1] if element == "a"
end
# Store the value of the event log attribute we're looking at
Ignore this patch, I've sent another one that will make a
backwards-compatible fix.
thomas|shadow
--
No trees were killed to send this message, but a large number of
electrons were terribly inconvenienced.