#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
Keywords: | Blocked By:
Blocking: | Has a Patch: 0
Platform: All |
------------------------------+------------------------------
I noticed what might be a package-kit bug when a dependancy is missing
(i.e. absent from both hpkr repos and local files); will leave my system
as-is for a few days to reproduce the problem for further diagnosis if
needed
Namely,
local-file ak.hpkg has a "requires: tts_mimeconfig>=2016.1" dependancy
which is not satisfied (there's only an older version, 2015.3, installed)
pkgman install behaves as expected, it says it cannot find the dep:
{{{
/boot/system/cache/tmp/tts_updater_temp> pkgman install --home -y
armyknife-5.1.
8.0-1-x86_gcc2.hpkg
Downloading repochecksum-1...
Downloading repochecksum-1...done.
Validating checksum for Haiku...done.
Downloading repochecksum-1...
Downloading repochecksum-1...done.
Validating checksum for HaikuPorts...done.
Encountered problems:
problem 1: nothing provides ttscore_mimeconfig>=2016.1 needed by
armyknife-5.1.8.0-1
solution 1:
- do not install "pkg:armyknife-5.1.8.0-1-x86_gcc2"
}}}
but pkgman update does not, it bails out with "nothing to do" message:
{{{
/boot/system/cache/tmp/tts_updater_temp> pkgman update --home -y
armyknife-5.1.8.0-1-x86_gcc2.hpkg
Downloading repochecksum-1...
Downloading repochecksum-1...done.
Validating checksum for Haiku...done.
Downloading repochecksum-1...
Downloading repochecksum-1...done.
Validating checksum for HaikuPorts...done.
Nothing to do.
/boot/system/cache/tmp/tts_updater_temp>
}}}
I'm setup for compiling this; so dug a little and found that
[http://xref.plausible.coop/source/xref/haiku/src/kits/package/manager/PackageManager.cpp#482
fInstalledRepositories.ItemAt(0 and 1)->HasChanges()] == false, which
triggers the exception
Can give the output from SetDebugLevel(2+) if needed too; been reading
through it but can't make sense of it
This all might be a user error on my side though, i.e. I misunderstand how
"update" 's behavior is supposed to be, relative to "install" behavior
--
Ticket URL: <https://dev.haiku-os.org/ticket/12560>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.