History log of /haiku/src/bin/pkgman/command_install.cpp
Revision Date Author Comments
# 52a61976 03-Mar-2019 Andrew Lindesay <apl@lindesay.co.nz>

pkgman: fix for syntax (help)

The tool "pkgman" was not showing it's help text
and this seems to be somehow related to the
initialization of constants such as
"kCommandCategoryPackages"; these values seems to
be coming through as empty-string for some reason.
I am changing those to be "#define" of regular
C-Strings and this seems to resolve the problem.
These values only seem to be used to group the
possible commands for production of the syntax or
help text - there do not seem to be any deeper
impacts beyond that functionality.

Change-Id: If9cd61462cd7f1f1b5ab2ece521bb3f00a1ba246
Reviewed-on: https://review.haiku-os.org/c/1139
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 6dc1f7eb 15-Feb-2018 Hrishi Hiraskar <hrishihiraskar@gmail.com>

[pkgman] pkgman informs if package is already installed.

While installing packages through pkgman, it will inform if specific
package is already installed. Fixes #12447 : [pkgman] inform if a
package is already installed.
Change-Id: I194bc849c42ba52a696a6cb52d87aebaff530f35


# dd15db95 25-Oct-2014 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman: Add --debug option for most commands

* Add CommonOptions class and add an instance to Command. It supports a
debug level.
* full-sync, install, search, uninstall, update: Add option --debug.
This allows getting some debug output from the solver in cases where
the result seems weird.


# f9f8a8f5 15-Jun-2014 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman: Update some user messages


# 83f63a21 22-Nov-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman [un]install/update: Add non-interactive mode (-y)


# 4b7e2196 03-Oct-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Remove /boot/common for good

* Remove support for the "common" installation location from packagefs,
package kit, package daemon, package managers.
* Rename the B_COMMON_*_DIRECTORY constants referring to writable
directories to B_SYSTEM_*_DIRECTORY.
* Remove/adjust the use of various B_COMMON_*_DIRECTORY constants.
I'm sure some occurrence still remain. They can be adjusted when the
remaining B_COMMON_*_DIRECTORY constants are removed.


# 83462cc2 31-Aug-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Refactor reusable pkgman code into libpackage

* Move RepositoryBuilder class to libpackage and add B* prefix to name.
* Pull BPackageManager class out of PackageManager and move to
libpackage. The base class is customizable via three handler objects
responsible for transaction handling, request execution, respectively
user interaction.
* Reorganize _ApplyPackageChanges(): Now we first prepare the
transactions for all affected installation locations (downloading
files etc.) and then commit them.


# a54a50b4 28-Aug-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman: add support for [un]installing/updating in system


# ce4f3676 26-Aug-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman: auto-refresh repositories only for update/install


# 8b26ef67 25-Aug-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman: PackageManager: Use flags instead of bools in ctor


# f118c414 25-Aug-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman [un]install: fix option '-H'


# 458a86aa 21-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman: Organize commands by category


# 8ba41d62 20-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman install: Fix typo in usage text


# 3ac0de3b 20-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman: Refactoring -> PackageManager

Move common and reusable functionality from "search" and "install" to
new PackageManager class.


# 7466fa2d 21-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman install: Simplify transaction creation


# 2f028e9a 20-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman install: Add problem solution selection support


# ec41ff58 20-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman install: Refresh repositories first


# adc49c41 20-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman install: better out-of-memory error messages


# eee120f9 20-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman install: Complete basic functionality

Download package files to install from the respective repositories and
use BDaemonClient to perform the package de-/activation. Still missing
is the interactive problem solution support.


# 0d50fa87 12-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman: Add beginnings of the "install" command

So far it only solves the dependencies and prints the result. No
problem handling, no actual installation.


# dd15db954b893bd727a4ba5972bd2019d673f074 25-Oct-2014 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman: Add --debug option for most commands

* Add CommonOptions class and add an instance to Command. It supports a
debug level.
* full-sync, install, search, uninstall, update: Add option --debug.
This allows getting some debug output from the solver in cases where
the result seems weird.


# f9f8a8f56ecde660fe4455efae7535619212d0da 15-Jun-2014 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman: Update some user messages


# 83f63a216ee17213be3e9125c17f611bdb26e1b5 22-Nov-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman [un]install/update: Add non-interactive mode (-y)


# 4b7e219688450694efc9d1890f83f816758c16d3 03-Oct-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Remove /boot/common for good

* Remove support for the "common" installation location from packagefs,
package kit, package daemon, package managers.
* Rename the B_COMMON_*_DIRECTORY constants referring to writable
directories to B_SYSTEM_*_DIRECTORY.
* Remove/adjust the use of various B_COMMON_*_DIRECTORY constants.
I'm sure some occurrence still remain. They can be adjusted when the
remaining B_COMMON_*_DIRECTORY constants are removed.


# 83462cc28d356d564a818c1d34605ed2ec83f274 31-Aug-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Refactor reusable pkgman code into libpackage

* Move RepositoryBuilder class to libpackage and add B* prefix to name.
* Pull BPackageManager class out of PackageManager and move to
libpackage. The base class is customizable via three handler objects
responsible for transaction handling, request execution, respectively
user interaction.
* Reorganize _ApplyPackageChanges(): Now we first prepare the
transactions for all affected installation locations (downloading
files etc.) and then commit them.


# a54a50b48e316421f2735e9c46219164e16dd8cd 28-Aug-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman: add support for [un]installing/updating in system


# ce4f36769285c1c491491dac6a909c76b7d761ad 26-Aug-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman: auto-refresh repositories only for update/install


# 8b26ef6779119ba64f5de3ce47ea4cac154ab4e8 25-Aug-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman: PackageManager: Use flags instead of bools in ctor


# f118c41467a62881ec1ae0ba61fecbbc43cf4048 25-Aug-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman [un]install: fix option '-H'


# 458a86aacb49b152f65b810140295477d49f2f31 21-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman: Organize commands by category


# 8ba41d628c0ba3fd9f694562dc8b494fbfc220f7 20-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman install: Fix typo in usage text


# 3ac0de3b1fac18912d6cb7758b502468e3802ee9 20-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman: Refactoring -> PackageManager

Move common and reusable functionality from "search" and "install" to
new PackageManager class.


# 7466fa2d4901461dea3fc89a9229e0e04707124a 21-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman install: Simplify transaction creation


# 2f028e9a2dc4b33ecac66d8fd491244a02d0f677 20-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman install: Add problem solution selection support


# ec41ff587ff27f05dd852cd58a91bcb70043be41 20-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman install: Refresh repositories first


# adc49c411a101e1372d77d95c3473cdbd5dace06 20-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman install: better out-of-memory error messages


# eee120f9871cf6f4a1251be97a6a0dc3a4d91a87 20-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman install: Complete basic functionality

Download package files to install from the respective repositories and
use BDaemonClient to perform the package de-/activation. Still missing
is the interactive problem solution support.


# 0d50fa87ec909d6d81190d187596163264c59d94 12-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

pkgman: Add beginnings of the "install" command

So far it only solves the dependencies and prints the result. No
problem handling, no actual installation.