- zebra_begin_trans(zh, 1);
- zebra_repository_update(zh, "m1.xml");
- zebra_repository_update(zh, "m2.xml");
- zebra_repository_update(zh, "m3.xml");
- zebra_end_trans(zh);
+ YAZ_CHECK(zebra_begin_trans(zh, 1) == ZEBRA_OK);
+ sprintf(path, "%.200s/m1.xml", tl_get_srcdir());
+ zebra_repository_update(zh, path);
+ sprintf(path, "%.200s/m2.xml", tl_get_srcdir());
+ zebra_repository_update(zh, path);
+ sprintf(path, "%.200s/m3.xml", tl_get_srcdir());
+ zebra_repository_update(zh, path);
+ YAZ_CHECK(zebra_end_trans(zh) == ZEBRA_OK);