- if(n=="@src")
- {
- IO::print("%s: Note: Use source_tarball instead of tarball \"@src\"\n", get_source());
- load_sub(*obj.source_tarball);
- }
- else
- {
- Component trbl(obj, Component::TARBALL, n);
- load_sub(trbl);
- }
-}
-
-void SourcePackage::Loader::tar_file(const string &f)
-{
- IO::print("%s: Note: tar_file is deprecated\n", get_source());
- for(ComponentList::iterator i=obj.components.begin(); i!=obj.components.end(); ++i)
- if(i->get_type()==Component::TARBALL && i->get_name()=="@src")
- const_cast<Component::SourceList &>(i->get_sources()).push_back((obj.source_dir/f).str());