[packagekit] package reinstallation

Michal Minář miminar at redhat.com
Tue Jul 8 06:42:33 PDT 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/08/2014 09:31 AM, Richard Hughes wrote:
> Something like ALLOW_DOWNGRADE as a transaction flag would be 
> acceptable to me, although it would need a new PolicyKit action to
> go along with it.
Sounds good to me. ALLOW_REINSTALL would also be needed I guess. So if
you or any other proven committer have some more objections, please
raise them now.

To sum it up, with my limited PK insight, this enhancement would
comprise of:

 1. Addition of ALLOW_DOWNGRADE and ALLOW_REINSTALL flags to
    PkTransactionFlagEnum.
 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.
 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.

I hope I haven't omitted anything crucial. I'll create an RFE bug in
upstream bugzilla to track this.

Thank you for valid concerns.

Michal M.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTu/VIAAoJEPezUylxRFUDB6YH/Azbez5MqRhu6m/fM6w4zb0e
Qo+2QUIhCBpxdtpwT5r/ayflWzVhZZRG3Awit+svqmELiCuXAb/hGTUvfMPDqkrX
nB8KtSXg9aDh6IfhzxqkiXxON40rcg+V0wXvcz2X0U6Q95cm29mVAmtv5m0l6m5w
ARw3jcI7OknFIEv5s0ZllWiSIz0gTOT09Kkwduxir7wPfbW0bBxxopkmujdnSYi3
6ktVpNOcvuWgIwkg7DpW3vizPYOgTcYOPX8GmF+4KRyuEmS91ZsAS6W/ne98l/NY
1EB5LYEpK4VJFvBTIFhJIzkfA5VjjrdsKuIwGGBcF5NmhA7gRbAsaM3PmRC8I9c=
=PZ/V
-----END PGP SIGNATURE-----


More information about the PackageKit mailing list