mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-12-27 13:14:36 +02:00
Don't try to find OPKs inside non-existing directories
This commit is contained in:
parent
78ad051756
commit
1467c9b9d7
@ -61,7 +61,12 @@ Menu::Menu(GMenu2X *gmenu2x, Touchscreen &ts)
|
||||
while ((dptr = readdir(dirp))) {
|
||||
if (dptr->d_type != DT_DIR)
|
||||
continue;
|
||||
readPackages((string) CARD_ROOT + dptr->d_name + "/apps");
|
||||
|
||||
string path = (string) CARD_ROOT + dptr->d_name + "/apps";
|
||||
if (access(path.c_str(), F_OK))
|
||||
continue;
|
||||
|
||||
readPackages(path);
|
||||
}
|
||||
closedir(dirp);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user