#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 ttcoder):
Will-not-fix sounds ok to me thanks to the clarified semantics:
If "update X.hpkg" really maps to "update X, with X.hpkg being just one
possible source to retrieve X" then it makes sense: I would not expect
"update Y" to report any possible problem related to Y on any repository
where it lives.. (or maybe a --diagnose-verbosely command-line switch
could be added some day?, if the underlying API provides supports it and
if it makes sense at all :-).
So the ball is in my court now -- notes to self:
- maybe just switch my code to using the API's equivalent of "pkgman
'''install'''" ? I think I had resisted that in the past in case that'd
accidentally downgrade instead of upgrade (not likely to be a problem!!),
and so as to preserve the package selection, if e.g. a user has installed
tuneprepper.hpkg but not tuneprepper_extra_goodies.hpkg (but come to think
of it, IIRC "update" and "install" actually behave the same on that front,
both of them install the whole set of passed files). So no rationale any
more for using "update"
- if for some reason I keep using "update" I gotta impress on Dane, even
more than I already did :-), that he must always keep the roll-out package
"sets" as current and as clean as possible, to avoid ending up with a
"Nothing to do" message which would be difficult to diagnose
Some day we might switch to making our pkg roll-outs use actual hpkR
repos, which might help with this (if the package_repo does some dep
checking) and would definitely help with speed/efficiency
Let's close this
--
Ticket URL: <https://dev.haiku-os.org/ticket/12560#comment:3>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.