Archive .ibs files.
Also archives .pkg files that share a name with an archived .ibs file. Fixes https://gitlab.com/kicad/code/kicad/issues/12102
This commit is contained in:
parent
9ce18dffdd
commit
785f1acdb0
|
@ -143,7 +143,8 @@ bool PROJECT_ARCHIVER::Archive( const wxString& aSrcDir, const wxString& aDestFi
|
||||||
wxT( "*.py" ),
|
wxT( "*.py" ),
|
||||||
wxT( "*.pdf" ),
|
wxT( "*.pdf" ),
|
||||||
wxT( "*.txt" ),
|
wxT( "*.txt" ),
|
||||||
wxT( "*.cir" ), wxT( "*.sub" ), wxT( "*.model" ) // SPICE files
|
wxT( "*.cir" ), wxT( "*.sub" ), wxT( "*.model" ), // SPICE files
|
||||||
|
wxT( "*.ibs" )
|
||||||
};
|
};
|
||||||
|
|
||||||
bool success = true;
|
bool success = true;
|
||||||
|
@ -177,6 +178,19 @@ bool PROJECT_ARCHIVER::Archive( const wxString& aSrcDir, const wxString& aDestFi
|
||||||
wxDir::GetAllFiles( aSrcDir, &files, extraExtensionList[ii] );
|
wxDir::GetAllFiles( aSrcDir, &files, extraExtensionList[ii] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for( unsigned ii = 0; ii < files.GetCount(); ++ii )
|
||||||
|
{
|
||||||
|
if( files[ii].EndsWith( wxS( ".ibs" ) ) )
|
||||||
|
{
|
||||||
|
wxFileName package( files[ ii ] );
|
||||||
|
package.MakeRelativeTo( aSrcDir );
|
||||||
|
package.SetExt( wxS( "pkg" ) );
|
||||||
|
|
||||||
|
if( package.Exists() )
|
||||||
|
files.push_back( package.GetFullName() );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
files.Sort();
|
files.Sort();
|
||||||
|
|
||||||
unsigned long uncompressedBytes = 0;
|
unsigned long uncompressedBytes = 0;
|
||||||
|
|
Loading…
Reference in New Issue