diff -Nru planetfilter-0.7.3/Changelog.txt planetfilter-0.7.4/Changelog.txt --- planetfilter-0.7.3/Changelog.txt 2017-04-05 05:12:37.000000000 +0000 +++ planetfilter-0.7.4/Changelog.txt 2017-08-05 22:36:57.000000000 +0000 @@ -1,3 +1,6 @@ +0.7.4 (2017-08-05) +- Avoid deleting files when errors occur + 0.7.3 (2017-04-04) - Gracefully handle OSError - Gracefully handle ConnectionResetError diff -Nru planetfilter-0.7.3/debian/changelog planetfilter-0.7.4/debian/changelog --- planetfilter-0.7.3/debian/changelog 2017-04-05 05:38:52.000000000 +0000 +++ planetfilter-0.7.4/debian/changelog 2017-08-05 23:21:19.000000000 +0000 @@ -1,3 +1,11 @@ +planetfilter (0.7.4-1) unstable; urgency=medium + + * New upstream release + * Bump Standards-Version up to 4.0.0 + * Bump debhelper compat to 10 + + -- Francois Marier Sat, 05 Aug 2017 16:21:19 -0700 + planetfilter (0.7.3-1) unstable; urgency=medium * New upstream release diff -Nru planetfilter-0.7.3/debian/compat planetfilter-0.7.4/debian/compat --- planetfilter-0.7.3/debian/compat 2017-04-05 05:38:52.000000000 +0000 +++ planetfilter-0.7.4/debian/compat 2017-08-05 23:21:19.000000000 +0000 @@ -1 +1 @@ -9 +10 diff -Nru planetfilter-0.7.3/debian/control planetfilter-0.7.4/debian/control --- planetfilter-0.7.3/debian/control 2017-04-05 05:38:52.000000000 +0000 +++ planetfilter-0.7.4/debian/control 2017-08-05 23:21:19.000000000 +0000 @@ -2,8 +2,8 @@ Section: web Priority: optional Maintainer: Francois Marier -Build-Depends: debhelper (>= 9), dh-python, python3-all -Standards-Version: 3.9.8 +Build-Depends: debhelper (>= 10), dh-python, python3-all +Standards-Version: 4.0.0 Homepage: https://launchpad.net/planetfilter Vcs-Git: https://anonscm.debian.org/git/collab-maint/planetfilter.git Vcs-Browser: https://anonscm.debian.org/gitweb/?p=collab-maint/planetfilter.git;a=summary diff -Nru planetfilter-0.7.3/PKG-INFO planetfilter-0.7.4/PKG-INFO --- planetfilter-0.7.3/PKG-INFO 2017-04-05 05:29:29.000000000 +0000 +++ planetfilter-0.7.4/PKG-INFO 2017-08-05 22:38:31.000000000 +0000 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: planetfilter -Version: 0.7.3 +Version: 0.7.4 Summary: Filter for blog aggregators Home-page: https://launchpad.net/planetfilter Author: Francois Marier diff -Nru planetfilter-0.7.3/planetfilter planetfilter-0.7.4/planetfilter --- planetfilter-0.7.3/planetfilter 2017-04-05 05:27:33.000000000 +0000 +++ planetfilter-0.7.4/planetfilter 2017-08-05 22:37:20.000000000 +0000 @@ -42,7 +42,7 @@ RDFNS = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' -VERSION = '0.7.3' +VERSION = '0.7.4' def delete_node(node): @@ -449,13 +449,19 @@ contents = download_feed(url) if not contents: if outfile and os.path.isfile(outfile): - os.remove(outfile) + # leave the previously filtered feed in place + pass return True # non-fatal error document = parse_feed(contents, url) if not document: if outfile and os.path.isfile(outfile): - os.remove(outfile) + try: + with codecs.open(outfile, 'w', 'utf-8') as outfh: + outfh.write('') # clear any previous feed + except PermissionError: + print("Error: not enough permissions to write to '%s'" + % outfile, file=sys.stderr) return False filter_feed(document, blacklist) @@ -465,7 +471,7 @@ with codecs.open(outfile, 'w', 'utf-8') as outfh: outfh.write(document.toxml()) except PermissionError: - print("Error: no enough permissions to write to '%s'" % outfile, + print("Error: not enough permissions to write to '%s'" % outfile, file=sys.stderr) return False else: diff -Nru planetfilter-0.7.3/README.txt planetfilter-0.7.4/README.txt --- planetfilter-0.7.3/README.txt 2016-01-20 03:14:40.000000000 +0000 +++ planetfilter-0.7.4/README.txt 2017-08-05 22:36:23.000000000 +0000 @@ -44,7 +44,7 @@ ## License -Copyright (C) 2010, 2015, 2016 Francois Marier +Copyright (C) 2010, 2015, 2016, 2017 Francois Marier This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as diff -Nru planetfilter-0.7.3/setup.py planetfilter-0.7.4/setup.py --- planetfilter-0.7.3/setup.py 2017-04-05 05:25:21.000000000 +0000 +++ planetfilter-0.7.4/setup.py 2017-08-05 22:37:12.000000000 +0000 @@ -2,7 +2,7 @@ setup( name = 'planetfilter', - version = '0.7.3', + version = '0.7.4', description = 'Filter for blog aggregators', author = 'Francois Marier', author_email = 'francois@fmarier.org',