unpkg: Don't append title ID to license packages

This commit is contained in:
AniLeo 2021-09-18 17:36:07 +01:00 committed by Ani
parent e10c6cbaf7
commit 1f8f428a59

View File

@ -706,7 +706,9 @@ bool package_reader::extract_data(atomic_t<double>& sync)
break;
}
dir += m_install_dir + '/';
// TODO: Verify whether other content types require appending title ID
if (m_metadata.content_type != PKG_CONTENT_TYPE_LICENSE)
dir += m_install_dir + '/';
// If false, an existing directory is being overwritten: cannot cancel the operation
const bool was_null = !fs::is_dir(dir);