[SCM] ci-tooling packaging branch, master, updated. d5face6d7fedc083e46ef7f035735c15ff395b50

Harald Sitter apachelogger-guest at moszumanska.debian.org
Mon Mar 16 10:15:37 UTC 2015


Gitweb-URL: http://git.debian.org/?p=pkg-kde/ci-tooling.git;a=commitdiff;h=2cec464

The following commit has been merged in the master branch:
commit 2cec464f8e4ab1c3404b45dd27510d6e570b9b91
Author: Harald Sitter <sitter at kde.org>
Date:   Mon Mar 16 10:19:42 2015 +0100

    use a symbol for the source format type
---
 lib/debian/source.rb       | 2 +-
 test/test_debian_source.rb | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/debian/source.rb b/lib/debian/source.rb
index 2720aa0..c7022d1 100644
--- a/lib/debian/source.rb
+++ b/lib/debian/source.rb
@@ -23,7 +23,7 @@ module Debian
         data = str.strip
         match = data.match(/(?<version>[^\s]+)(\s+\((?<type>.*)\))?/)
         @version = match[:version]
-        @type = match[:type]
+        @type = match[:type].to_sym if match[:type]
       end
     end
 
diff --git a/test/test_debian_source.rb b/test/test_debian_source.rb
index 2ef0cc0..5670fd8 100644
--- a/test/test_debian_source.rb
+++ b/test/test_debian_source.rb
@@ -53,13 +53,13 @@ class DebianSourceFormatTest < Test::Unit::TestCase
   def test_3_native
     format = Debian::Source::Format.new('3.0 (native)')
     assert_equal('3.0', format.version)
-    assert_equal('native', format.type)
+    assert_equal(:native, format.type)
   end
 
   def test_3_quilt
     format = Debian::Source::Format.new('3.0 (quilt)')
     assert_equal('3.0', format.version)
-    assert_equal('quilt', format.type)
+    assert_equal(:quilt, format.type)
   end
 
   def test_3_to_s

-- 
ci-tooling packaging



More information about the pkg-kde-commits mailing list