[packagekit] package reinstallation

Michal Minář miminar at redhat.com
Tue Oct 14 07:19:39 PDT 2014

Hash: SHA1

Hi again,

it took me a while to complete it. Pull requests for package
reinstallation hang on github for some time now [1] [2]. I have also my
private test suite prepared (attached). It's a bash script using
beakerlib [3] and expect script for invoking pkcon. I'm not sure whether
adding it to the pull request is appropriate though. It differs from
other tests quite a lot. I am willing to rewrite it to python if needed
(if it speeds up the merge).

Is anything more needed? Did I forget something?

I'd appreciate your suggestions.

Best regards,
Michal Minar

[1] https://github.com/hughsie/PackageKit/pull/12
[2] https://github.com/hughsie/libhif/pull/10
[3] https://fedorahosted.org/beakerlib/

On 07/08/2014 03:44 PM, Richard Hughes wrote:
> On 8 July 2014 14:42, Michal Minář <miminar at redhat.com> wrote:
>> 1. Addition of ALLOW_DOWNGRADE and ALLOW_REINSTALL flags to 
>> PkTransactionFlagEnum.
> Right.
>> 2. Processing of these flags in install_files() and
>> install_packages() functions of backends that properly support
>> it. Leave the current behaviour ("error: already installed") for
>> others.
> Right.
>> 3. Add action ids "org.freedesktop.packagekit.package-reinstall"
>> and "org.freedesktop.packagekit.package-downgrade" to 
>> org.freedesktop.packagekit.policy and handle them in 
>> pk-transaction.c.
> Correct.
>> I hope I haven't omitted anything crucial. I'll create an RFE bug
>> in upstream bugzilla to track this.
> A patch would be awesome, but I know it's a big ask. :)
> Richard. _______________________________________________ PackageKit
> mailing list PackageKit at lists.freedesktop.org 
> http://lists.freedesktop.org/mailman/listinfo/packagekit

Version: GnuPG v1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-pkgkit-reinst.tar.gz
Type: application/gzip
Size: 5391 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20141014/9d8edeb5/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-pkgkit-reinst.tar.gz.sig
Type: application/pgp-signature
Size: 287 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20141014/9d8edeb5/attachment.sig>

More information about the PackageKit mailing list