]> git.phdru.name Git - ppu.git/commitdiff
Fix(rm.py): Do not ask to remove read-only files when -f is active 0.6.1
authorOleg Broytman <phd@phdru.name>
Fri, 15 Dec 2017 18:16:53 +0000 (21:16 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 15 Dec 2017 18:16:53 +0000 (21:16 +0300)
docs/news.rst
ppu/__version__.py
scripts/rm.py

index c5e9b0b83ca1da0688c20c30f8cc37bad49ee24b..fc2aaea7fd30b22246b2ce542c9ecfb0a065924d 100644 (file)
@@ -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)
 --------------------------
 
index ef7eb44d9ac437a9b7fff8294e69b5dfe9c65d2f..8411e551d5d59687dba6ad3a45721ad67ada5567 100644 (file)
@@ -1 +1 @@
-__version__ = '0.6.0'
+__version__ = '0.6.1'
index 17d4164dcb35f14e2da2f692d09732876be5f962..fca4dca6dc4c2ac84689f31dea4e3ad228fdcab8 100755 (executable)
@@ -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: