PCM: reverse-transform package ID when loading fallback
This commit is contained in:
parent
94ea90b3fb
commit
ed3642c5c7
|
@ -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>" );
|
||||
|
|
Loading…
Reference in New Issue