gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 90/163: mk-ca-bundle.pl: make -u delete certdata.tx


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 90/163: mk-ca-bundle.pl: make -u delete certdata.txt if found not changed
Date: Sun, 05 Aug 2018 12:36:56 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 47762f55839268213cc79708b51edd7cbef2893a
Author: Matteo Bignotti <address@hidden>
AuthorDate: Wed Jun 13 13:45:23 2018 -0700

    mk-ca-bundle.pl: make -u delete certdata.txt if found not changed
    
    certdata.txt should be deleted also when the process is interrupted by
    "same certificate downloaded, exiting"
    
    The certdata.txt is currently kept on disk even if you give the -u
    option
    
    Closes #2655
---
 lib/mk-ca-bundle.pl | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/mk-ca-bundle.pl b/lib/mk-ca-bundle.pl
index 3dc5b6538..33977f322 100755
--- a/lib/mk-ca-bundle.pl
+++ b/lib/mk-ca-bundle.pl
@@ -377,6 +377,9 @@ my $newhash= sha256($txt);
 
 if(!$opt_f && $oldhash eq $newhash) {
     report "Downloaded file identical to previous run\'s source file. Exiting";
+    if($opt_u && -e $txt && !unlink($txt)) {
+        report "Failed to remove $txt: $!\n";
+    }
     exit;
 }
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]