Subversion Repositories spk

Rev

Rev 170 | Rev 175 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 170 Rev 172
Line 759... Line 759...
759
	if ( addfile.Empty() )
759
	if ( addfile.Empty() )
760
	{
760
	{
761
		printf ( "Error: Remove filename is invalid\n" );
761
		printf ( "Error: Remove filename is invalid\n" );
762
		return;
762
		return;
763
	}
763
	}
764
	int t = GetFileTypeFromString(type.ToString());
764
	FileType t = GetFileTypeFromString(type.ToString());
765
	if ( t == -1 )
765
	if (t == FileType::FILETYPE_UNKNOWN)
766
	{
766
	{
767
		printf ( "The file type \"%s\" is invalid\n", type.c_str() );
767
		printf ( "The file type \"%s\" is invalid\n", type.c_str() );
768
		return;
768
		return;
769
	}
769
	}
770
 
770
 
Line 787... Line 787...
787
		}
787
		}
788
		printf ( "(Done)\n" );
788
		printf ( "(Done)\n" );
789
 
789
 
790
		printf ( "Removing file, %s, from Package\n", addfile.c_str() );
790
		printf ( "Removing file, %s, from Package\n", addfile.c_str() );
791
 
791
 
792
		if ( pBaseFile->RemoveFile ( addfile, t ) )
792
		if(pBaseFile->removeFile(addfile.ToString(), t))
793
		{
793
		{
794
			printf ( "File, %s, has been remove from package\n", addfile.c_str() );
794
			printf ( "File, %s, has been remove from package\n", addfile.c_str() );
795
			pBaseFile->WriteFile ( sfile );
795
			pBaseFile->WriteFile ( sfile );
796
			printf ( "File has been written to disk successfully\n" );
796
			printf ( "File has been written to disk successfully\n" );
797
		}
797
		}