PCM: reverse-transform package ID when loading fallback

This commit is contained in:
Jon Evans 2021-11-07 21:31:51 -05:00
parent 94ea90b3fb
commit ed3642c5c7
1 changed files with 4 additions and 1 deletions

View File

@ -134,12 +134,15 @@ PLUGIN_CONTENT_MANAGER::PLUGIN_CONTENT_MANAGER( wxWindow* aParent ) : m_dialog(
PCM_INSTALLATION_ENTRY entry;
wxFileName subdir_file( d.GetPath(), subdir );
wxString actual_package_id = subdir;
actual_package_id.Replace( '_', '.' );
// wxFileModificationTime bugs out on windows for directories
wxStructStat stat;
wxStat( subdir_file.GetFullPath(), &stat );
entry.package.name = subdir;
entry.package.identifier = subdir;
entry.package.identifier = actual_package_id;
entry.current_version = "0.0";
entry.install_timestamp = stat.st_mtime;
entry.repository_name = wxT( "<unknown>" );