[Pkg-owncloud-commits] [owncloud-client] 204/332: tests: Reverted previous change, do not append in createLocalFile()

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu Aug 14 21:07:00 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 774432066efcb3e3bbbd8bfcda84327223d42ca2
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Wed Jul 16 17:25:18 2014 +0200

    tests: Reverted previous change, do not append in createLocalFile()
---
 csync/tests/ownCloud/ownCloud/Test.pm | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/csync/tests/ownCloud/ownCloud/Test.pm b/csync/tests/ownCloud/ownCloud/Test.pm
index 507b31b..9540682 100644
--- a/csync/tests/ownCloud/ownCloud/Test.pm
+++ b/csync/tests/ownCloud/ownCloud/Test.pm
@@ -572,11 +572,7 @@ sub createLocalFile( $$ )
   
   my $md5 = Digest::MD5->new;
 
-  if (-e $fname) {
-    open(FILE, ">>", $fname ) or die "Can not append to file ($!)";
-  } else {
-    open(FILE, ">", $fname) or die "Can't open $fname for writing ($!)";
-  }
+  open(FILE, ">", $fname) or die "Can't open $fname for writing ($!)";
   
   my $minimum = 32;
   my $range = 96;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list