PackageManager: Little fix

svn path=/trunk/; revision=14634
This commit is contained in:
Maarten Bosma 2005-04-16 11:48:26 +00:00
parent 887849790a
commit 837c3298c7

View file

@ -22,43 +22,42 @@ int main (int argc, char **argv)
if(argc<2) if(argc<2)
return Help(); return Help();
// install a package // install a package
if (argv[1] == "install") if (!strcmp(argv[1], "install"))
Install(); Install();
// install a package from source // install a package from source
else if (argv[1] == "src-inst") else if (!strcmp(argv[1], "src-inst"))
{ {
wprintf(L"Sorry but I can't do that yet. \n"); wprintf(L"Sorry but I can't do that yet. \n");
} }
// update a package // update a package
else if (argv[1] == "update") else if (!strcmp(argv[1], "update"))
{ {
wprintf(L"Sorry but I can't do that yet. \n"); wprintf(L"Sorry but I can't do that yet. \n");
} }
// update everything // update everything
else if (argv[1] == "dist-upgrade") else if (!strcmp(argv[1], "dist-upgrade"))
{ {
wprintf(L"Sorry but I can't do that yet. \n"); wprintf(L"Sorry but I can't do that yet. \n");
} }
// remove a package // remove a package
else if (argv[1] == "remove") else if (!strcmp(argv[1], "remove"))
{ {
wprintf(L"Sorry but I can't do that yet. \n"); wprintf(L"Sorry but I can't do that yet. \n");
} }
// search for a package // search for a package
else if (argv[1] == "show") else if (!strcmp(argv[1], "show"))
{ {
Show(); Show();
} }
// search for a package // search for a package
else if (argv[1] == "search") else if (!strcmp(argv[1], "search"))
{ {
wprintf(L"Sorry but I can't do that yet. \n"); wprintf(L"Sorry but I can't do that yet. \n");
} }