Bug 517799 - PackageKit not only supports preupgrade but also requires it
Summary: PackageKit not only supports preupgrade but also requires it
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: PackageKit
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 510888 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-17 08:52 UTC by Mads Kiilerich
Modified: 2010-03-22 16:23 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-22 16:23:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mads Kiilerich 2009-08-17 08:52:44 UTC
PackageKit-0.4.8-2.fc11.i586 requires
preupgrade-1.1.0-1.fc11.noarch which requires
createrepo-0.9.7-7.fc11.noarch which requires
deltarpm-3.4-16.fc11.i586

IMHO that dependency chain is unfortunate. It introduces hard-core packages on enduser systems. And even though preupgrade integration is very nice it isn't something everybody wants. Especially not for applicances and livecds.

I suggest that PackageKit just uses preupgrade if it is available without requiring it, or that a PackageKit-preupgrade package is introduced.

Comment 1 Richard Hughes 2009-08-18 10:05:46 UTC
PackageKit uses the /usr/share/preupgrade/releases.list file to check for updates. If we remove the preupgrade dep, then we are unable to check for distro upgrades. I suggest you split preupgrade into preupgrade and preupgrade-data (just containing /usr/share/preupgrade/releases.list), and then patch PackageKit to only depend on preupgrade-data.

Comment 2 Mads Kiilerich 2009-08-18 10:51:50 UTC
Richard: In some cases PackageKits functionality for installing new applications and security updates is nice, but distro upgrades are not desirable. In that case not being able to check for distro upgrades is nice. So just checking for /usr/share/preupgrade/releases.list would be just fine.

I don't see what would be achieved by splitting preupgrade the way you describe. What should PackageKit do with the release list if preupgrade isn't available? Install it on demand? Ok, I guess that would work and save some disk space. But in my case I would actually rather disable preupgrade completely.

Comment 3 Richard Hughes 2009-08-18 11:25:48 UTC
I think removing the preupgrade dep is a big loss in functionality to save 700kb in space...

Comment 4 Mads Kiilerich 2009-08-18 11:52:34 UTC
My (not so clearly made) point is that in some use cases we actually don't want the preupgrade functionality. Loosing functionality is the goal, and not including unnecessary packages and saving some space is secondary.

For example on the official Fedora 11 live CD where being able to install extra applications through PackageKit is nice, but prompting the user and running preupgrade makes no sense.

(Another case: I installed Fedora on a friends computer. I showed him how to install updates and new applications with PackageKit. That works just fine and he is happy and prefers that to Vista. But one day he called and had some problems because of "some big update". Investigation showed that he had allowed preupgrade to run. Preupgrade worked just fine and was apparently very easy to use, but a version upgrade is a major thing so I would have preferred that the he hadn't been prompted about it. An obvious and simple solution to that would have been to install PackageKit but not preupgrade.)

Comment 5 Steven M. Parrish 2009-09-13 01:32:04 UTC
Comments Richard?

-- 
Steven M. Parrish - KDE Triage Master
                  - PackageKit Triager
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 6 Richard Hughes 2009-09-13 08:22:46 UTC
I had another bugzilla from RHEL, where they didn't want preupgrade either. I've added the code to just ignore with no upgrades if the preupgrade package data doesn't exist, so I guess it's sane to make this optional in fedora too. I do think it's important to include preupgrade by default, but it should probably be pulled in by comps or kickstart, rather than be required by PackageKit.

Comment 7 seth vidal 2009-10-12 21:58:03 UTC
*** Bug 510888 has been marked as a duplicate of this bug. ***

Comment 8 Mads Kiilerich 2010-01-13 23:20:45 UTC
PackageKit-0.5.6-1.fc12.i686 still requires preupgrade. Changing to F12.

Comment 9 Richard Hughes 2010-03-22 16:23:14 UTC
- Remove preupgrade hard depends as it's not installed by default for
  gnome-desktop in comps.


Note You need to log in before you can comment on or make changes to this bug.