summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-01-12trivial: Fix a few Meson warningsHEADmasterMatthias Klumpp2-2/+0
2021-01-12Free scheduler array correctly againMatthias Klumpp1-2/+11
Accidentally broken in last commit.
2021-01-11Fix all compiler warningsMatthias Klumpp22-104/+71
2021-01-11aptcc: Auto-remove old kernels, unless configured otherwiseMatthias Klumpp1-0/+3
2020-12-02Revert "Revert "zypp: Clean up temporary files when PK quits""Jonathan Kang1-0/+2
packagekitd.service will be stopped on system shutdown and by manually doing so. Thus the main process will be killed eventually and we have to manually clean those tmporary libzypp files. This reverts commit d8dd484ddfcea4750495fa92dcd2f580149432e7. https://bugzilla.opensuse.org/show_bug.cgi?id=1169739
2020-11-19Increase the number of packages that can be processed in one transactionRichard Hughes1-1/+1
Ohh TeX Live, you taunt me. Fixes https://github.com/hughsie/PackageKit/issues/442
2020-11-10ci: Show more verbose logs on test failureMatthias Klumpp1-1/+1
2020-11-10trivial: Switch to focal in TravisMatthias Klumpp1-0/+1
2020-11-09Do not crash when calling pk_dbus_get_uid() before D-Bus is setupRichard Hughes1-0/+4
Fixes https://github.com/hughsie/PackageKit/issues/436
2020-11-02trivial: post release version bumpRichard Hughes2-7/+7
2020-11-02Release 1.2.2PACKAGEKIT_1_2_2Richard Hughes5-154/+578
2020-10-30Revert "zypp: Clean up temporary files when PK quits"Jonathan Kang1-2/+0
The previous commit was meant to workaround the fact that PackageKit doesn't quit normally on a timed exit. Since commit 8b621738 fixes that, this is no longer needed. This reverts commit 807f410e28074c8ad2b99682446bbb460fd54adf.
2020-10-28main: notify the service manager when it's beginning to shutdownJonathan Kang2-0/+8
This makes sure that the main process won't get SIGTERM on shutdown, for example timed exit after idling for a while. This fix the problem that libzypp fails to clean up some temporary files when packagekitd quits.
2020-10-21ci: debian: Fetch the correct source package dependenciesMatthias Klumpp1-1/+1
2020-10-21ci: Switch Debian tests to bullseyeMatthias Klumpp1-1/+10
We can use newer Meson this way, and more importantly also test against a more recet version of APT.
2020-10-21aptcc: Build socket-activated debconf helper againMatthias Klumpp3-1/+39
This resolves #366
2020-10-21aptcc: Drop apt-inst, use apt-pkg pkg-config file for dependency detectionMatthias Klumpp1-39/+3
2020-10-21Silence Meson feature warning by bumping minimum versionMatthias Klumpp1-1/+1
2020-10-13zypp: Don’t refresh repos again when actually updating packagesJonathan Kang1-9/+12
https://bugzilla.suse.com/show_bug.cgi?id=1173562
2020-09-25Information disclosure in InstallFiles, GetFilesLocal and GetDetailsLocal ↵Julian Andres Klode1-31/+17
(CVE-2020-16121) These functions revealed existence and content type of files, which allows a non-root user to check existence and content type of any file on the system, regardless of permission, as the checks are performed as root. A correct fix would move those checks into the client, and pass an fd to the daemon. Here we just hide which failure it is, which we would need to do anyway, but don't provide an improved version as that's out of scope for a security issue and requires changes the reverse dependencies using those functions. Bug-Ubuntu: https://bugs.launchpad.net/bugs/1888887
2020-09-25aptcc: Do not trust local debs (CVE-2020-16122)Julian Andres Klode1-0/+10
Debs do not have signatures on their own, so they are always untrusted. Bug-Ubuntu: https://bugs.launchpad.net/bugs/1882098
2020-09-21zypp: Erase tmp repo from pool after local installation (#409)Rinat Dobrokhotov1-0/+1
2020-09-21zypp: set PATH variableJonathan Kang1-0/+3
https://bugzilla.suse.com/show_bug.cgi?id=1175315
2020-09-07test: Install required helper filesNeal Gompa2-0/+6
During the conversion from Autotools to Meson, this part was accidentally lost, which makes the test backend not work quite right. This change installs the missing files for the test_spawn part of the test backend.
2020-09-07trivial: post release version bumpRichard Hughes2-7/+7
2020-09-07Release 1.2.1PACKAGEKIT_1_2_1Richard Hughes10-42/+33
2020-09-04trivial: Remove a long-obsolete fileRichard Hughes1-5/+0
2020-09-04Actually merge in the PolicyKit translationsRichard Hughes1-17/+6
Fixes https://github.com/hughsie/PackageKit/issues/428
2020-08-24Fix setting libexecdir for command-not-found helper.Elliott Sales de Andrade1-1/+1
2020-08-13zypp: Clean up temporary files when PK quitsJonathan Kang1-0/+2
libzypp creates some temporary files under /var/tmp/, somehow they are not cleaned automatically when zypp backend unloads. Do the cleanup work manually here. https://bugzilla.suse.com/show_bug.cgi?id=1169739
2020-08-11command-not-found: fix handling arguments with spacesFernando Herrera1-13/+16
Instead of joining the orignal arguments with spaces and executing with g_spawn_command_line_sync use g_spawn_sync with a new argv[] built from exec + arguments so we respect the original command line arguments
2020-07-10dnf: Add vendor configuration for openSUSENeal Gompa2-1/+62
openSUSE now ships the DNF backend for PackageKit.
2020-06-26pk-transaction-db: Use statements for queries with inputJuho Hämäläinen1-39/+123
Prevent SQL injection by using sqlite3 statements for SQL queries when the query is formatted with user provided input. Signed-off-by: Juho Hämäläinen <juho.hamalainen@jolla.com>
2020-06-15pkcon: exit with retval 5 if no packages needed be installedDominique Leuenberger1-0/+1
In case a user asks pkcon to install an already installed package, so far we returned with: Fatal error: The packages are already all installed (detailed string provided by the backend) and retval 7. Taking pkcon's manpage into account, retval 5 is more appropriate: RETURN VALUES 0 Success 5 Nothing useful was done. 7 The transaction failed, see the detailed error for more information.
2020-05-27alpm: synchronise syncdbs on update (#400)jan Pontaoski4-1/+37
Updating without synchronising databases is like pacman -Syu without the pacman -Sy: - It's normally not possible - That leaves the system in an inconsistent state
2020-05-26zypp: Ensure ResPool is built before is_tumbleweed()Jonathan Kang1-8/+4
Previously, in offline updates Tumbleweed is not identified as Tumbleweed so that updates often fail. Fix that by building ResPool before the condition check.
2020-05-06alpm: pass correct type to pk_alpm_transaction_initialize()Christian Hesse1-1/+1
This is `const gchar*`, so pass NULL.
2020-05-06alpm: fix paths for configuration filesChristian Hesse1-3/+3
2020-05-04trivial: post release version bumpRichard Hughes2-8/+8
2020-05-04Release 1.2.0PACKAGEKIT_1_2_0Richard Hughes76-67232/+48214
2020-04-30Revert "Shutdown the daemon on idle by default"Michael Catanzaro1-2/+0
This reverts commit 0c84d71509e851db20445c747529bd7d3724f081. This broke the end session dialog in GNOME Shell. I thought I had that fixed by changing GNOME Shell to autostart PackageKit when it is not already running: https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1104 But turns out, there are more problems. The update fails if the user has used dnf since PackageKit last quit, a scenario I did not test. It also results in GNOME Software getting confused about what software is installed and what software is not. The issues are discussed here: https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1227#note_784327 It's still desirable to shut down automatically, but it requires more planning. And shutting down GNOME Software itself is frankly more important, since it uses a lot more RAM than packagekitd.
2020-04-28dnf: Load all the repos and vars directoriesNeal Gompa3-5/+26
Historically, the backend has internally determined its setup with static values. However, we generally want PackageKit to load all repositories defined in all repository directories that DNF normally searches, since it is not guaranteed to be in /etc/yum.repos.d and DNF supports multiple repository configuration paths. We also need the vars to be loaded so that repository definitions that rely on more than the built-in vars will work. This bumps our dependency for libdnf to 0.43.1, as we're using APIs introduced in this release. This required bumping the CI environment to Fedora 31.
2020-04-15meson: Add _DEFAULT_SOURCE to ensure "default" functions are availableNeal Gompa1-0/+3
Currently, PackageKit builds spew implicit function declaration warnings for usage of realpath(3), which is gated by a _DEFAULT_SOURCE define. Since we expect it to be usable, let's add the definition so it is.
2020-04-12alpm: respect ignored packages on update (#390)jan Pontaoski1-5/+23
2020-04-07aptcc: Use pk_backend_convert_uri on proxy settingsDavid Hewitt1-4/+8
2020-04-07aptcc: Add libutil to linker argsDavid Hewitt1-0/+3
2020-03-29Merge pull request #389 from Appadeia/issues/70Appadeia1-28/+41
alpm: improve dlcb handling
2020-03-28alpm: improve dlcb handlingCarson Black1-28/+41
2020-03-26alpm: handle blank target name for progress cbCarson Black1-5/+28
When the target name is blank, the callback is generally for the transaction in general and not for an unknown item. This handles all instances where libalpm currently emits a progress callback with a blank name.
2020-03-24alpm: use separate alpm_handle_t for updatesCarson Black4-10/+55
This prevents updating the system syncdbs without updating packages, which often leads to undesirable behaviour on most alpm-based distros.