#include <glib.h>
#include <stdlib.h>
#include <stdio.h>
+#include "createrepo/error.h"
#include "createrepo/package.h"
#include "createrepo/misc.h"
#include "createrepo/load_metadata.h"
metadata = cr_metadata_new(key, 0, NULL);
g_assert(metadata);
g_assert(metadata->ht);
- ret = cr_metadata_locate_and_load_xml(metadata, repopath);
- g_assert_cmpint(ret, ==, CR_LOAD_METADATA_OK);
+ ret = cr_metadata_locate_and_load_xml(metadata, repopath, NULL);
+ g_assert_cmpint(ret, ==, CRE_OK);
size = g_hash_table_size(metadata->ht);
g_assert_cmpuint(size, ==, repo_size);
for (i=0; i < repo_size; i++) {
metadata = cr_metadata_new(CR_HT_KEY_NAME, 0, NULL);
g_assert(metadata);
- ret = cr_metadata_locate_and_load_xml(metadata, REPO_PATH_01);
- g_assert_cmpint(ret, ==, CR_LOAD_METADATA_OK);
+ ret = cr_metadata_locate_and_load_xml(metadata, REPO_PATH_01, NULL);
+ g_assert_cmpint(ret, ==, CRE_OK);
size = g_hash_table_size(metadata->ht);
g_assert_cmpuint(size, ==, REPO_SIZE_01);
pkg = (cr_Package *) g_hash_table_lookup(metadata->ht, "super_kernel");
// Load package
cr_package_parser_init();
- pkg = cr_package_from_rpm(EMPTY_PKG, CR_CHECKSUM_SHA256, EMPTY_PKG, NULL, 5, NULL);
+ pkg = cr_package_from_rpm(EMPTY_PKG, CR_CHECKSUM_SHA256, EMPTY_PKG, NULL, 5, NULL, NULL);
g_assert(pkg);
cr_package_parser_cleanup();