summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-06-30 13:47:31 +0000
committerAlan Conway <aconway@apache.org>2009-06-30 13:47:31 +0000
commit23cd766cee6c20d9be7fb59d0863085e2a9369d4 (patch)
tree1387263de3e35b025dbe33dc4e951261aa6a24b5
parentede1268f15f52a8ac0c6b62ca497f5dc6afdf845 (diff)
downloadqpid-python-23cd766cee6c20d9be7fb59d0863085e2a9369d4.tar.gz
Remove duplicate entries in generated makefile fragment src/rubygen.mk.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@789726 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-xqpid/cpp/rubygen/amqpgen.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/qpid/cpp/rubygen/amqpgen.rb b/qpid/cpp/rubygen/amqpgen.rb
index b77ab09ac0..802f934c7a 100755
--- a/qpid/cpp/rubygen/amqpgen.rb
+++ b/qpid/cpp/rubygen/amqpgen.rb
@@ -30,6 +30,7 @@
require 'delegate'
require 'rexml/document'
require 'pathname'
+require 'set'
include REXML
# Handy String functions for converting names.
@@ -463,8 +464,8 @@ end
# Collect information about generated files.
class GenFiles
- @@files =[]
- def GenFiles.add(f) @@files << f; end
+ @@files = Set.new
+ def GenFiles.add(f) @@files.add f; end
def GenFiles.get() @@files; end
end