[libconfig-model-dpkg-perl] 05/11: do not try to delete non-existent files

dod at debian.org dod at debian.org
Mon Jul 11 18:23:20 UTC 2016


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

dod pushed a commit to branch master
in repository libconfig-model-dpkg-perl.

commit 2409e5a12c4ade8b05ad03597c341ad978d8eb24
Author: Dominique Dumont <dod at debian.org>
Date:   Fri Jul 8 18:53:48 2016 +0200

    do not try to delete non-existent files
---
 lib/Config/Model/Backend/Dpkg.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Config/Model/Backend/Dpkg.pm b/lib/Config/Model/Backend/Dpkg.pm
index 54834fd..39a45b4 100644
--- a/lib/Config/Model/Backend/Dpkg.pm
+++ b/lib/Config/Model/Backend/Dpkg.pm
@@ -126,7 +126,7 @@ sub write {
             $logger->trace("Dpkg write opening $file to write");
             $file->spew_utf8(@v) ;
         }
-        elsif ($args{auto_delete} and not $skip) {
+        elsif ($args{auto_delete} and $file->is_file and not $skip) {
             warn "deleting $file";
             $file->remove;
         }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libconfig-model-dpkg-perl.git



More information about the Pkg-perl-cvs-commits mailing list