// while we dont find the list terminator
while( ! boost::regex_match(element, element_what, boost::regex("^\\-([^[:space:]^\\.]+)(\\.([^[:space:]]+))?:$"), boost::match_extra))
{
- tag.values.insert(element);
+ tag.values.push_back(element);
XXX << element << std::endl;
getline(file, element);
//dumpRegexpResults(element_what);
#define ZYPP_PARSER_TAGFILE2_H
#include <iosfwd>
-#include <set>
#include <map>
#include <list>
{
std::string name;
std::string modifier;
- std::set<std::string> values;
+ std::list<std::string> values;
};
struct SingleTag
collectPkg( shared_ptr<source::susetags::SuseTagsPackageImpl>(new source::susetags::SuseTagsPackageImpl(_source)) );
}
- void collectDeps( const std::set<std::string> & depstr_r, CapSet & capset )
+ void collectDeps( const std::list<std::string> & depstr_r, CapSet & capset )
{
- for ( std::set<std::string>::const_iterator it = depstr_r.begin();
+ for ( std::list<std::string>::const_iterator it = depstr_r.begin();
it != depstr_r.end(); ++it )
{
capset.insert( CapFactory().parse( ResTraits<Package>::kind, *it ) );
}
else if ( mtag_r.name == "Key" )
{
- pkgImpl->_keywords = std::list<std::string>(mtag_r.values.begin(), mtag_r.values.end());
+ pkgImpl->_keywords = mtag_r.values;
}
else if ( mtag_r.name == "Aut" )
{
// MultiTag is a Set but author is a list
- pkgImpl->_authors = std::list<std::string>(mtag_r.values.begin(), mtag_r.values.end());
+ pkgImpl->_authors = mtag_r.values;
}
}
CapFactory _f;
Dependencies _deps;
- for (std::set<std::string>::const_iterator it = selImpl->_inspacks[LanguageCode()].begin(); it != selImpl->_inspacks[LanguageCode()].end(); it++)
+ for (std::list<std::string>::const_iterator it = selImpl->_inspacks[LanguageCode()].begin(); it != selImpl->_inspacks[LanguageCode()].end(); it++)
{
Capability _cap = _f.parse( ResTraits<Package>::kind, *it);
_deps[Dep::REQUIRES].insert(_cap);
}
- for (std::set<std::string>::const_iterator it = selImpl->_recommends.begin(); it != selImpl->_recommends.end(); it++)
+ for (std::list<std::string>::const_iterator it = selImpl->_recommends.begin(); it != selImpl->_recommends.end(); it++)
{
Capability _cap = _f.parse( ResTraits<Selection>::kind, *it );
_deps[Dep::RECOMMENDS].insert(_cap);
}
- for (std::set<std::string>::const_iterator it = selImpl->_requires.begin(); it != selImpl->_requires.end(); it++)
+ for (std::list<std::string>::const_iterator it = selImpl->_requires.begin(); it != selImpl->_requires.end(); it++)
{
Capability _cap = _f.parse( ResTraits<Selection>::kind, *it );
_deps[Dep::REQUIRES].insert(_cap);
}
- for (std::set<std::string>::const_iterator it = selImpl->_conflicts.begin(); it != selImpl->_conflicts.end(); it++)
+ for (std::list<std::string>::const_iterator it = selImpl->_conflicts.begin(); it != selImpl->_conflicts.end(); it++)
{
Capability _cap = _f.parse( ResTraits<Selection>::kind, *it );
_deps[Dep::CONFLICTS].insert(_cap);
std::string _category;
bool _visible;
- std::set<std::string> _suggests;
- std::set<std::string> _recommends;
- std::set<std::string> _requires;
- std::set<std::string> _conflicts;
- std::set<std::string> _supported_locales;
- std::map< LanguageCode, std::set<std::string> > _insnotify;
- std::map< LanguageCode, std::set<std::string> > _delnotify;
- std::map< LanguageCode, std::set<std::string> > _inspacks;
- std::map< LanguageCode, std::set<std::string> > _delpacks;
+ std::list<std::string> _suggests;
+ std::list<std::string> _recommends;
+ std::list<std::string> _requires;
+ std::list<std::string> _conflicts;
+ std::list<std::string> _supported_locales;
+ std::map< LanguageCode, std::list<std::string> > _insnotify;
+ std::map< LanguageCode, std::list<std::string> > _delnotify;
+ std::map< LanguageCode, std::list<std::string> > _inspacks;
+ std::map< LanguageCode, std::list<std::string> > _delpacks;
};
///////////////////////////////////////////////////////////////////