// get pkgType
IManagedBuildInfo info = ManagedBuildManager.getBuildInfo( project ) ;
IConfiguration defaultConfig = info.getDefaultConfiguration();
- String targetID = PlatformConfigurationManager.getBuildTargetName( defaultConfig );
- String toolchainID = SmartBuildInterface.getInstance().getToolchainIDFromTargetID(targetID);
- if ( toolchainID.contains(".obs") ) {
+ String toolchainType = "";
+ try {
+ SmartBuildInterface sbi = SmartBuildInterface.getInstance();
+ String targetID = PlatformConfigurationManager.getBuildTargetName( defaultConfig );
+ toolchainType = sbi.getToolchainTypeFromToolchainID( sbi.getToolchainIDFromTargetID(targetID) );
+ } catch (SBIException e1) {
+ }
+
+ if ( toolchainType.contains("tizen.obs") ) {
pkgType = "RPM";
} else {
pkgType = "DEB";