assert(!err || *err == NULL);
- if (!package)
+ if (!package) {
+ g_set_error(err, CREATEREPO_C_ERROR, CRE_BADARG,
+ "No package object to dump specified");
return NULL;
+ }
// Dump IT!
assert(!err || *err == NULL);
- if (!package)
+ if (!package) {
+ g_set_error(err, CREATEREPO_C_ERROR, CRE_BADARG,
+ "No package object to dump specified");
return NULL;
+ }
// Dump IT!
assert(!err || *err == NULL);
- if (!package)
+ if (!package) {
+ g_set_error(err, CREATEREPO_C_ERROR, CRE_BADARG,
+ "No package object to dump specified");
return NULL;
+ }
// Dump IT!
assert(!err || *err == NULL);
- if (!package)
+ if (!package) {
+ g_set_error(err, CREATEREPO_C_ERROR, CRE_BADARG,
+ "No package object to dump specified");
return NULL;
-
+ }
// Dump IT!
assert(!err || *err == NULL);
- if (!repomd)
+ if (!repomd) {
+ g_set_error(err, CREATEREPO_C_ERROR, CRE_BADARG,
+ "No repomd object to dump specified");
return NULL;
+ }
// Dump IT!
assert(!err || *err == NULL);
- if (!rec)
+ if (!rec) {
+ g_set_error(err, CREATEREPO_C_ERROR, CRE_BADARG,
+ "No updateinfo object to dump specified");
return NULL;
+ }
// Dump IT!