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)
(Continue reading)

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)
(Continue reading)

Richard Hughes | 19 Mar 10:32 2014
Picon

Please do any cherry-picking into PACKAGEKIT_0_8_X

I'm going to do a new 0.8.x release on Friday, so if there's anything
in the master branch you want in the stable release, please ensure you
cherry-pick it into PACKAGEKIT_0_8_X before Friday morning. Thanks!

Richard.
Daniel Nicoletti | 17 Mar 19:41 2014
Picon

0.9 API

Hi,

Some time ago I realized that there was
quite some blocking calls in packagekit-qt,
namely reading DBus properties was always
blocking, this has just fixed.

On the other hand all method calls are also
sync, I can overcome this with an API change
which I plan to do for 0.9 (as the API breaks
anyway), but it would be much easier if
PK API had another change.

To search for a package we have the following
DBus calls:

- org.fdo.PackageKit->CreateTransaction()
which returns a DBus Object Path, with that path we call
- org.fdo.PackageKit.Transaction->SearchPackage()

I'd like to propose to move all methods that set
a role in a transaction object to the org.fdo.interface
and remove the CreateTransaction method, so
you get:

- org.fdo.PackageKit.SearchPackage()
which returns the ObjectPath of the newly
created transaction.

This removes one IMHO useless roundtrip (createTransaction).
(Continue reading)

Richard Hughes | 25 Feb 11:55 2014
Picon

New DBus API in master for ::Details

::Details now has a 'a{sv}' signature in master, rather than the
semi-insane 'ssusst' signature. Giovanni has also added the summary to
the details struct, and in the future we can add other parameters (and
fix things like the installed/available sizes bug) without breaking
API.

PackageKit-qt needs updating, but packagekit-glib should work now, and
also Giovanni has updated the backends to at least compile. Certainly
adding the summary to the backend method in your backend would be very
appreciated. Thanks.

If this works well, we can do the same to UpdateDetails (or rather
merge that into Details??) and make things a lot less complex.

Richard
fdor | 24 Feb 20:34 2014

Suggestion: Low priority for update processes

Hi, I'm re-posting here a suggestion for 
PackageKit that I posted at Fedora's bugzilla:

    https://bugzilla.redhat.com/show_bug.cgi?id=1060444

------ message 1 (mine) ------

If I launch the Fedora graphical updater 
(gpk-update-viewer), I see that it launches 
other commands (yumBackend.py, apply-delta-rpm, 
etc), and all of them run with normal priority 
(0).

While my system is being updated, I do other 
things (play music, edit files, etc), and I note 
that the update is eating cpu, because the 
things I'm doing are not too fluid.

So I would like to give the suggestion of 
changing the default priority of 
gpk-update-viewer (and the priority of all 
processes that are launched by it) to a low 
priority (for example, the equivalent of "nice 
-n 19 <command>"), in order to give more cpu to 
the user programs.

------ post 2 (Rex Dieter) ------

CPU priorities are already implemented, see 
/etc/PackageKit/PackageKit.conf entries for
(Continue reading)

Richard Hughes | 16 Feb 20:24 2014
Picon

New method: RepoRemove()

Hi all,

I've pushed a new transaction method called RepoRemove() to master.
This is a method that when implemented removed a repo, *and* any
packages previously installed from that repo. This ensures two things:

* There are no errors when depsolving in the future
* Apps that are not going to have security updates are not left on the
users system

I've been asked to do this for GNOME software, to show (and optionally
remove) add-on repos like google-chrome and bluejeans. If you've got
any questions, please ask and I can explain how I've done this in the
hawkey backend.

Richard.
Eugen Wissner | 3 Feb 16:01 2014
Picon

hawkey: g_object_unref (file)

Hi,

I noticed a possible leak in the pk-backend-hawkey.c. Please see the patch. And I'm not sure whether also the filename (filename = hif_package_get_filename (pkg);) variable should be freed since I don't know how hif_package_get_filename exactly works.

Best regards
Eugene
Attachment (pk-backend-hawkey.patch): text/x-patch, 640 bytes
<div><div dir="ltr">
<div>
<div>
<div>Hi,<br><br>
</div>I noticed a possible leak in the pk-backend-hawkey.c. Please see the patch. And I'm not sure whether also the filename (filename = hif_package_get_filename (pkg);) variable should be freed since I don't know how hif_package_get_filename exactly works.<br><br>
</div>Best regards<br>
</div>Eugene<br>
</div></div>
Richard Hughes | 28 Jan 21:10 2014
Picon

New backend functionality: GetDetailsLocal

Hi all,

I've just added a new backend method we need for several new
applications. It's called GetDetailsLocal and is designed to get
details about local (i.e. not yet installed) package files.

I've just added support for this in the hawkey backend, and I'd very
much appreciate it anyone interested could add the new method in the
next few weeks. We'll be optionally using it in gnome-software from
tomorrow. :)

Questions welcome, thanks.

Richard

Gmane