parse more attributes
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Tue, 31 Jan 2006 12:33:31 +0000 (12:33 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Tue, 31 Jan 2006 12:33:31 +0000 (12:33 +0000)
zypp/source/susetags/PackagesParser.cc
zypp/source/susetags/SuseTagsPackageImpl.cc
zypp/source/susetags/SuseTagsPackageImpl.h

index c62b92b..9befdb4 100644 (file)
@@ -86,6 +86,14 @@ namespace zypp
           {
             pkgImpl->_group = stag_r.value;
           }
+          if ( stag_r.name == "Lic" )
+          {
+            pkgImpl->_license = stag_r.value;
+          }
+          if ( stag_r.name == "Tim" )
+          {
+            pkgImpl->_buildtime = Date(str::strtonum<time_t>(stag_r.value));
+          }
           if ( stag_r.name == "Siz" )
           {
             std::vector<std::string> words;
@@ -123,6 +131,10 @@ namespace zypp
             {
               collectDeps( mtag_r.values, nvrad[Dep::OBSOLETES] );
             }
+          else if ( mtag_r.name == "Key" )
+            {
+               pkgImpl->_keywords = std::list<std::string>(mtag_r.values.begin(), mtag_r.values.end());
+            }
           else if ( mtag_r.name == "Aut" )
             {
               // MultiTag is a Set but author is a list
index 037ca78..4ab7adf 100644 (file)
@@ -45,7 +45,7 @@ namespace zypp
       { return std::string(); }
 
       Date SuseTagsPackageImpl::installtime() const
-      { return Date(); }
+      { return _buildtime; }
 
       std::string SuseTagsPackageImpl::distribution() const
       { return std::string(); }
@@ -54,7 +54,7 @@ namespace zypp
       { return Vendor(); }
 
       Label SuseTagsPackageImpl::license() const
-      { return Label(); }
+      { return _license; }
 
       std::string SuseTagsPackageImpl::packager() const
       { return std::string(); }
index 9f365a2..c8ecccd 100644 (file)
@@ -86,11 +86,13 @@ namespace zypp
 
         virtual License licenseToConfirm() const PURE_VIRTUAL;
 
-        License _license;
         PackageGroup _group;
         std::list<std::string> _authors;
+        std::list<std::string> _keywords;
         ByteCount _sourcesize;
         ByteCount _archivesize;
+        Label _license;
+        Date _buildtime;
         //=Tim: 1111489970
         // what is this property
 
@@ -100,10 +102,7 @@ namespace zypp
 =Src: 3ddiag 0.724 3 src
 =Tim: 1111489970
 =Loc: 1 3ddiag-0.724-3.i586.rpm
-=Siz: 28015 46735
-+Aut:
-Stefan Dirsch <sndirsch@suse.de>
--Aut:
+
 */
 
       };