missing comparisons

svn path=/trunk/KDE/kdebase/runtime/; revision=1171796
This commit is contained in:
Aaron J. Seigo 2010-09-05 07:44:38 +00:00
parent 04416aed33
commit 87d152ec92

View File

@ -206,35 +206,35 @@ int main(int argc, char **argv)
} }
} }
if (type.compare(i18nc("package type", "plasmoid"), Qt::CaseInsensitive) || if (type.compare(i18nc("package type", "plasmoid"), Qt::CaseInsensitive) == 0 ||
type.compare("plasmoid", Qt::CaseInsensitive) == 0) { type.compare("plasmoid", Qt::CaseInsensitive) == 0) {
packageRoot = "plasma/plasmoids/"; packageRoot = "plasma/plasmoids/";
servicePrefix = "plasma-applet-"; servicePrefix = "plasma-applet-";
pluginTypes << "Plasma/Applet"; pluginTypes << "Plasma/Applet";
pluginTypes << "Plasma/PopupApplet"; pluginTypes << "Plasma/PopupApplet";
pluginTypes << "Plasma/Containment"; pluginTypes << "Plasma/Containment";
} else if (type.compare(i18nc("package type", "theme"), Qt::CaseInsensitive) || } else if (type.compare(i18nc("package type", "theme"), Qt::CaseInsensitive) == 0 ||
type.compare("theme", Qt::CaseInsensitive) == 0) { type.compare("theme", Qt::CaseInsensitive) == 0) {
packageRoot = "desktoptheme/"; packageRoot = "desktoptheme/";
} else if (type.compare(i18nc("package type", "wallpaper"), Qt::CaseInsensitive) || } else if (type.compare(i18nc("package type", "wallpaper"), Qt::CaseInsensitive) == 0 ||
type.compare("wallpaper", Qt::CaseInsensitive) == 0) { type.compare("wallpaper", Qt::CaseInsensitive) == 0) {
packageRoot = "wallpapers/"; packageRoot = "wallpapers/";
} else if (type.compare(i18nc("package type", "dataengine"), Qt::CaseInsensitive) || } else if (type.compare(i18nc("package type", "dataengine"), Qt::CaseInsensitive) == 0 ||
type.compare("dataengine", Qt::CaseInsensitive) == 0) { type.compare("dataengine", Qt::CaseInsensitive) == 0) {
packageRoot = "plasma/dataengines/"; packageRoot = "plasma/dataengines/";
servicePrefix = "plasma-dataengine-"; servicePrefix = "plasma-dataengine-";
pluginTypes << "Plasma/DataEngine"; pluginTypes << "Plasma/DataEngine";
} else if (type.compare(i18nc("package type", "runner"), Qt::CaseInsensitive) || } else if (type.compare(i18nc("package type", "runner"), Qt::CaseInsensitive) == 0 ||
type.compare("runner", Qt::CaseInsensitive) == 0) { type.compare("runner", Qt::CaseInsensitive) == 0) {
packageRoot = "plasma/runners/"; packageRoot = "plasma/runners/";
servicePrefix = "plasma-runner-"; servicePrefix = "plasma-runner-";
pluginTypes << "Plasma/Runner"; pluginTypes << "Plasma/Runner";
} else if (type.compare(i18nc("package type", "wallpaperplugin"), Qt::CaseInsensitive) || } else if (type.compare(i18nc("package type", "wallpaperplugin"), Qt::CaseInsensitive) == 0 ||
type.compare("wallpaperplugin", Qt::CaseInsensitive) == 0) { type.compare("wallpaperplugin", Qt::CaseInsensitive) == 0) {
packageRoot = "plasma/wallpapers/"; packageRoot = "plasma/wallpapers/";
servicePrefix = "plasma-wallpaper-"; servicePrefix = "plasma-wallpaper-";
pluginTypes << "Plasma/Wallpaper"; pluginTypes << "Plasma/Wallpaper";
} else if (type.compare(i18nc("package type", "layout-template"), Qt::CaseInsensitive) || } else if (type.compare(i18nc("package type", "layout-template"), Qt::CaseInsensitive) == 0 ||
type.compare("layout-template", Qt::CaseInsensitive) == 0) { type.compare("layout-template", Qt::CaseInsensitive) == 0) {
packageRoot = "plasma/layout-templates/"; packageRoot = "plasma/layout-templates/";
servicePrefix = "plasma-layout-"; servicePrefix = "plasma-layout-";
@ -259,6 +259,7 @@ int main(int argc, char **argv)
packageRoot = installer->defaultPackageRoot(); packageRoot = installer->defaultPackageRoot();
pluginTypes << installer->type(); pluginTypes << installer->type();
kDebug() << "we have: " << packageRoot << pluginTypes;
} }
if (args->isSet("list")) { if (args->isSet("list")) {