diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 26f2c68d3..7fd074756 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 11.8.0 +current_version = 11.8.1 commit = True tag = False diff --git a/README.md b/README.md index 12a43fe20..89642047e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -nzbToMedia v11.8.0 +nzbToMedia v11.8.1 ================== Provides an [efficient](https://github.com/clinton-hall/nzbToMedia/wiki/Efficient-on-demand-post-processing) way to handle postprocessing for [CouchPotatoServer](https://couchpota.to/ "CouchPotatoServer") and [SickBeard](http://sickbeard.com/ "SickBeard") (and its [forks](https://github.com/clinton-hall/nzbToMedia/wiki/Failed-Download-Handling-%28FDH%29#sick-beard-and-its-forks)) diff --git a/changelog.txt b/changelog.txt index 10429f300..7f611bac4 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,9 @@ Change_LOG / History +V11.8.1 12/29/2018 + +Fix cleanup for nzbToMedia installed as a git submodule + V11.8.0 12/28/2018 Add version information diff --git a/cleanup.py b/cleanup.py index 3f022289e..33b379dd7 100644 --- a/cleanup.py +++ b/cleanup.py @@ -106,9 +106,7 @@ def clean_folders(*paths): def clean(*paths): """Clean up bytecode and obsolete folders.""" - with WorkingDirectory(module_path()) as cwd: - if cwd.working_directory != cwd.original_directory: - print('Changing to directory:', cwd.working_directory) + def _clean(*paths): print('\n-- Cleaning bytecode --') try: result = clean_bytecode() @@ -124,8 +122,19 @@ def clean(*paths): print(error) else: print(result or 'No folders to clean\n') + + with WorkingDirectory(module_path()) as cwd: + if cwd.working_directory != cwd.original_directory: + print('Changing to directory:', cwd.working_directory) + + if os.path.exists('.git'): + _clean(*paths) + else: + print('Directory is not a git repository') + if cwd.working_directory != cwd.original_directory: print('Returning to directory: ', cwd.original_directory) + print('\n-- Cleanup finished --\n') diff --git a/core/__init__.py b/core/__init__.py index 29fb4491b..c4cfdf4b0 100644 --- a/core/__init__.py +++ b/core/__init__.py @@ -49,7 +49,7 @@ from core.transcoder import transcoder from core.databases import mainDB -__version__ = '11.8.0' +__version__ = '11.8.1' # Client Agents NZB_CLIENTS = ['sabnzbd', 'nzbget', 'manual'] diff --git a/setup.py b/setup.py index b014ad2f0..1bf81072b 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ def read(*names, **kwargs): setup( name='nzbToMedia', - version='11.8.0', + version='11.8.1', license='GPLv3', description='Efficient on demand post processing', long_description="""