PackageManager: Little fix
[reactos.git] / rosapps / packmgr / cmd-line / main.c
index 07e9f0e..07cb911 100644 (file)
@@ -22,43 +22,42 @@ int main (int argc, char **argv)
        if(argc<2)\r
                return Help();\r
 \r
-\r
        // install a package\r
-       if (argv[1] == "install"\r
+       if (!strcmp(argv[1], "install")\r
                Install();\r
 \r
        // install a package from source\r
-       else if (argv[1] == "src-inst")\r
+       else if (!strcmp(argv[1], "src-inst"))\r
        {\r
                wprintf(L"Sorry but I can't do that yet. \n");\r
        }\r
 \r
        // update a package\r
-       else if (argv[1] == "update")\r
+       else if (!strcmp(argv[1], "update"))\r
        {\r
                wprintf(L"Sorry but I can't do that yet. \n");\r
        }\r
 \r
        // update everything\r
-       else if (argv[1] == "dist-upgrade")\r
+       else if (!strcmp(argv[1], "dist-upgrade"))\r
        {\r
                wprintf(L"Sorry but I can't do that yet. \n");\r
        }\r
 \r
        // remove a package\r
-       else if (argv[1] == "remove")\r
+       else if (!strcmp(argv[1], "remove"))\r
        {\r
                wprintf(L"Sorry but I can't do that yet. \n");\r
        }\r
 \r
        // search for a package\r
-       else if (argv[1] == "show")\r
+       else if (!strcmp(argv[1], "show"))\r
        {\r
                Show();\r
        }\r
 \r
        // search for a package\r
-       else if (argv[1] == "search")\r
+       else if (!strcmp(argv[1], "search"))\r
        {\r
                wprintf(L"Sorry but I can't do that yet. \n");\r
        }\r