summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2007-09-21 19:11:49 +0100
committerRichard Hughes <richard@hughsie.com>2007-09-21 19:11:49 +0100
commit5b4f4fa8c5128c27b2286b5ef1b3b8277323928c (patch)
tree398cb86d3de3bfa21f0f7ef94edc34cdeac42688 /client
parentaa74310961ec2e78153f5f0643e87659b6f4c081 (diff)
Add the Resolve method. We need this when we know the package name, and want to get the package id
Diffstat (limited to 'client')
-rw-r--r--client/pk-console.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/client/pk-console.c b/client/pk-console.c
index d21c2e72..03e541e6 100644
--- a/client/pk-console.c
+++ b/client/pk-console.c
@@ -151,6 +151,7 @@ pk_console_usage (const gchar *error)
g_print (" pkcon [sync] [verbose] remove <package_id>\n");
g_print (" pkcon [sync] [verbose] update <package_id>\n");
g_print (" pkcon [sync] [verbose] refresh\n");
+ g_print (" pkcon [sync] [verbose] resolve\n");
g_print (" pkcon [sync] [verbose] force-refresh\n");
g_print (" pkcon [sync] [verbose] update-system\n");
g_print (" pkcon [sync] [verbose] get updates\n");
@@ -253,6 +254,15 @@ pk_console_parse_multiple_commands (PkTaskClient *tclient, GPtrArray *array)
pk_task_client_remove_package (tclient, value, FALSE);
remove = 2;
}
+ } else if (strcmp (mode, "resolve") == 0) {
+ if (value == NULL) {
+ pk_console_usage ("you need to specify a package name to resolve");
+ remove = 1;
+ goto out;
+ } else {
+ pk_warning ("TODO!");
+ remove = 2;
+ }
} else if (strcmp (mode, "get") == 0) {
if (value == NULL) {
pk_console_usage ("you need to specify a get type");