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') ]]