summaryrefslogtreecommitdiff
path: root/backends
AgeCommit message (Collapse)AuthorFilesLines
2021-01-11Fix all compiler warningsMatthias Klumpp8-52/+18
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-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-21aptcc: Build socket-activated debconf helper againMatthias Klumpp1-0/+31
This resolves #366
2020-10-21aptcc: Drop apt-inst, use apt-pkg pkg-config file for dependency detectionMatthias Klumpp1-39/+3
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-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-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-07-10dnf: Add vendor configuration for openSUSENeal Gompa1-0/+61
openSUSE now ships the DNF backend for PackageKit.
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-04-28dnf: Load all the repos and vars directoriesNeal Gompa2-4/+25
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-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-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.
2020-03-23Alpm: Updates-changed implementationCarson Black1-0/+31
2020-03-16Make pk_alpm_update_database a nullop without forceCarson Black1-0/+3
2020-03-16backends: Allow multiple backends to be built with MesonNeal Gompa1-3/+8
PackageKit has permitted building multiple backends with Autotools, and there's no reason to forbid this with Meson, especially as there are still multiple options in use by some Linux distributions.
2020-03-11error: PACKAGE_TARNAME/PACKAGE_VERSION undeclaredDominik Opyd1-2/+2
2020-03-11libalpm updateDominik Opyd1-1/+1
the latest stable version of libalpm
2020-03-11unknown configuration optionDominik Opyd1-3/+3
packagekit/backends/alpm/meson.build:3:0: ERROR: Tried to access unknown option "confdir".
2020-03-11forgotten commasDominik Opyd1-2/+2
packagekit/backends/alpm/meson.build:47:2: ERROR: Expecting rparen got string.
2020-03-11forgotten commaDominik Opyd1-1/+1
packagekit/backends/alpm/meson.build:35:4: ERROR: Expecting rbracket got string.
2020-03-11zypp: Ignore already installed package when installingJonathan Kang1-6/+1
Previously, when users are installing multiple packages at the same time using "pkcon install", if one/some of those packages is/are already installed, the whole installing process terminates, withouting installing those uninstalled packages. Fix that by ignoring those already installed pacakge and proceeding to install those which are not yet installed.
2020-03-11zypp: Fix broken meson.buildJonathan Kang1-2/+2
Use correct function call and add missing comma.
2020-03-03zypp: remove upgrade-system implementationJonathan Kang1-55/+0
In commit e1a6975e, updating is handled in update-packages whether you are using Tumbleweed or not. So remove upgrade-system implementation.
2020-03-03zypp: Merge updating function into update-packagesJonathan Kang1-9/+31
No matter whether you are using Tumbleweed or Leap, update-packages is the place where all the action happens.
2020-02-24alpm: Fix assertion failures for download start signalsFelix Yan1-0/+3
According to upstream doc [1], total being -1 is a signal for download initialized. We should avoid giving unnecessary assertion failures for every file download. [1] https://git.archlinux.org/pacman.git/tree/lib/libalpm/dload.c?id=e76ec94083235ddc5510ab57b7c2bc12a1d34e8a#n134
2020-02-24alpm: Fix config parsing for DisableDownloadTimeoutFelix Yan1-2/+11
Currently packagekit exits on startup when the option was specified: packagekitd[18705]: Failed to initialize alpm: using /etc/PackageKit/alpm.d/pacman.conf: /etc/PackageKit/alpm.d/pacman.conf:8/etc/pacman.conf:41unrecognised directive 'DisableDownloadTimeout' This change adds support for DisableDownloadTimeout and fixes the error.
2020-02-18slack: Port remaining tests to mesonEugen Wissner2-38/+111
2020-02-03slack: Fix tests subdir in mesonEugen Wissner2-3/+45
2020-01-23aptcc: Do not emit PK_ERROR_ENUM_GPG_FAILUREJulian Andres Klode1-3/+0
This prevents an apparently infinite loop due to automatic retrying. We cannot be sure whether we had a GPG error and/or other errors, so raising an error that causes automatic retrying is a bad idea. This will cause PK_ERROR_ENUM_CANNOT_FETCH_SOURCES to be emitted by the caller of the function.
2020-01-23aptcc: Only report errors if there are errorsJulian Andres Klode2-11/+13
Previously aptcc would report some warnings as errors. This way, it will drop any warning if there is no error. This matches the behavior of python-apt. As a bonus, we also log the entire message as a warning to the journal.
2020-01-10trivial: Always include <config.h>Richard Hughes1-3/+1
2020-01-10yum: Remove unmaintained backendRichard Hughes9-4978/+0
This is only used in RHEL 7 which is not going to get rebased to this brand new PackageKit branch.
2020-01-10ports: Remove unmaintained backendRichard Hughes8-1935/+0
Even macports doesn't carry it anymore.
2020-01-10urpmi: Remove unmaintained backendRichard Hughes15-2649/+0
Mageia 6 switched to DNF backend exclusively and Mageia 5 is EOL. ROSA also switched to rpm.org + libdnf.
2020-01-10pisi: Remove unmaintained backendRichard Hughes3-1021/+0
The pisi package manager is no longer used as Pardus is Debian-based now.
2020-01-10trivial: Remove the I_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE ↵Richard Hughes1-1/+0
requirement
2020-01-10Port to the meson build systemCorentin Noël47-684/+577
With much help from Martin Blanchard <tchaik@gmx.com> too, thanks to all. https://wiki.gnome.org/Initiatives/GnomeGoals/MesonPorting
2020-01-09aptcc: Set locale env vars properly according to frontend requestMatthias Klumpp2-27/+30
Previously the locale settings were not applied to some subprocesses spawned by APT or dpkg. This patch changes that and also simplifies & deduplicates the locale handling a bit.