Imported Upstream version 17.22.1
[platform/upstream/libzypp.git] / zypp / repo / yum / Downloader.cc
index 436a57c..f6f3642 100644 (file)
@@ -105,7 +105,7 @@ namespace yum
        return true;    // skip sqlitedb
 
       bool zchk { str::endsWith( typestr_r, "_zck" ) };
-#ifdef LIBSOLVEXT_FEATURE_ZSTD_COMPRESSION
+#if ENABLE_ZCHUNK_COMPRESSION && defined(LIBSOLVEXT_FEATURE_ZCHUNK_COMPRESSION)
       const std::string & basetype { zchk ? typestr_r.substr( 0, typestr_r.size()-4 ) : typestr_r };
 #else
       if ( zchk )