From: Duncan Mac-Vicar P Date: Mon, 16 Jul 2007 11:13:28 +0000 (+0000) Subject: - keywords != authors. X-Git-Tag: BASE-SuSE-Linux-10_3-Branch~568 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4da3981476d171706714c432332cacf9a08ec3ee;p=platform%2Fupstream%2Flibzypp.git - keywords != authors. switched to use std::copy as one is set and the other list so swap can't be used --- diff --git a/zypp/parser/susetags/PackagesFileReader.cc b/zypp/parser/susetags/PackagesFileReader.cc index ec34064..a490f78 100644 --- a/zypp/parser/susetags/PackagesFileReader.cc +++ b/zypp/parser/susetags/PackagesFileReader.cc @@ -278,7 +278,9 @@ namespace zypp /** Consume +Kwd:. */ void consumeKwd( const MultiTagPtr & tag_r ) { - _data->authors.swap( tag_r->value ); + std::copy( tag_r->value.begin(), + tag_r->value.end(), + std::inserter(_data->keywords, _data->keywords.begin()) ); } /** Consume +Aut:. */