#12560: "pkgman up ak.hpkg" misreports "Nothing to do" (whereas "pkgman
install" is
ok)
--------------------------------+----------------------------
Reporter: ttcoder | Owner: bonefish
Type: bug | Status: new
Priority: normal | Milestone: R1
Component: Kits/Package Kit | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
--------------------------------+----------------------------
Comment (by bonefish):
I'm not entirely sure what the semantics of providing a local package file
for an update is (regarding libsolv's solver). Generally updating a
package means to install the greatest installable version for that
package. So, providing a concrete file for a package X probably has two
effects: 1. add the package file to a high priority (virtual) repository
and 2. update package X using the available repositories (preferring the
virtual one). IOW the net effect would be the same, if you had added a
real repository (with the highest priority) containing the package and
just requested `pkgman update --home armyknife`. If a package version in
any of the available repositories would theoretically match but cannot be
installed, it is simply ignored when an update is requested. Hence the
result "Nothing to do.", because nothing can be updated.
I think providing a package file to `pkgman update`, while possible, is
only marginally useful. If you really want to install that version, use
`pkgman install`.
So regarding this ticket, I tend towards "won't fix" (or "not really
broken, just surprising semantics").
--
Ticket URL: <https://dev.haiku-os.org/ticket/12560#comment:2>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.