files.push_back(i->second);
const Toolchain &toolchain = builder.get_toolchain();
- string archive_name = package.get_name()+"-"+package.get_version()+"-source";
+ string archive_name = package.get_name();
+ if(!package.get_version().empty())
+ archive_name += "-"+package.get_version();
+ archive_name += "-source";
Target *result = toolchain.get_tool("TAR").create_target(files, archive_name);
build_graph.get_target("archives")->add_dependency(*result);
}