#12564: pkgman install *un*installs the package (if passed a local hpkg, no
problem
with remote hpkr's)
--------------------------------+----------------------------
Reporter: ttcoder | Owner: bonefish
Type: enhancement | 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):
{{{
Welcome to the Haiku shell.
~/Desktop> pkgman install lnlauncher # initial install
Downloading repochecksum-1...done.
Validating checksum for Haiku...done.
Downloading repochecksum-1...done.
Validating checksum for HaikuPorts...done.
The following changes will be made:
in system:
install package lnlauncher-1.1.2-5 from repository HaikuPorts
Continue? [y/n] (y) : y
Downloading lnlauncher-1.1.2-5-x86_gcc2.hpkg...done.
Validating checksum for http://packages.haiku-
os.org/haikuports/master/repo/x86_gcc2/current/packages/lnlauncher-1.1.2-5-x86_gcc2.hpkg...done.
[system] Applying changes ...
[system] Changes applied. Old activation state backed up in
"state_2016-01-07_10:31:01"
[system] Cleaning up ...
[system] Done.
~/Desktop> pkgman install lnlauncher # "second" install, from remote repo
so not harmful:
Downloading repochecksum-1...done.
Validating checksum for Haiku...done.
Downloading repochecksum-1...done.
Validating checksum for HaikuPorts...done.
Nothing to do. # perfect
# let's simulate Dane's actions:
~/Desktop> cp /system/packages/lnlauncher-1.1.2-5-x86_gcc2.hpkg ./
~/Desktop> pkgman update ./lnlauncher-1.1.2-5-x86_gcc2.hpkg # "second"
install, with update: no harm
Downloading repochecksum-1...done.
Validating checksum for Haiku...done.
Downloading repochecksum-1...done.
Validating checksum for HaikuPorts...done.
Nothing to do.
~/Desktop> pkgman install ./lnlauncher-1.1.2-5-x86_gcc2.hpkg # "second"
install, with "install": ouch:
Downloading repochecksum-1...done.
Validating checksum for Haiku...done.
Downloading repochecksum-1...done.
Validating checksum for HaikuPorts...done.
The following changes will be made:
in system:
upgrade package lnlauncher-1.1.2-5 to 1.1.2-5 from local file # one
hint that Dane fails to see every time as he types "yes" anyway :-)
Continue? [y/n] (y) : y
[system] Applying changes ...
[system] Changes applied. Old activation state backed up in
"state_2016-01-07_10:33:58"
[system] Cleaning up ...
failed to remove transaction directory: Directory not empty # another
symptom here
[system] Done.
~/Desktop> grep lnlauncher /system/packages/administrative/activated-
packages # ouch! package is no longer activated! (fortunately nobody
depends on this package "lnlauncher" so no cascade)
~/Desktop> ls /system/packages/lnlauncher-1.1.2-5-x86_gcc2.hpkg # the
file is still there though
/system/packages/lnlauncher-1.1.2-5-x86_gcc2.hpkg
~/Desktop> grep lnlauncher
/system/packages/administrative/state_2016-01-07_10\:33\:59/activated-
packages
lnlauncher-1.1.2-5-x86_gcc2.hpkg # it was previously activated (after
initial install)
}}}
--
Ticket URL: <https://dev.haiku-os.org/ticket/12564#comment:1>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.