From dbc98b293abfbea2105efde4c066223e73ae63a6 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 15 Dec 2017 21:16:53 +0300 Subject: [PATCH] Fix(rm.py): Do not ask to remove read-only files when -f is active --- docs/news.rst | 5 +++++ ppu/__version__.py | 2 +- scripts/rm.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) 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: -- 2.39.5