As it turns out the delete actually does work from Python even if the file is not set as writable, so we can set this one to invalid. We have a unit test for this case in the , and the test case from bug 996333 (for which this code was the fix) shows the file being successfully deleted as well.
Many thanks! ** Changed in: software-center (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1005891 Title: ensure_file_writable_and_delete_if_not does not work To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/1005891/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs