make accesors for the local index files and signatures in order to get rid of parsing...
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Tue, 30 May 2006 14:55:48 +0000 (14:55 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Tue, 30 May 2006 14:55:48 +0000 (14:55 +0000)
zypp/source/susetags/SuseTagsImpl.cc
zypp/source/susetags/SuseTagsImpl.h

index 9d54a7c..2697433 100644 (file)
@@ -50,6 +50,26 @@ namespace zypp
       SuseTagsImpl::SuseTagsImpl()
       {}
 
+      const Pathname SuseTagsImpl::contentFile() const
+      {
+        return _cache_dir + "DATA/content";
+      }
+      
+      const Pathname SuseTagsImpl::contentFileSignature() const
+      {
+        return _cache_dir + "DATA/content.asc";
+      }
+      
+      const Pathname SuseTagsImpl::contentFileKey() const
+      {
+        return _cache_dir + "DATA/content.key";
+      }
+      
+      const Pathname SuseTagsImpl::mediaFile() const
+      {
+        return _cache_dir + "MEDIA/media.1/media";
+      }
+      
       void SuseTagsImpl::initCacheDir(const Pathname & cache_dir_r)
       {
         // refuse to use stupid paths as cache dir
index 3742d6e..3060ac4 100644 (file)
@@ -22,6 +22,9 @@
 #include "zypp/CheckSum.h"
 #include "zypp/source/susetags/SuseTagsProductImpl.h"
 #include "zypp/source/susetags/SuseTagsPackageImpl.h"
+#include "zypp/TmpPath.h"
+
+using namespace zypp::filesystem;
 
 ///////////////////////////////////////////////////////////////////
 namespace zypp
@@ -107,7 +110,12 @@ namespace zypp
          * \throw EXCEPTION on fail
         */
         virtual void factoryInit();
-
+        
+        const Pathname contentFile() const;
+        const Pathname contentFileKey() const;
+        const Pathname contentFileSignature() const;
+        const Pathname mediaFile() const;
+        
         void readContentFile();
 
        void provideProducts(Source_Ref source_r, ResStore& store);