[SCM] ci-tooling packaging branch, master, updated. d8efa83f7db7664e03ba1a4bb4929b6784c0db72
Harald Sitter
apachelogger-guest at moszumanska.debian.org
Mon Mar 23 11:19:18 UTC 2015
Gitweb-URL: http://git.debian.org/?p=pkg-kde/ci-tooling.git;a=commitdiff;h=06e15f8
The following commit has been merged in the master branch:
commit 06e15f8547c87fb80d84cbc889b973a9cd540ccf
Author: Harald Sitter <sitter at kde.org>
Date: Mon Mar 23 12:12:49 2015 +0100
force reset lsb hash on file change
---
lib/lsb.rb | 4 ++++
test/test_lsb.rb | 2 ++
2 files changed, 6 insertions(+)
diff --git a/lib/lsb.rb b/lib/lsb.rb
index 7819e87..98f1b6e 100644
--- a/lib/lsb.rb
+++ b/lib/lsb.rb
@@ -15,6 +15,10 @@ module LSB
@hash ||= LSB.parse(File.read(@file).split($/))
end
+ def reset
+ remove_instance_variable(:@hash) if defined?(@hash)
+ end
+
private
def self.parse(lines)
diff --git a/test/test_lsb.rb b/test/test_lsb.rb
index f9ccba7..af71087 100644
--- a/test/test_lsb.rb
+++ b/test/test_lsb.rb
@@ -11,10 +11,12 @@ class LSBTest < Test::Unit::TestCase
@orig_file = LSB.instance_variable_get(:@file)
LSB.instance_variable_set(:@file, File.join(@datadir, method_name))
+ LSB.reset
end
def teardown
LSB.instance_variable_set(:@file, @orig_file)
+ LSB.reset
end
def test_parse
--
ci-tooling packaging
More information about the pkg-kde-commits
mailing list