]> git.ipfire.org Git - pakfire.git/commitdiff
package: Drop installing self-provides
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 10 May 2022 15:45:37 +0000 (15:45 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 10 May 2022 15:47:21 +0000 (15:47 +0000)
I have no idea what those do, and it seems to work without it.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/package.c

index 16084f596b422ad9c0da84666a68ef445fe73207..2ec931f53be0fca97eac3377c99da06a0b773ca3 100644 (file)
@@ -58,13 +58,6 @@ struct pakfire_package {
        char path[PATH_MAX];
 };
 
-static void pakfire_package_add_self_provides(struct pakfire* pakfire, struct pakfire_package* pkg, const char* name, const char* evr) {
-       char buffer[1024];
-       pakfire_string_format(buffer, "%s = %s", name, evr);
-
-       pakfire_package_add_provides(pkg, buffer);
-}
-
 struct pakfire_package* pakfire_package_create_from_solvable(struct pakfire* pakfire, Id id) {
        struct pakfire_package* pkg = calloc(1, sizeof(*pkg));
        if (!pkg)
@@ -113,9 +106,6 @@ PAKFIRE_EXPORT struct pakfire_package* pakfire_package_create(
        pakfire_package_set_evr(pkg, evr);
        pakfire_package_set_arch(pkg, arch);
 
-       // Add self-provides
-       pakfire_package_add_self_provides(pakfire, pkg, name, evr);
-
 ERROR:
        if (dummy)
                pakfire_repo_unref(dummy);