Blob Blame History Raw
commit 328202d5a5ecffe30acb9c670cd25faeb6ec944d
Author: Richard Hughes <richard@hughsie.com>
Date:   Wed Jul 30 14:14:35 2008 +0100

    bugfix: properly match local files correctly so we don't try to resolve them

diff --git a/client/pk-console.c b/client/pk-console.c
index 5824a3d..9737687 100644
--- a/client/pk-console.c
+++ b/client/pk-console.c
@@ -580,7 +580,7 @@ pk_console_install_stuff (PkClient *client, gchar **packages, GError **error)
 	length = g_strv_length (packages);
 	for (i=2; i<length; i++) {
 		/* are we a local file */
-		is_local = g_file_test (packages[i], G_FILE_TEST_EXISTS & G_FILE_TEST_IS_REGULAR);
+		is_local = g_file_test (packages[i], G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR);
 		if (is_local) {
 			g_ptr_array_add (array_files, g_strdup (packages[i]));
 		} else {