From ad4a40bd39960fcaf2d55b82173fc0daed7bd2e6 Mon Sep 17 00:00:00 2001 From: JackDandy Date: Fri, 20 Apr 2018 12:23:32 +0100 Subject: [PATCH] Change remove deprecated files. --- CHANGES.md | 1 + _cleaner.py | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 83aa5c0c..fe6ff7dc 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -38,6 +38,7 @@ * Change remove redundant xsrf handling for POSTs that don't use web and API * Change add xsrf protection support to media processing scripts * Change suppress output warnings from media process scripts +* Change remove deprecated files ### 0.15.14 (2018-04-20 12:00:00 UTC) diff --git a/_cleaner.py b/_cleaner.py index a8cabc2e..b9219e35 100644 --- a/_cleaner.py +++ b/_cleaner.py @@ -4,13 +4,18 @@ import os import shutil parent_dir = os.path.abspath(os.path.dirname(__file__)) -cleaned_file = os.path.abspath(os.path.join(parent_dir, '.cleaned.tmp')) -if not os.path.isfile(cleaned_file): +cleaned_file = os.path.abspath(os.path.join(parent_dir, '.cleaned002.tmp')) +test = os.path.abspath(os.path.join(parent_dir, 'lib', 'hachoir_core')) +if not os.path.isfile(cleaned_file) or os.path.exists(test): dead_dirs = [os.path.abspath(os.path.join(parent_dir, *d)) for d in [ + ('.cleaned.tmp',), ('tornado',), ('lib', 'feedcache'), + ('lib', 'hachoir_core'), ('lib', 'hachoir_metadata'), ('lib', 'hachoir_parser'), ('lib', 'jsonrpclib'), ('lib', 'shove'), + ('lib', 'trakt'), + ('lib', 'tvrage_api'), ('lib', 'unrar2') ]]