Bug 49096 - packagekit can't show pacman's question about replacing packages that migrated to extra (or core)
Summary: packagekit can't show pacman's question about replacing packages that migrate...
Status: RESOLVED NOTABUG
Alias: None
Product: PackageKit
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Richard Hughes
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-24 00:56 UTC by Pas
Modified: 2018-08-21 15:52 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pas 2012-04-24 00:56:18 UTC
Upgrading via Apper (ex-KPackageKit) becomes impossible on ArchLinux after a few packages moved to the extra repository from community. Pacman handles this by presenting a simple Y/n question to the user, of which Apper doesn't seem capable of.

apper 0.7.1-6
packagekit 0.6.22-1


In case it's an Apper bug, then sorry for the noise, but please do let me know and I'll file it at bugs.kde.org.
Comment 1 Richard Hughes 2012-04-24 00:58:34 UTC
(In reply to comment #0)
> by presenting a simple Y/n question to the user

What is the question you're asking the user?
Comment 2 Pas 2012-04-24 01:06:31 UTC
pacman asks for confirmation. 


:: Replace farsight2 with extra/farstream? [Y/n] y
:: Replace telepathy-farsight with extra/telepathy-farstream? [Y/n] y
:: Replace telepathy-qt4 with extra/telepathy-qt? [Y/n] y


I don't know the specifics as how it computes the replacement packages, but it looks that farsight2 was simply removed from the repos and the only package that was able to satisfy some dependency was extra/farstream. (And so on for the other ones.)
Comment 3 Richard Hughes 2012-04-24 01:13:50 UTC
(In reply to comment #2)
> :: Replace farsight2 with extra/farstream? [Y/n] y
> :: Replace telepathy-farsight with extra/telepathy-farstream? [Y/n] y
> :: Replace telepathy-qt4 with extra/telepathy-qt? [Y/n] y

How do you decide if it's safe to say 'y' for each entry?

Richard
Comment 4 Pas 2012-04-24 01:29:09 UTC
I just blindly hit y!

But it's because the changes seem harmless, and - I haven't tried, but saying no would mean using a package no longer maintained: http://www.archlinux.org/packages/?q=farsight2 vs. http://www.archlinux.org/packages/extra/x86_64/farstream/ .

These moves are not too common, but happen frequently enough that they're not surprising. (As Arch developers come and go, packages and projects get more or less care.)
Comment 5 Richard Hughes 2012-04-24 01:53:51 UTC
(In reply to comment #4)
> I just blindly hit y!

Right, so that's what PackageKit should do under the scenes. Just make the default answer to be y, or provide a way to set the answer in the pacman API. This probably means somebody familiar with pacman should patch the PackageKit backend.
Comment 6 Pas 2012-04-24 02:04:18 UTC
I've tried to add Jonathan Conder to the cc list, but bugzilla wasn't cooperating :)
Comment 7 Richard Hughes 2018-08-21 15:52:53 UTC
We moved the upstream bugtracker to GitHub a long time ago. If this issue still affects you please re-create the issue here: https://github.com/hughsie/PackageKit/issues
 
Sorry for the impersonal message, and fingers crossed your issue no longer happens. Thanks.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.