FS#5690 - folders with a file named database.ignore will be skipped by the database when it rebuilds, (this includes any subdirs in that fodler)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15738 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2007-11-21 13:37:45 +00:00
parent 2ed41f9020
commit c31ffae440
2 changed files with 13 additions and 1 deletions

View file

@ -3796,6 +3796,7 @@ static bool check_dir(const char *dirname)
DIR *dir;
int len;
int success = false;
char newpath[MAX_PATH];
dir = opendir(dirname);
if (!dir)
@ -3804,6 +3805,15 @@ static bool check_dir(const char *dirname)
return false;
}
/* check for a database.ignore file */
snprintf(newpath, MAX_PATH, "%s/database.ignore", dirname);
len = open(newpath, O_RDONLY);
if (len >= 0)
{
close(len);
return false;
}
/* Recursively scan the dir. */
#ifdef __PCTOOL__
while (1)

View file

@ -186,7 +186,9 @@ sub buildzip {
# always disable fonts on non-bitmap targets
$fonts = 0;
}
# create the file so the database does not try indexing a folder
`touch .rockbox/database.ignore`;
if($fonts) {
mkdir ".rockbox/fonts", 0777;