]> git.ipfire.org Git - pakfire.git/commitdiff
request: Drop support for groups
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 20 May 2022 17:09:41 +0000 (17:09 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 20 May 2022 17:09:41 +0000 (17:09 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/request.c

index 87326c26f17964a36869a4cad3ad4be1bb008bb5..57576b7b357454df3cbe02d0ccc108e1d70d0b02 100644 (file)
@@ -346,7 +346,6 @@ static int pakfire_request_add_package(struct pakfire_request* request, int acti
 static int pakfire_request_add_job(struct pakfire_request* request, int action,
                const char* what, int extra_flags) {
        Pool* pool = pakfire_get_solv_pool(request->pakfire);
-       Id key = 0;
 
        // Make the pool ready
        pakfire_pool_internalize(request->pakfire);
@@ -372,18 +371,8 @@ static int pakfire_request_add_job(struct pakfire_request* request, int action,
        if (*what == '/')
                flags |= SELECTION_FILELIST;
 
-       // Is this a group?
-       else if (*what == '@') {
-               flags = SELECTION_MATCH_DEPSTR;
-               key = SOLVABLE_GROUP;
-               what++;
-       }
-
        // Select all packages
-       if (key)
-               selection_make_matchdeps(pool, &jobs, what, flags, key, 0);
-       else
-               selection_make(pool, &jobs, what, flags);
+       selection_make(pool, &jobs, what, flags);
 
        // Did we find anything?
        if (jobs.count == 0) {