From d55d80136c3078919f64aec749bc32913e9d84ad Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Fri, 23 Sep 2022 10:13:50 +0000 Subject: Fix the test to really verify the fix That test would pass even without the fix as it would be considered that the package hasn't been rebuilt for this arch yet. The bug could only happen when there was also another subpackage remaining. --- modules/buildsystem/templates/cleaner_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/buildsystem/templates/cleaner_test.rb b/modules/buildsystem/templates/cleaner_test.rb index 7e03b80d..875d90c4 100644 --- a/modules/buildsystem/templates/cleaner_test.rb +++ b/modules/buildsystem/templates/cleaner_test.rb @@ -65,7 +65,7 @@ class TestCleaner < Test::Unit::TestCase $noarch = { 'foo' => true } srctime = Time.now.to_i - 10*24*3600 bintime = Time.now.to_i - 3600 - setpackages(["foo-42-2.src.rpm:foo-42-2.noarch.rpm:#{bintime}"]) + setpackages(["foo-42-2.src.rpm:foo-42-2.i586.rpm:#{bintime}", "foo-42-1.src.rpm:foo-bar-42-1.i586.rpm:#{srctime}"]) srcages = {} srcages['foo'] = [ 'foo-42-1.src.rpm', srctime ] srcs = {} -- cgit v1.2.1