[game-data-packager] 01/02: innoextract: avoid exception in --save-downloads
    Alexandre Detiste 
    detiste-guest at moszumanska.debian.org
       
    Wed Sep 30 14:25:54 UTC 2015
    
    
  
This is an automated email from the git hooks/post-receive script.
detiste-guest pushed a commit to branch master
in repository game-data-packager.
commit 43785c77d254266c5af396dd46a98759393c5436
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Wed Sep 30 10:22:18 2015 +0200
    innoextract: avoid exception in --save-downloads
---
 game_data_packager/__init__.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index 98fde19..10205a3 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -2931,7 +2931,11 @@ class GameData(object):
                        ready.add(package)
                     if self.save_downloads:
                         for archive in archives:
-                            shutil.move(archive, self.save_downloads)
+                            try:
+                                shutil.move(archive, self.save_downloads)
+                            except shutil.Error:
+                                # file was already there, but not trusted
+                                pass
                 except subprocess.CalledProcessError:
                     pass
             elif result is FillResult.DOWNLOAD_NEEDED and not download:
-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git
    
    
More information about the Pkg-games-commits
mailing list