RaaA: Fix database duplication issue on every start
commit59e207251a1b4a68e9b7d13414253368f0efb000
authorkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Thu, 27 Jan 2011 21:09:25 +0000 (27 21:09 +0000)
committerkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Thu, 27 Jan 2011 21:09:25 +0000 (27 21:09 +0000)
tree76f5eeb952ac8cb6b31572955720e0bfd20fdf58
parent8792ddeaba60d4f7d2ea9e342f7be7609b66d3c0
RaaA: Fix database duplication issue on every start

The code in tagcache.c:commit() was unable to delete
the to-be-commited database file as it read from
$(HOME)/.config/rockbox.org and tried to delete
the file later on in /.rockbox/.

As we didn't specify any flags like IS_FILE or NEED_WRITE
in _get_user_file_path() (which is called by f.e. app_remove()),
it searched for the file in two places.

In case of app_rename() IS_FILE would be wrong, so we just
add a NEED_WRITE to any write operation.

Author: Thomas Jarosch

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29148 a1c6a512-1295-4272-9138-f99709370657
firmware/common/rbpaths.c