From: Oleg Broytman Date: Fri, 15 Dec 2017 18:16:53 +0000 (+0300) Subject: Fix(rm.py): Do not ask to remove read-only files when -f is active X-Git-Tag: 0.6.1^0 X-Git-Url: https://git.phdru.name/?p=ppu.git;a=commitdiff_plain;h=dbc98b293abfbea2105efde4c066223e73ae63a6 Fix(rm.py): Do not ask to remove read-only files when -f is active --- diff --git a/docs/news.rst b/docs/news.rst index c5e9b0b..fc2aaea 100644 --- a/docs/news.rst +++ b/docs/news.rst @@ -1,6 +1,11 @@ News ==== +Version 0.6.1 (2017-12-15) +-------------------------- + +* Fix rm.py: do not ask to remove read-only files when -f is active. + Version 0.6.0 (2017-12-13) -------------------------- diff --git a/ppu/__version__.py b/ppu/__version__.py index ef7eb44..8411e55 100644 --- a/ppu/__version__.py +++ b/ppu/__version__.py @@ -1 +1 @@ -__version__ = '0.6.0' +__version__ = '0.6.1' diff --git a/scripts/rm.py b/scripts/rm.py index 17d4164..fca4dca 100755 --- a/scripts/rm.py +++ b/scripts/rm.py @@ -24,7 +24,7 @@ if __name__ == '__main__': if args.force and not os.path.exists(name): continue is_dir = os.path.isdir(name) - if not os.access(name, os.W_OK): + if not args.force and not os.access(name, os.W_OK): if is_dir: ftype = 'directory' else: