diff options
author | taca <taca@pkgsrc.org> | 2013-03-08 10:14:18 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2013-03-08 10:14:18 +0000 |
commit | ce0d9ee2a2b98792579a15c72ec27c5be70ec35f (patch) | |
tree | bf37ded38c3f9b1d6a1f7b777adf0191e81c0e1c /lang | |
parent | cab6c7bc5492d301a33f8ec85d3af68b3274ee4a (diff) | |
download | pkgsrc-ce0d9ee2a2b98792579a15c72ec27c5be70ec35f.tar.gz |
Oops, fix some broken handling of a new rule.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/ruby/files/update-gemspec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/ruby/files/update-gemspec.rb b/lang/ruby/files/update-gemspec.rb index 7e2a8546996..1723b7fe1c7 100644 --- a/lang/ruby/files/update-gemspec.rb +++ b/lang/ruby/files/update-gemspec.rb @@ -1,7 +1,7 @@ #!/usr/pkg/bin/ruby # -*- coding: utf-8 -*- # -# $NetBSD: update-gemspec.rb,v 1.5 2013/03/07 16:42:53 taca Exp $ +# $NetBSD: update-gemspec.rb,v 1.6 2013/03/08 10:14:18 taca Exp $ # # Copyright (c) 2011, 2012, 2013 The NetBSD Foundation, Inc. # All rights reserved. @@ -66,7 +66,7 @@ class GemSpecUpdater key = nil rules.each do |s| s.split.each do |ru| - if /^:([a-z_]+)=*(\S+)*/ =~ ru + if key.nil? and /^:([a-z_]+)=(\S+)*/ =~ ru key = $1 var = $2 @attr[key] = var |