summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2021-01-12trivial: Fix a few Meson warningsHEADmasterMatthias Klumpp2-2/+0
2021-01-11Fix all compiler warningsMatthias Klumpp6-12/+12
2020-01-20meson: Add missing header files to gnome.generate_gir()Rico Tzschichholz1-1/+7
This restores the original build of the GIR with automake.
2020-01-13trivial: Actually install pk-version.hRichard Hughes1-0/+2
2020-01-10trivial: Always include <config.h>Richard Hughes2-6/+2
2020-01-10trivial: Remove the I_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE ↵Richard Hughes2-5/+0
requirement
2020-01-10Port to the meson build systemCorentin Noël10-347/+357
With much help from Martin Blanchard <tchaik@gmx.com> too, thanks to all. https://wiki.gnome.org/Initiatives/GnomeGoals/MesonPorting
2020-01-10trivial: Downgrade another warning in daemon self testsRichard Hughes1-1/+1
2020-01-10trivial: Fix critical warning in daemon self testsRichard Hughes1-1/+2
2019-07-04packagekit-glib2: Use $XDG_RUNTIME_DIR/debconf-socket if it existsJulian Andres Klode1-0/+10
Reuse debconf-socket in user runtime dir if it exists, as long as we are not using debconf-kde or the current terminal, as socket-activation does not work for the former, and we cannot use the current terminal from the socket-activated helper...
2019-07-04packagekit-glib2: Export pk_client_create_helper_argv_envp()Julian Andres Klode2-5/+6
This allows us to build an external client helper binary that uses this function to build argv and evnp.
2019-07-04packagekit-glib2: Extract pk_client_helper_start_with_socket()Julian Andres Klode2-5/+52
Extract pk_client_helper_start_with_socket() out of the function pk_client_helper_start() so we can start a client helper for an existing socket. This will allow us to get a socket from systemd in a socket-activated service, for example.
2019-07-04packagekit-glib2: Add pk_client_helper_is_active()Julian Andres Klode2-0/+31
This function enables code to check whether a client helper has accepted connections. A connection is considered active if one of its sources has not been removed yet, even if it's just blocking waiting for data.
2019-07-04pk-client-helper: Do not dereference argument before checking itJulian Andres Klode1-2/+6
Stop dereferencing client_helper before validating it in public functions.
2018-12-04trivial: Add missing config.h includeKalev Lember1-0/+2
2018-12-01lib/python/packagekit/Makefile.am: Use the detected PYTHON versionJavier Jardón1-1/+1
This will fix compilation in system where only the "python3" executable exists
2018-11-25common: Handle quoted strings in /etc/os-releaseKalev Lember1-3/+12
This should fix /var/cache/PackageKit/"8.0"/ on RHEL 8.0 to not have quotes in it.
2018-09-21Never assert when an interactive TTY is not availableRichard Hughes1-2/+3
Also, fd==0 is unlikely, but valid. Do the right thing in finalize().
2018-08-29Remove some dead codeRobert Ancell1-14/+0
2018-05-21Fix issues with debconf helper not working:Robert Ancell1-223/+194
- Fix buffer overflow writing nul character on the end of debconf reads - Register IO callbacks on the thread main context - not the default context (broken in ac3b14be9e) - Always accept incoming socket connections to avoid busy loop - Fix loops from incorrect handling of various input error cases - Close helper stdin when socket closes - was causing debconf UI to remain open and unresponsive - Use standard IO priority to avoid busy loops - Reliably clean up socket file on finalize
2018-05-17Fix usage of FALSE when it should be NULLRobert Ancell1-2/+2
2018-05-15De-register callbacks on PkClientHelper finalize.Robert Ancell1-28/+55
These could otherwise trigger on a deleted object.
2018-03-03Fix g_object_ref() type cast warnings with glib 2.56Kalev Lember3-8/+8
In glib 2.56, g_object_ref() checks that we're assigning the return value to a variable of the same type we're passing in.
2018-02-19Rename "Software Sources" to "Software Repositories"Kalev Lember4-4/+4
This renames a few strings to match gnome-software terminology change in https://gitlab.gnome.org/GNOME/gnome-software/commit/3bbf72c079ba6f4b864b7cd223e0cc5592380e2a
2018-01-10Fix missing PK_STATUS_ENUM_RUN_HOOK in pk-enum.cDaniel Nicoletti1-0/+1
2018-01-10client: Fix an invalid read when cancelling races with FinishKalev Lember1-5/+1
Don't try to debug print state->tid in cancelled callback as state may have already been destroyed at that point. https://bugzilla.gnome.org/show_bug.cgi?id=789438
2017-10-25offline update: Save transaction role to the offline results fileKalev Lember4-0/+43
This lets gnome-software handle distro upgrade and regular update results differently.
2017-09-20docs: Update section descriptionRobert Ancell1-1/+1
2017-09-20docs: Add missing docstringsRobert Ancell4-8/+60
2017-09-20packagekit-glib2: Add getters for PkEulaRequiredRobert Ancell4-22/+80
2017-09-20docs: Reorder docs and add missing docstringsRobert Ancell16-68/+213
2017-09-20Remove function prototypes that don't have an implementationRobert Ancell16-16/+0
2017-09-19docs: Fix docstringsRobert Ancell1-8/+12
2017-09-19docs: Add more docstringsRobert Ancell22-54/+84
2017-09-19Fix gtk-doc errorsRobert Ancell46-444/+955
2017-09-04trivial: Fix unwanted space char in translationRichard Hughes1-1/+1
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=102529
2017-08-12pk-control-sync: add missing arguments to the commentXiang Fan1-0/+4
2017-08-01Add missing context pushes and popsDavid Hewitt1-0/+4
Noticed a push without a pop and vice versa.
2017-07-24trivial: Fix the translation of PK_ROLE_ENUM_REPO_ENABLERichard Hughes1-1/+1
It's not only used for just enabling, it's also used for disabling. Fixes: https://github.com/hughsie/PackageKit/issues/205
2017-06-01Add new status "Running hooks"Christian Hesse2-0/+5
2017-04-17pk-progress-bar: checks NULL strings inside pk_progress_bar_start ().Julio Faracco1-2/+4
This commit adds a conditional to check if the string of progress bar and text input are NULL. The comparison needs to be executed with two valid strings and not two NULL pointes. That's why the conditional has an AND operator. Both needs to be an empty string or a valid string, not a NULL pointer. This missing check is causing an error during the pkcon execution. See the command output: $ sudo pkcon repair FIXME: need to call pk_progress_bar_start() earlier![=========================] Finished [=========================] [=========================] Testing changes [=========================] Finished [=========================] After patching: $ sudo pkcon repair [=========================] Finished [=========================] [=========================] Testing changes [=========================] Finished [=========================] Signed-off-by: Julio Faracco <jfaracco@br.ibm.com>
2016-09-19Remove declaration of non-existent pk_task_{get,set}_interactive()Alan Jenkins1-3/+0
It's a property of pk_client only (there are no properties which exist on both).
2016-09-01Add a new REPO_ALREADY_SET error enum and use it in backendsKalev Lember2-0/+2
Instead of PK_ERROR_ENUM_REPO_NOT_AVAILABLE, return PK_ERROR_ENUM_REPO_ALREADY_SET when we're trying to set a value and it's already set the right way. This makes it possible to ignore the error in the UI code.
2016-08-10offline: Fix a leak in get_prepared_sack()Kalev Lember1-1/+1
2016-08-10Fix various g_variant_get ^a&s leaksKalev Lember1-0/+5
g_variant_get with ^a&s allocates a new array that needs to be freed, but not the individual elements.
2016-07-15Fix two small memory leaks when processing signals from the daemonRichard Hughes2-2/+2
2016-07-14Revert "task: Honour the only_trusted property when setting up transactions"Kalev Lember1-92/+26
This broke authentication when installing packages. https://bugzilla.redhat.com/show_bug.cgi?id=1356132 This reverts commit be6cbdf79562820355d07efd53ad2b59d349eed2.
2016-06-13Add a test for offline distro upgradesKalev Lember1-0/+106
2016-06-13Add PreparedUpgrade DBus propertyKalev Lember4-34/+103
This is going to be used in gnome-shell shutdown dialog to show details about system upgrades. https://bugzilla.gnome.org/show_bug.cgi?id=763611
2016-06-12Add an internal helper for reading NAME from /etc/os-releaseKalev Lember2-5/+29