Regarding the branch I attached, we can check the "errno" value directly if preferred, per your comments above, mvo. The specific check for the directory just seemed slightly more readable, but I'm sure it's slower (not that speed matters for this case).
If this fix seems ok, I'll wire it in for related bug 836172, bug 936917, bug 973293 and bug 975156. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/743003 Title: software-center crashed with OSError in makedirs(): [Errno 17] File exists: '/home/joris/.cache/software-center' To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/743003/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs