Skip to content

Commit

Permalink
Define LRO_SUPPORTS_CACHEDIR only with zchunk (RhBug:1726141)
Browse files Browse the repository at this point in the history
LRO_CACHEDIR is used to define if the repos could be downloaded with
zchunk. LRO_SUPPORTS_CACHEDIR was used to determine if the librepo is
ready to zchunk.

It is a build option therefore it requires rebuild of libdnf.

https://bugzilla.redhat.com/show_bug.cgi?id=1726141
  • Loading branch information
j-mracek authored and Conan-Kudo committed Jul 4, 2019
1 parent 614d787 commit 1dea17f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions librepo/handle.h
Expand Up @@ -37,9 +37,11 @@ G_BEGIN_DECLS
*/
typedef struct _LrHandle LrHandle;

#ifdef WITH_ZCHUNK
/** Define LRO_SUPPORTS_CACHEDIR so clients can check for this feature at build
* time */
#define LRO_SUPPORTS_CACHEDIR
#endif /* WITH_ZCHUNK */

/** LRO_FASTESTMIRRORMAXAGE default value */
#define LRO_FASTESTMIRRORMAXAGE_DEFAULT 2592000L // 30 days
Expand Down

0 comments on commit 1dea17f

Please sign in to comment.