File libzypp-skip-appdata-crap.patch of Package libzypp

Index: b/zypp/repo/susetags/Downloader.cc
===================================================================
--- a/zypp/repo/susetags/Downloader.cc
+++ b/zypp/repo/susetags/Downloader.cc
@@ -154,6 +154,13 @@ void Downloader::download( MediaSetAcces
         }
       }
     }
+    else if ( getenv("ZYPP_FETCH_APPDATA") == NULL &&
+              ( str::contains( it->first, "appdata" ) || str::contains( it->first, "app-icons" ) || str::contains( it->first, "appdata-icons" ) ) )
+    {
+      MIL << "skipping " << it->first << endl;
+      continue;
+    }
+
     MIL << "adding job " << it->first << endl;
     auto location = std::move( OnMediaLocation( repoInfo().path() + descr_dir + it->first, 1 )
                                  .setChecksum( it->second )
Index: b/zypp/repo/yum/Downloader.cc
===================================================================
--- a/zypp/repo/yum/Downloader.cc
+++ b/zypp/repo/yum/Downloader.cc
@@ -144,6 +144,12 @@ namespace yum
       if ( basetype == "filelists" && not env::ZYPP_REPOMD_WITH_FILELISTS() )
         return true;	// skip it
 
+      if ( getenv("ZYPP_FETCH_APPDATA") == NULL && ( basetype == "appdata" || basetype == "app-icons" || basetype == "appdata-icons" ))
+      {
+	MIL << "skipping " << loc_r.filename() << endl;
+	return true;
+      }
+
       // filter localized susedata
       if ( str::startsWith( basetype, "susedata." ) )
       {
openSUSE Build Service is sponsored by