[SCM] ci-tooling packaging branch, dci, updated. 6aada4e64938cfe59ecd84a7148e14bd2100129a

Rohan Garg rohangarg-guest at moszumanska.debian.org
Tue Dec 2 14:42:09 UTC 2014


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

The following commit has been merged in the dci branch:
commit 6aada4e64938cfe59ecd84a7148e14bd2100129a
Author: Rohan Garg <rohan at kde.org>
Date:   Tue Dec 2 15:41:38 2014 +0100

    Make things simpler, always append, if file doesn't exist, it creates the file
---
 dci/source.rb | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/dci/source.rb b/dci/source.rb
index 2e74d4f..83cd118 100644
--- a/dci/source.rb
+++ b/dci/source.rb
@@ -63,11 +63,7 @@ Dir.chdir(ARGV[1]) do
             package_name = File.basename(install_file_path, '.install')
             lintian_overrides_path = install_file_path.gsub('.install', '.lintian-overrides')
             puts "#{package_name} is now empty, trying to add lintian override"
-            fopen_flag = 'w'
-            if File.exist?(lintian_overrides_path)
-                fopen_flag = 'a'
-            end
-            File.open(lintian_overrides_path, fopen_flag) { |file| file.write("#{package_name}: empty-binary-package
") }
+            File.open(lintian_overrides_path, 'a') { |file| file.write("#{package_name}: empty-binary-package
") }
         end
     end
     

-- 
ci-tooling packaging



More information about the pkg-kde-commits mailing list