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

Rohan Garg rohangarg-guest at moszumanska.debian.org
Wed Dec 17 02:27:08 UTC 2014


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

The following commit has been merged in the master branch:
commit 9234f205feb71f21205ec95da6745ab7be576001
Author: Rohan Garg <rohan at kde.org>
Date:   Wed Dec 17 03:26:58 2014 +0100

    Delete file if file already exists
---
 dci/source.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dci/source.rb b/dci/source.rb
index bed61f0..4a0fd23 100644
--- a/dci/source.rb
+++ b/dci/source.rb
@@ -60,6 +60,7 @@ Dir.chdir(ARGV[1]) do
 
     # create orig tar
     tar = "#{source_name}_#{tar_version}.orig.tar"
+    File.delete(tar) if File.exists? tar
     raise 'Failed to create a tarball' unless system("tar -cf #{tar} source")
     raise 'Failed to compress the tarball' unless system("xz -6 #{tar}")
 

-- 
ci-tooling packaging



More information about the pkg-kde-commits mailing list