diff options
author | Robin Norwood <rnorwood@redhat.com> | 2007-10-12 22:05:51 -0400 |
---|---|---|
committer | Robin Norwood <rnorwood@redhat.com> | 2007-10-12 22:05:51 -0400 |
commit | ed1ff3f00b4291dd0b07f1b0f2125d84382d3a09 (patch) | |
tree | 5f20bab8b76c5adeda25e2d05a849a4f748981ea /client | |
parent | 38f0c00376837f725d7ea0cf550414d984e98372 (diff) | |
parent | 0e77e7fe56093117dbf5ac0d7d3475e44de3c7df (diff) |
Merge branch 'master' of git+ssh://rnorwood@git.packagekit.org/srv/git/PackageKit
Diffstat (limited to 'client')
-rw-r--r-- | client/pk-console.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/client/pk-console.c b/client/pk-console.c index 0b98fd53..b724e82f 100644 --- a/client/pk-console.c +++ b/client/pk-console.c @@ -273,6 +273,16 @@ pk_console_parse_multiple_commands (PkClient *client, GPtrArray *array) pk_client_wait (); remove = 2; } + } else if (strcmp (mode, "update") == 0) { + if (value == NULL) { + pk_console_usage ("you need to specify a package to update"); + remove = 1; + goto out; + } else { + pk_client_update_package (client, value); + pk_client_wait (); + remove = 2; + } } else if (strcmp (mode, "resolve") == 0) { if (value == NULL) { pk_console_usage ("you need to specify a package name to resolve"); |