INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR})
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
+SET(G_LOG_DOMAIN "C_CREATEREPOLIB")
-# Find necessare libraries
+# Find necessary libraries
find_package(BZip2 REQUIRED)
find_package(CURL REQUIRED)
EXCLUDE_PATTERNS = *_wrap.* \
cmd_parser.* \
- logging.h \
*_internal.h
# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
SET_TARGET_PROPERTIES(libcreaterepo_c PROPERTIES
OUTPUT_NAME "createrepo_c"
SOVERSION ${CR_MAJOR}
- VERSION "${VERSION}")
+ VERSION "${VERSION}"
+ COMPILE_DEFINITIONS "G_LOG_DOMAIN=\"${G_LOG_DOMAIN}\"")
ADD_EXECUTABLE(createrepo_c createrepo_c.c cmd_parser.c)
TARGET_LINK_LIBRARIES(createrepo_c
#include <zlib.h>
#include <bzlib.h>
#include <lzma.h>
-#include "logging.h"
#include "error.h"
#include "compression_wrapper.h"
#include "xml_file.h"
-#define G_LOG_DOMAIN ((gchar*) 0)
#define MAX_TASK_BUFFER_LEN 20
#include <assert.h>
#include "error.h"
#include "package.h"
-#include "logging.h"
#include "misc.h"
#include "load_metadata.h"
#include "locate_metadata.h"
#include <string.h>
#include <errno.h>
#include "error.h"
-#include "logging.h"
#include "misc.h"
#include "locate_metadata.h"
#include "repomd.h"
+++ /dev/null
-/* createrepo_c - Library of routines for manipulation with repodata
- * Copyright (C) 2012 Tomas Mlcoch
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
- * USA.
- */
-
-#ifndef __C_CREATEREPOLIB_LOGGING_H__
-#define __C_CREATEREPOLIB_LOGGING_H__
-
-#undef G_LOG_DOMAIN
-#define G_LOG_DOMAIN "C_CREATEREPOLIB"
-
-#endif /* __C_CREATEREPOLIB_LOGGING_H__ */
// - rozvijet architekturu na listy tak jak to dela mergedrepo
-#define G_LOG_DOMAIN ((gchar*) 0)
-
#define DEFAULT_OUTPUTDIR "merged_repo/"
#define DEFAULT_DB_COMPRESSION_TYPE CR_CW_BZ2_COMPRESSION
#define DEFAULT_GROUPFILE_COMPRESSION_TYPE CR_CW_GZ_COMPRESSION
#include <curl/curl.h>
#include <rpm/rpmlib.h>
#include "error.h"
-#include "logging.h"
#include "misc.h"
#define BUFFER_SIZE 4096
#include "xml_file.h"
#include "modifyrepo_shared.h"
-#define G_LOG_DOMAIN ((gchar*) 0)
-
typedef struct {
gboolean version;
#include <string.h>
#include <assert.h>
#include "error.h"
-#include "logging.h"
#include "misc.h"
#include "checksum.h"
#include "modifyrepo_shared.h"
#include <string.h>
#include "package.h"
-#include "logging.h"
#include "misc.h"
#define PACKAGE_CHUNK_SIZE 2048
#include <assert.h>
#include <rpm/rpmfi.h>
#include <stdlib.h>
-#include "logging.h"
#include "parsehdr.h"
#include "xml_dump.h"
#include "misc.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmmacro.h>
#include <rpm/rpmkeyring.h>
-#include "logging.h"
#include "error.h"
#include "parsehdr.h"
#include "misc.h"
#include <libxml/encoding.h>
#include <libxml/xmlwriter.h>
#include "error.h"
-#include "logging.h"
#include "misc.h"
#include "checksum.h"
#include "repomd.h"
#include <assert.h>
#include <string.h>
#include <stdlib.h>
-#include "logging.h"
#include "misc.h"
#include "sqlite.h"
#include "error.h"
#include <libxml/parser.h>
#include <string.h>
#include "error.h"
-#include "logging.h"
#include "misc.h"
#include "xml_dump.h"
#include "xml_dump_internal.h"
#include <libxml/encoding.h>
#include <libxml/xmlwriter.h>
#include "error.h"
-#include "logging.h"
#include "package.h"
#include "xml_dump.h"
#include "xml_dump_internal.h"
#include <libxml/xmlwriter.h>
#include <libxml/xmlsave.h>
#include "error.h"
-#include "logging.h"
#include "package.h"
#include "xml_dump.h"
#include "xml_dump_internal.h"
#include <libxml/encoding.h>
#include <libxml/xmlwriter.h>
#include "error.h"
-#include "logging.h"
#include "package.h"
#include "xml_dump.h"
#include "xml_dump_internal.h"
#include <libxml/xmlwriter.h>
#include <libxml/xmlsave.h>
#include "error.h"
-#include "logging.h"
#include "repomd.h"
#include "xml_dump.h"
#include "xml_dump_internal.h"
#include "xml_parser.h"
#include "error.h"
#include "package.h"
-#include "logging.h"
#include "misc.h"
#define ERR_DOMAIN CR_XML_PARSER_FIL_ERROR
#include "xml_parser.h"
#include "error.h"
#include "package.h"
-#include "logging.h"
#include "misc.h"
#define ERR_DOMAIN CR_XML_PARSER_OTH_ERROR
#include "xml_parser.h"
#include "error.h"
#include "package.h"
-#include "logging.h"
#include "misc.h"
#define ERR_DOMAIN CR_XML_PARSER_PRI_ERROR
#include "xml_parser.h"
#include "error.h"
#include "package.h"
-#include "logging.h"
#include "misc.h"
#define ERR_DOMAIN CR_XML_PARSER_REPOMD_ERROR