mime/Database::Install(): Fix subtype without supertype case
If the supertype directory for a given subtype didn't exist yet, the method would fail.
This commit is contained in:
parent
dcb2158862
commit
ed92790ce5
|
@ -120,7 +120,7 @@ Database::Install(const char *type)
|
|||
|
||||
BEntry entry;
|
||||
status_t err = entry.SetTo(fLocation->WritablePathForType(type));
|
||||
if (!err) {
|
||||
if (err == B_OK || err == B_ENTRY_NOT_FOUND) {
|
||||
if (entry.Exists())
|
||||
err = B_FILE_EXISTS;
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue