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 Desktop
Packages, which is subscribed to software-center in Ubuntu.
https://bugs.launchpad.net/bugs/1005891
Title:
ensure_file_writable_and_delete_if_not does not work
Status in “software-center” package in Ubuntu:
Invalid
Bug description:
ensure_file_writable_and_delete_if_not tries to removes a file that
has no perms for writting, thus this will fail every time.
What it should do instead is try to change the perms back to writable
(ie os.chmod(file_path, stat.S_IRUSR | stat.S_IWUSR)).
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/1005891/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp