Shows up with high frequency on errors.ubuntu.com, caused by a race:
=== modified file 'softwarecenter/log.py' --- softwarecenter/log.py 2012-03-15 10:43:13 +0000 +++ softwarecenter/log.py 2012-05-08 18:55:17 +0000 @@ -93,7 +93,13 @@ # create log file if not os.path.exists(SOFTWARE_CENTER_CACHE_DIR): - os.makedirs(SOFTWARE_CENTER_CACHE_DIR) + try: + os.makedirs(SOFTWARE_CENTER_CACHE_DIR) + except OSError as e: + if e.errno == 17: + pass + else: + raise logfile_path = os.path.join(SOFTWARE_CENTER_CACHE_DIR, "software-center.log") # try to fix inaccessible s-c directory (#688682) ** Changed in: software-center (Ubuntu) Importance: Undecided => Medium ** Changed in: software-center (Ubuntu) Milestone: None => precise-updates ** Tags added: ca-escalated -- 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