Imported Upstream version 17.25.4
[platform/upstream/libzypp.git] / zypp / sat / detail / PoolImpl.cc
index 6c0f7ce..0127cde 100644 (file)
@@ -39,7 +39,9 @@ extern "C"
 // Workaround libsolv project not providing a common include
 // directory. (the -devel package does, but the git repo doesn't).
 // #include <solv/repo_helix.h>
+// #include <solv/testcase.h>
 int repo_add_helix( ::Repo *repo, FILE *fp, int flags );
+int testcase_add_testtags(Repo *repo, FILE *fp, int flags);
 }
 
 using std::endl;
@@ -342,6 +344,15 @@ namespace zypp
         return 0;
       }
 
+      int PoolImpl::_addTesttags(CRepo *repo_r, FILE *file_r)
+      {
+        setDirty(__FUNCTION__, repo_r->name );
+        int ret = ::testcase_add_testtags( repo_r, file_r, 0 );
+        if ( ret == 0 )
+          _postRepoAdd( repo_r );
+        return 0;
+      }
+
       void PoolImpl::_postRepoAdd( CRepo * repo_r )
       {
         if ( ! isSystemRepo( repo_r ) )