8000 hif: Initial comps group support. by kkofler · Pull Request #49 · PackageKit/PackageKit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

hif: Initial comps group support. #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

hif: Initial comps group support. #49

wants to merge 2 commits into from

Conversation

kkofler
Copy link
Collaborator
@kkofler kkofler commented Mar 14, 2015

This is a squashed version of @heliocastro's patch set that adds comps support to the hif backend:

Initial support for comps XML parsing. Enable the hif backend to search categories and do a simple mapping of comps categories/groups to PackageKit's static groups.

TODO: support for PackageKit dynamic categories.

Supersedes pull request #20.

commit d52967c
Author: Helio Chissini de Castro <helio@kde.org>
Date:   Wed Feb 18 12:59:15 2015 -0200

    - Fix proper return call.

commit 2804bee
Author: Helio Chissini de Castro <helio@kde.org>
Date:   Mon Jan 12 18:52:46 2015 -0200

    - Identation fixes

    Signed-off-by: Helio Chissini de Castro <helio@kde.org>

commit 9c1e7cb
Author: Helio Chissini de Castro <helio@kde.org>
Date:   Mon Jan 12 18:43:04 2015 -0200

    - Return directly the array

    Signed-off-by: Helio Chissini de Castro <helio@kde.org>

commit bfae846
Author: Helio Chissini de Castro <helio@kde.org>
Date:   Mon Jan 12 17:23:20 2015 -0200

    - Fix void return. Now it addresses failt or not on parsing.
    - More identation fixes

    Signed-off-by: Helio Chissini de Castro <helio@kde.org>

commit ee0d1d8
Author: Helio Chissini de Castro <helio@kde.org>
Date:   Thu Dec 11 11:07:29 2014 -0200

    - Use pk_package_id_build instead of older build method based on
      template sample
    - More identation fixing

    Signed-off-by: Helio Chissini de Castro helio@kde.org

commit 4ad973b
Author: Helio Chissini de Castro <helio@kde.org>
Date:   Tue Dec 9 16:41:12 2014 -0200

    - Move static for structure PkCompsData
    - Use user_data on GMarkup parser functions
    - Fix more identation from original code

    Signed-off-by: Helio Chissini de Castro helio@kde.org

commit 3adb3d3
Author: Helio Chissini de Castro <helio@kde.org>
Date:   Tue Dec 2 18:43:41 2014 -0200

    - Fixed identation issues as reported

    Signed-off-by: Helio Chissini de Castro <helio@kde.org>

commit 30d19e4
Author: Helio Chissini de Castro <helio@kde.org>
Date:   Tue Dec 2 17:49:27 2014 -0200

    - Initial support to comps xml parsing. Enable hif backend to search
      categories and do a simple category mapping.
    TODO:
    - Add dynamic categories
    - Replace package query function to a proper libhif function

    Signed-off-by: Helio Chissini de Castro <helio@kde.org>
g_ptr_array_add (comps_data->groups, g_strdup(text));
}
if (comps_data->category_state == COMPS_STATE_GROUP_DESCRIPTION) {
g_debug ("Description: %s\n", text);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No newline for g_debug required.

* no \n needed after g_debug
* break 2 too long lines after &&
* change 4 occurrences of == FALSE to !
@kkofler
Copy link
Collaborator Author
kkofler commented Mar 16, 2015

Fixed all of the above and 2 more occurrences of == FALSE (for a total of 4).

@kkofler
Copy link
8000
Collaborator Author
kkofler commented Mar 29, 2015

Ping? I addressed all your comments, can this be merged now?

@hughsie
Copy link
Collaborator
hughsie commented Mar 8, 2019

This needs rebasing and further work. Please reopen if you still want to do this work.

@hughsie hughsie closed this Mar 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0