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 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=3dceaca5dc775e427709def420339fbad8d8220e;p=ppu.git 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: