Richard Hughes | 17 Jul 17:15 2014
Picon

PackageKit 0.9.4 released!

Version 0.9.4
~~~~~~~~~~~~~
Released: 2014-07-17

Backends:
 - hif: Fix up a signature mismatch with a libhif signal handler (Kalev Lember)
 - hif: Include both available and installed packages in NEWEST filter
(Kalev Lember)
 - hif: Use new hawkey API for getting advisory details (Radek Holy)

Bugfixes:
 - Automatically switch to hif backend when the config file says
hawkey (Kalev Lember)
 - Plug a small leak in the gstreamer-plugin (Kalev Lember)

Tarballs available here: http://www.packagekit.org/releases/

Richard.
Michal Minář | 7 Jul 16:36 2014
Picon

package reinstallation


Hello,

in OpenLMI project we build a software provider on top of PackageKit
client library for managing software. It's going on nicely. But recently
we've stumbled upon a problem of package reinstallation. I don't see a
way how to reinstall or downgrade a package through PackageKit without
reinstalling its dependencies. Which is quite unfortunate because it is
a required feature for us. Maybe I am missing something. If so, I'd
appreciate your kind advice.

If the PackageKit really doesn't support it, may I know if there is a
plan for its addition? I'm willing to add the support myself unless it
violates some policy of PackageKit. Because I'd like to avoid any
fruitless work caused by a rejection by upstream. Therefor I welcome any
recommendations concerning its dbus and backend API extensions or
anything else before I start hacking it.

Kind regards,
Michal Minar
Richard Hughes | 23 Jun 12:11 2014
Picon

PackageKit 0.9.3 released!

Version 0.9.3
~~~~~~~~~~~~~
Released: 2014-06-23

Backends:
 - aptcc: Use Python3 for g-d-upgrade helper (Matthias Klumpp)
 - hawkey: Port to libhif and rename the backend to "Hif" (Richard Hughes)
 - hif: Adapt to hif_package_set_action() API change (Richard Hughes)
 - hif: Allow untrused packages to be installed again (Richard Hughes)
 - hif: Fix compile warning for new libhif versions (Richard Hughes)
 - hif: Reimplement multiple kernel package installation (Kalev Lember)
 - hif: Rely on libhif doing the rpmdb watching (Richard Hughes)
 - hif: Set the context parameters before setting it up (Richard Hughes)
 - hif: Use hif_context_get_install_root() (Richard Hughes)
 - hif: Use hif_context_get_native_arches() (Richard Hughes)
 - hif: Use hif_transaction_download() (Richard Hughes)
 - hif: Use the new hif_goal_get_packages() API from libhif (Richard Hughes)
 - zypp: Don't prompt to install already installed packages (Scott Reeves)

Bugfixes:
 - Add PK_ROLE_ENUM_GET_OLD_TRANSACTIONS to get-roles response (Daniel
Nicoletti)
 - Automatically fix permissions of transactions.db (Matthias Klumpp)
 - Fix crash when a plugin is using the backend in it's initialization
stage (Matthias Klumpp)
 - Make the polkit policy not be desktop-centric (Stef Walter)
 - Simplify prepared updates file creation (Kalev Lember)
 - Update group list in the documenation (Eugene Wissner)

Tarballs available here: http://www.packagekit.org/releases/
(Continue reading)

Daniel Nicoletti | 7 May 21:40 2014
Picon

get-roles and get-old-transactions

hi,
I've fixed get-roles to always return get-old-transactions
since it's not backend specific, can I commit?

diff --git a/src/pk-backend.c b/src/pk-backend.c
index e839e1c..23d19fd 100644
--- a/src/pk-backend.c
+++ b/src/pk-backend.c
 <at>  <at>  -322,7 +322,9  <at>  <at>  pk_backend_get_roles (PkBackend *backend)

        /* not compulsory, but use it if we've got it */
        if (backend->priv->desc->get_roles != NULL) {
-               backend->priv->roles = backend->priv->desc->get_roles (backend);
+               roles = backend->priv->desc->get_roles (backend);
+               pk_bitfield_add (roles, PK_ROLE_ENUM_GET_OLD_TRANSACTIONS);
+               backend->priv->roles = roles;
                goto out;
        }

 <at>  <at>  -388,6 +390,7  <at>  <at>  pk_backend_get_roles (PkBackend *backend)
                pk_bitfield_add (roles, PK_ROLE_ENUM_GET_CATEGORIES);
        if (desc->repair_system != NULL)
                pk_bitfield_add (roles, PK_ROLE_ENUM_REPAIR_SYSTEM);
+       pk_bitfield_add (roles, PK_ROLE_ENUM_GET_OLD_TRANSACTIONS);
        backend->priv->roles = roles;

        backend->priv->backend_roles_set = TRUE;

--

-- 
Daniel Nicoletti
(Continue reading)

Colin Walters | 6 May 15:20 2014

thinking about moving forward with libhif

[ For background context for everyone else - Richard split out "libhif" recently into https://github.com/hughsie/libhif/ from PackageKit, so that rpm-ostree could also consume it ]


One thing I was thinking about recently is using libhif to do depsolve + downloads, and then just implement installation myself.  This would be basically how PackageKit is using it now.  

Would that make sense?

I also sent a pull request: https://github.com/hughsie/libhif/pull/2
<div>
<p>[ For background context for everyone else - Richard split out "libhif" recently into <a href="https://github.com/hughsie/libhif/">https://github.com/hughsie/libhif/</a> from PackageKit, so that rpm-ostree could also consume it ]</p>
<div><br></div>
<div>One thing I was thinking about recently is using libhif to do depsolve + downloads, and then just implement installation myself. &nbsp;This would be basically how PackageKit is using it now. &nbsp;</div>
<div><br></div>
<div>Would that make sense?</div>
<div><br></div>
<div>I also sent a pull request: <a href="https://github.com/hughsie/libhif/pull/2">https://github.com/hughsie/libhif/pull/2</a>
</div>
</div>
Richard Hughes | 29 Apr 14:41 2014
Picon

PackageKit-Qt 0.9.2 released!

Version 0.9.2
~~~~~~~~~~~~~
Released: 2013-04-29

Notes:
 - Update to new PK API 0.9 (Daniel Nicoletti)
 - Applied a series of patches to port to Qt5 (Martin Grimme)

New Features:
 - Add GetDetailsLocal, GetFilesLocal and RepoRemove (Daniel Nicoletti)
 - Make use of DBus Properties changed to make less blocking calls
(Daniel Nicoletti)

Bugfixes:
 - Allow for Details to be empty constructed (Daniel Nicoletti)
 - Cleaned include directive (Martin Grimme)
 - Finish the API changes to get rid of blocking calls (Daniel Nicoletti)
 - Fix CMake var names for both Qt versions (Daniel Nicoletti)
 - Fix libdir path (Daniel Nicoletti)
 - Fix reply signature for Transaction methods (Daniel Nicoletti)
 - Improve object handlying (Daniel Nicoletti)
 - I think the API level should be hidden from libname (Daniel Nicoletti)
 - Keep only one transaction flags, which is unlikely to change
(Daniel Nicoletti)
 - PackageKit doesn't has a changed signal anymore (Daniel Nicoletti)
 - Properly delete private data on daemon as DaemonPrivate is not a
QObject (Daniel Nicoletti)
 - Properly handle new Details signal (Daniel Nicoletti)
 - Properly init some Daemon values (Daniel Nicoletti)
 - Queue signals so that all transaction properties are available when
needed (Daniel Nicoletti)
 - Remove debug info (Daniel Nicoletti)
 - Update Roles enum, remove Provides enum, and fix some docs typos
(Daniel Nicoletti)

Tarballs available here: http://www.packagekit.org/releases/

Richard
Richard Hughes | 29 Apr 14:12 2014
Picon

PackageKit 0.9.2 released!

Version 0.9.2
~~~~~~~~~~~~~
Released: 2014-04-29

Backends:
 - aptcc: Added support to remove repository and it's packages (Daniel
Nicoletti)
 - aptcc: Add installed prefix on package id data field (Daniel Nicoletti)
 - aptcc: Add support for APPLICATIONS filter (Daniel Nicoletti)
 - aptcc: Add support for PK_FILTER_ENUM_DOWNLOADED (Daniel Nicoletti)
 - aptcc: Disable the PK_FILTER_ENUM_COLLECTIONS support (Richard Hughes)
 - aptcc: Fix package name dependecy (Daniel Nicoletti)
 - aptcc: If repo name is null and package is installed don't leave an
ending : at the end (Daniel Nicoletti)
 - aptcc: Improve repo id and description (Daniel Nicoletti)
 - aptcc: Initial commit to support RepoRemove totally broken (Daniel Nicoletti)
 - aptcc: Make sure get_roles returns REPO_REMOVE (Daniel Nicoletti)
 - aptcc: Properly send the package summary and license when getting
details (Daniel Nicoletti)
 - aptcc: Remove _config and _system repeated initialization to the
backend init            this was causing an incremental sloweness to
each new transaction (Daniel Nicoletti)
 - aptcc: Update default changelog URL (Matthias Klumpp)
 - aptcc: use a more appropriate enum from broken deps (Daniel Nicoletti)
 - katja: Add getters for Pkgtools members (Eugene Wissner)
 - katja: add katja-utils with help functions (Eugene Wissner)
 - katja: Add PkBackendKatjaJobData structure (Eugene Wissner)
 - katja: Don't try to install obsolete packages (Eugene Wissner)
 - katja: Exclude duplicates from search results (Eugene Wissner)
 - katja: Exclude obsolete from the search results (Eugene Wissner)
 - katja: fix wrong save of patch metadata (Eugene Wissner)
 - katja: Make Pkgtools to Interface (Eugene Wissner)
 - katja: Pass blacklist to the constructor (Eugene Wissner)
 - katja: Pass job pointer to class methods (Eugene Wissner)
 - katja: Recognize obsolete packages (Eugene Wissner)
 - katja: remove obsolete packages on update-packages (Eugene Wissner)
 - hawkey: Fix hif_find_pkg_from_name() to return the correct package
(Richard Hughes)
 - hawkey: Store a helper array of packages rpm wants to obsolete
(Richard Hughes)
 - hawkey: Store the status in the package private area (Richard Hughes)

New Features:
 - Show the full package name and version in the systemd-updates logs
(Richard Hughes)

Bugfixes:
 - Don't crash when polkit_authority_get_sync() fails (Richard Hughes)
 - Link gstreamer plugin against 1.0 as well (Dimitri John Ledkov)
 - Only search for packages when shell is interactive (Dan Nicholson)
 - Quote the arguments passed to pk-command-not-found (Dan Nicholson)
 - Use local variables in the shell cnf handler (Dan Nicholson)
 - Fix get-roles and remove trailing semicolon on repo-set-data
(Daniel Nicoletti)
 - Reduce logging verbosity in systemd-updates (Richard Hughes)

Tarballs available here: http://www.packagekit.org/releases/

Richard
Daniel Nicoletti | 31 Mar 20:14 2014
Picon

incremental slowness

Hi,

I've just added DOWNLOADED filter to aptcc,
it increases the transaction time by around 200ms,
however I noticed one odd behavior which
I don't know if it's aptcc related or packagekit,
I do:
time pkcon get-updates
and each time I repeat it I get more 200ms
that until I close PK and start it again,
could you please test and see if repeated
queries starts to get slower?

Best,
--

-- 
Daniel Nicoletti

KDE Developer - http://dantti.wordpress.com
Daniel Nicoletti | 27 Mar 23:45 2014
Picon

PK 0.9

Hi,

just would like to say that RepoRemove has an
autoremove bool, but one can't autoremove
autoremoved packages (the one in Remove())

Can't we add auto_remove and allow_deps as
as transaction flags (removing them from Remove()),
and rename RepoRemove autoremove to remove_packages?

Best,

--

-- 
Daniel Nicoletti

KDE Developer - http://dantti.wordpress.com
Richard Hughes | 24 Mar 12:00 2014
Picon

PackageKit 0.9.1 released!

Version 0.9.1
~~~~~~~~~~~~~
Released: 2014-03-24

Notes:
 - slapt-get backend replaced with the Katja backend (Eugene Wissner)
 - Bump the soname after the branch and deprecation removals (Richard Hughes)

Libraries:
 - Add pk_package_sack_find_by_id_name_arch() (Richard Hughes)
 - Support an old daemon for PkDetails and new library versions (Richard Hughes)

Backends:
 - alpm: Adapt to the WhatProvides API change (Richard Hughes)
 - apt: Adapt to the WhatProvides API change (Richard Hughes)
 - aptcc: Adapt to the WhatProvides API change (Richard Hughes)
 - aptcc: Change some changelog formatting which can confuse markdown
parsers (Matthias Klumpp)
 - aptcc: Fix Debian changelog url generation (Matthias Klumpp)
 - aptcc: Fix Ubuntu changelog loading as well (Matthias Klumpp)
 - aptcc: If the aptcc backend fails to spawn gdebi std_out and
std_err is invalid (Daniel Nicoletti)
 - aptcc: Make changelog-loading future-proof on Debian/Tanglu (Matthias Klumpp)
 - aptcc: Update to new pk_backend_job_details and
pk_backend_spawn_new APIs (Daniel Nicoletti)
 - aptcc: Update to the new PK backend API (Daniel Nicoletti)
 - dummy: Adapt to the WhatProvides API change (Richard Hughes)
 - entropy: Adapt to the WhatProvides API change (Richard Hughes)
 - entropy: Add Entropy Resources Lock support (Fabio Erculiani)
 - entropy: Add support for parallel Entropy (Fabio Erculiani)
 - entropy: Allow lazy load of all the heavy object instances (Fabio Erculiani)
 - entropy: Drop compatibility with old entropy releases (Fabio Erculiani)
 - entropy: Drop support for PackageFileUpdates interface, removed
upstream (Fabio Erculiani)
 - entropy: Enable backend parallelization support (Fabio Erculiani)
 - entropy: PackageKitEntropyClient.output API update (Fabio Erculiani)
 - hawkey: Adapt to the WhatProvides API change (Richard Hughes)
 - hawkey: Add support for the 'source' filter for queries (Richard Hughes)
 - hawkey: Allow getting the .repo filename from the HifSource (Richard Hughes)
 - hawkey: Allow packages to change architecture when updating (Richard Hughes)
 - hawkey: Always change repo data in a thread (Richard Hughes)
 - hawkey: Automatically repair the system if the transaction fails
(Richard Hughes)
 - hawkey: Do not fail when update details are no longer available
(Richard Hughes)
 - hawkey: Do not re-create the sack if the media repo was verified
less than 1s ago (Richard Hughes)
 - hawkey: Do not replace all kernel packages with a new update (Richard Hughes)
 - hawkey: Do not return available packages that are already installed
(Richard Hughes)
 - hawkey: Do not re-use the sack when a media source is cached in the
repos (Richard Hughes)
 - hawkey: Do not use librepo to download packages on the DVD (Richard Hughes)
 - hawkey: Do the refresh-cache transaction in a thread (Richard Hughes)
 - hawkey: Drop HifSourceScanFlags (Richard Hughes)
 - hawkey: Fix installing i386 packages on a 64bit computer (Richard Hughes)
 - hawkey: Free memory after g_file_new_for_path (Eugene Wissner)
 - hawkey: Get and set the correct keys in the yumdb (Richard Hughes)
 - hawkey: if a specified a specific cache-age then do not use the
sack cache (Richard Hughes)
 - hawkey: Implement GetDetailsLocal (Richard Hughes)
 - hawkey: Implement GetFilesLocal (Richard Hughes)
 - hawkey: Implement RepairSystem (Richard Hughes)
 - hawkey: Implement RepoRemove() (Richard Hughes)
 - hawkey: Never replace newer metadata with an older copy (Richard Hughes)
 - hawkey: Release locks early if the state fails (Richard Hughes)
 - hawkey: Return a better error when the rpmdb is hosed (Richard Hughes)
 - hawkey: Return a depsolved list when doing GetUpdates (Richard Hughes)
 - hawkey: Return the proper error code if hy_sack_load_yum_repo()
fails (Richard Hughes)
 - hawkey: Run GetDetails() in a thread to avoid blocking the daemon
(Richard Hughes)
 - hawkey: Save the previously downloaded packages when refreshing the
cache (Richard Hughes)
 - hawkey: Show the package origin when simulating (Richard Hughes)
 - hawkey: Split out the repos functionality to its own file (Richard Hughes)
 - hawkey: Support more filter modes when getting the list of repos
(Richard Hughes)
 - hawkey: Support the package_id origin syntax used by yum (Richard Hughes)
 - hawkey: Take more locks when writing to metadata and repo files
(Richard Hughes)
 - hawkey: Use the cache age in deciding when to download new metadata
(Richard Hughes)
 - hawkey: Use the correct error code when the lock is required (Richard Hughes)
 - hawkey: Use the location basename when downloading packages (Richard Hughes)
 - hawkey: Use the package cost when choosing a repo to use (Richard Hughes)
 - hawkey: Work around an oddity in the Fedora metadata format (Richard Hughes)
 - Katja: Add cache_info table (Eugene Wissner)
 - Katja: Add header files to the Makefile (Eugene Wissner)
 - Katja: Add metadata.db (Eugene Wissner)
 - Katja: Always enable foreign keys (Eugene Wissner)
 - Katja: Change percent_step type to gdouble to avoid 0 value (Eugene Wissner)
 - Katja: Delete existing database on refresh force (Eugene Wissner)
 - Katja: Don't close the database on error (Eugene Wissner)
 - Katja: Download file lists (Eugene Wissner)
 - Katja: Download single packages (Eugene Wissner)
 - katja: Fix 'make distcheck' (Richard Hughes)
 - Katja: Force refresh if the cache is too old (Eugene Wissner)
 - Katja: Implement pk_backend_job_start (Eugene Wissner)
 - Katja: Modify default Slackware mirror based on architecture (Eugene Wissner)
 - Katja: Parse MANIFEST.bz2 (Eugene Wissner)
 - Katja: Remember configuration modifications (Eugene Wissner)
 - Katja: Rename local 'conf' variables (Eugene Wissner)
 - Katja: Search file (Eugene Wissner)
 - Katja: Use pk_directory_remove_contents (Eugene Wissner)
 - poldek: Adapt to the WhatProvides API change (Richard Hughes)
 - urpmi: Adapt to mageia api list (Nicolas Lécureuil)
 - urpmi: Adapt to the WhatProvides API change (Richard Hughes)
 - urpmi: Use mageia bugzilla as default (Nicolas Lécureuil)
 - yum: Adapt to the WhatProvides API change (Richard Hughes)
 - zypp: Adapt to the WhatProvides API change (Richard Hughes)

New Features:
 - Add a new method GetDetailsLocal to get details about local
packages (Richard Hughes)
 - Add a RepoRemove method to the transaction interface (Richard Hughes)
 - Add GetFilesLocal() to be able to get the file list of a local file
(Richard Hughes)
 - Fall back to a details search for 'pkcon search foo' (Richard Hughes)
 - Include summary in PkDetails (Giovanni Campagna)
 - pkcon: print summary in get-details (Giovanni Campagna)
 - Set all the proxy settings when using pkcon (Richard Hughes)
 - Set an idle IO priority for background threaded transactions (Richard Hughes)
 - systemd-updates: Allow optionally shutting down after applying
updates (Richard Hughes)

Bugfixes:
 - Add missing header (Nicolas Lécureuil)
 - Add Qt annotation to the new Details signature (Daniel Nicoletti)
 - Annotate DBUS Interfaces (Dominique Leuenberger, Daniel Nicoletti)
 - Assume a cache-age of 'any' by default when using pkcon (Richard Hughes)
 - Assume we don't want to install source packages with pkcon (Richard Hughes)
 - Clear the prepared-updates file only when the update is invalidated
(Richard Hughes)
 - Do not disregard any transaction that takes more than 43 seconds to
complete (Richard Hughes)
 - Do not install into python_sitelib (Richard Hughes)
 - Do not overrride CLEANFILES from gtk-doc, append to it (Alban Browaeys)
 - Do not refer to packages in the PolicyKit dialog messages (Richard Hughes)
 - Do not use the '…' character when talking to plymouth (Richard Hughes)
 - Don't use the default main context in sync PkClient methods (Richard Hughes)
 - Fix directory path in the docs (Eugene Wissner)
 - Fix project links in docs (William Jon McCann)
 - gstreamer-plugin: Link with gstreamer 1.0 (Kalev Lember)
 - gtk-doc: DOC_SOURCE_DIR is relative to builddir (Alban Browaeys)
 - Make functions called by pk_backend_job_thread_create() thread safe
(Richard Hughes)
 - Only scan .desktop files in the datadir (Richard Hughes)
 - Remove deprecated API from the libpackagekit-glib library (Richard Hughes)
 - Remove PkConf and use GKeyFile directly (Richard Hughes)
 - Remove the PkProvidesEnum parameter from WhatProvides (Richard Hughes)
 - Remove the workaround for the gvfs session bus fix (Richard Hughes)
 - Rename GetDepends and GetRequires to DependsOn and RequiredBy
(Matthias Klumpp)
 - Return an error if a client tries to execute an unknown method
(Richard Hughes)
 - Set the default cache-age to 'never' (Richard Hughes)
 - When using 'pkcon install' assume arch filter unless specified
otherwise (Richard Hughes)

Tarballs available here: http://people.freedesktop.org/~hughsient/releases/

Richard
_______________________________________________
PackageKit mailing list
PackageKit <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/packagekit
Richard Hughes | 21 Mar 13:20 2014
Picon

PackageKit 0.8.17 released!

Version 0.8.17
~~~~~~~~~~~~~~
Released: 2014-03-21

Backends:
 - Katja: Add cache_info table (Eugene Wissner)
 - Katja: Add header files to the Makefile (Eugene Wissner)
 - Katja: Add metadata.db (Eugene Wissner)
 - Katja: Exclude duplicates from search results (Eugene Wissner)
 - Katja: Exclude obsolete from the search results (Eugene Wissner)
 - Katja: Force refresh if the cache is too old (Eugene Wissner)
 - Katja: Parse MANIFEST.bz2 (Eugene Wissner)
 - Katja: Recognize obsolete packages (Eugene Wissner)
 - Katja: Remember configuration modifications (Eugene Wissner)
 - Katja: Download single packages (Eugene Wissner)
 - Katja: Fix wrong of patch metadata (Eugene Wissner)
 - Katja: Remove obsolete packages on update-packages (Eugene Wissner)
 - Katja: Search file (Eugene Wissner)
 - aptcc: Change some changelog formatting which can confuse markdown
parsers (Matthias Klumpp)
 - aptcc: Make changelog-loading future-proof on Debian/Tanglu (Matthias Klumpp)
 - hawkey: Allow packages to change architecture when updating (Richard Hughes)
 - hawkey: Do not replace all kernel packages with a new update (Richard Hughes)
 - hawkey: Fix installing i386 packages on a 64bit computer (Richard Hughes)
 - hawkey: Free memory after g_file_new_for_path (Eugene Wissner)
 - hawkey: Get and set the correct keys in the yumdb (Richard Hughes)
 - hawkey: Release locks early if the state fails (Richard Hughes)
 - hawkey: Return a depsolved list when doing GetUpdates (Richard Hughes)
 - hawkey: Run GetDetails() in a thread to avoid blocking the daemon
(Richard Hughes)
 - hawkey: Save the previously downloaded packages when refreshing the
cache (Richard Hughes)
 - hawkey: Support more filter modes when getting the list of repos
(Richard Hughes)
 - hawkey: Use the cache age in deciding when to download new metadata
(Richard Hughes)
 - hawkey: if a specified a specific cache-age then do not use the
sack cache (Richard Hughes)

New Features:
 - Allow optionally shutting down after applying updates (Richard Hughes)
 - Set an idle IO priority for background threaded transactions (Richard Hughes)

Bugfixes:
 - Do not disregard any transaction that takes more than 43 seconds
(Richard Hughes)
 - Do not install into python_sitelib (Richard Hughes)
 - Fix directory path in the docs (Eugene Wissner)
 - Return an error if a client tries to execute an unknown method
(Richard Hughes)
 - Set the default cache-age to 'never' (Richard Hughes)
 - When using 'pkcon install' assume arch filter (Richard Hughes)

Tarballs available here: http://people.freedesktop.org/~hughsient/releases/

Richard

Gmane