[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Installing Acquire::IndexTargets requires a second 'update' - any workaround?



[ not subscribed ]

$deities,

In Ubuntu we're going to ship appstream by default as a new package for
the Xenial release. This package installs a file into
/etc/apt/apt.conf.d/ which adds an Acquire::IndexTargets stanza to
download some files from the repository. Debian has this too - I'm not
sure if you are going to install this by default there, but the problem
applies to manual installs too.

  https://github.com/ximion/appstream/blob/master/contrib/apt-conf/50appstream

The problem is that the file is installed by a package, so it is not
available to apt until after the package is unpacked - meaning that a
second update is required to get the files and run the
Post-Invoke-Success hook to make them available. This means that live
CDs and upgrading users won't have this, unless we add custom hooks into
the CD building and upgrading process to do another update later on, or
make the client tools (gnome-software is the one we care about for
Ubuntu, but there are other consumers too) trigger the update
themselves.

This feels like an instance of a general problem: that adding new
IndexTargets from Debian packages is a two step process of installing a
package then updating a second time, so I'm wondering if you have any
idaes about how to fix this more generally?

Cheers,

-- 
Iain Lane                                  [ iain@orangesquash.org.uk ]
Debian Developer                                   [ laney@debian.org ]
Ubuntu Developer                                   [ laney@ubuntu.com ]

Attachment: signature.asc
Description: PGP signature


Reply to: