- keywords != authors.
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Mon, 16 Jul 2007 11:13:28 +0000 (11:13 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Mon, 16 Jul 2007 11:13:28 +0000 (11:13 +0000)
  switched to use std::copy as one is set and
  the other list so swap can't be used

zypp/parser/susetags/PackagesFileReader.cc

index ec34064..a490f78 100644 (file)
@@ -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:. */