pkgman: Update some user messages

This commit is contained in:
Ingo Weinhold
2014-06-15 17:21:02 +02:00
parent 0b57c6338b
commit f9f8a8f56e
3 changed files with 14 additions and 4 deletions
+8 -3
View File
@@ -267,9 +267,14 @@ PackageManager::_PrintResult(InstalledRepository& installationRepository)
for (int32 i = 0; BSolverPackage* package = packagesToActivate.ItemAt(i); for (int32 i = 0; BSolverPackage* package = packagesToActivate.ItemAt(i);
i++) { i++) {
printf(" install package %s from repository %s\n", if (dynamic_cast<MiscLocalRepository*>(package->Repository()) == NULL) {
package->Info().FileName().String(), printf(" install package %s from repository %s\n",
package->Repository()->Name().String()); package->Info().FileName().String(),
package->Repository()->Name().String());
} else {
printf(" install package %s from local file\n",
package->Info().FileName().String());
}
} }
for (int32 i = 0; BSolverPackage* package = packagesToDeactivate.ItemAt(i); for (int32 i = 0; BSolverPackage* package = packagesToDeactivate.ItemAt(i);
+3 -1
View File
@@ -29,7 +29,9 @@ static const char* const kShortUsage =
static const char* const kLongUsage = static const char* const kLongUsage =
"Usage: %program% %command% <package> ...\n" "Usage: %program% %command% <package> ...\n"
"Installs the specified packages.\n" "Installs the specified packages. A <package> argument can be a search\n"
"string by which the package is looked up in a remote repository or a\n"
"path to a local package file. In the latter case the file is copied.\n"
"\n" "\n"
"Options:\n" "Options:\n"
" -H, --home\n" " -H, --home\n"
+3
View File
@@ -31,6 +31,9 @@ static const char* const kLongUsage =
"Usage: %program% %command% [ <package> ... ]\n" "Usage: %program% %command% [ <package> ... ]\n"
"Updates the specified packages. If no packages are given, all packages\n" "Updates the specified packages. If no packages are given, all packages\n"
"in the installation location are updated.\n" "in the installation location are updated.\n"
"A <package> argument can be a search string by which the package is\n"
"looked up locally and in a remote repository or a path to a local\n"
"package file. In the latter case the file is copied.\n"
"\n" "\n"
"Options:\n" "Options:\n"
" -H, --home\n" " -H, --home\n"