else
INFO(ctx, "[ %02u.%04u] %.*s", s, ms, (int)length, buffer);
- return length;
+ return 0;
}
static int __pakfire_build_setup_repo(struct pakfire* pakfire,
return r;
}
- return length;
+ return 0;
}
static int pakfire_build_process_pkgconfig_provides(
static int pakfire_build_add_perl_dep(struct pakfire_ctx* ctx, struct pakfire_package* pkg,
const enum pakfire_package_key key, const char* line, size_t length) {
- int r;
-
// Add the dependency
- r = pakfire_package_add_dep(pkg, key, "%.*s", (int)length, line);
- if (r < 0)
- return r;
-
- return length;
+ return pakfire_package_add_dep(pkg, key, "%.*s", (int)length, line);
}
static int pakfire_build_add_perl_provides(struct pakfire_ctx* ctx,
// Ignore if the string was presumed to be invalid (some other format)
case EINVAL:
DEBUG(ctx, "Ignoring invalid line %.*s\n", (int)length, line);
-
- // Consume the entire line
- return length;
+ return 0;
default:
return r;
}
}
- // Consume the entire line
- return length;
+ return 0;
}
static int pakfire_build_add_scriptlet_requires(struct pakfire_build* build,
// Call the callback
r = stream->callback(stream->ctx, stream->data, line, r);
- if (r)
+ if (r < 0)
return r;
memmove(stream->buffer, stream->buffer + length, stream->buffered - length);