[packagekit] Adding support for "prepare" in transaction_flags

Anders F Björklund afb at algonet.se
Wed Jun 6 02:00:10 PDT 2012


Daniel Nicoletti wrote:
>> Richard Hughes wrote:
>> 
>>> On 3 June 2012 19:36, Daniel Nicoletti <dantti12 at gmail.com> wrote:
>>>> Ok, it's just that for apt it would mean download only...
>>> 
>>> Same for yum and zif, so you might have a point. Would anybody else do
>>> anything else except download? What about a source distro that needs
>>> to download, make but *not* sudo make install?
>> 
>> For a source distribution, you will still have to install the build
>> dependencies (requiring root) in order to complete the package build.
>> It could of course still prepare, by downloading distfiles and patches.
> Right, well the prepare thing would afaik still require root,
> since it will download files to root writable dirs, but as you say
> the make process could only work if the needed deps are satisfied,
> so imo making the enum name DOWNLOAD_ONLY makes sense
> since the whole make process as you say should be done in one
> single step.

Even more fun is when it starts to build the source packages at boot-time.
Maybe the source backends shouldn't be allowed*, but use .tbz2 and .txz ?
* i.e. emerge --binpkg-only and portupgrade --use-packages-only, and just
fail if no such packages have been prepared from the ebuilds and ports...

After all, there is no method to install from .src.rpm and .dsc either.
(one has to build the binary .rpm and .deb first, outside of PackageKit)

--anders



More information about the PackageKit mailing list