[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kpackage] /: Fix minor EBN issues
From:       Yuri Chornoivan <null () kde ! org>
Date:       2018-09-11 18:03:41
Message-ID: E1fzn0n-0004Vq-BX () code ! kde ! org
[Download RAW message or body]

Git commit 20d254e5afe4a88c180d4050c4e1bbb0c24f795d by Yuri Chornoivan.
Committed on 11/09/2018 at 18:03.
Pushed by yurchor into branch 'master'.

Fix minor EBN issues

M  +1    -1    KF5PackageMacros.cmake
M  +1    -1    src/kpackage/package.cpp
M  +1    -1    src/kpackage/package.h
M  +1    -1    src/kpackage/packageloader.cpp
M  +2    -2    src/kpackage/private/package_p.h
M  +1    -1    src/kpackage/private/packagejobthread.cpp
M  +1    -1    src/kpackage/private/packagejobthread_p.h

https://commits.kde.org/kpackage/20d254e5afe4a88c180d4050c4e1bbb0c24f795d

diff --git a/KF5PackageMacros.cmake b/KF5PackageMacros.cmake
index c3e7cb8..761eab3 100644
--- a/KF5PackageMacros.cmake
+++ b/KF5PackageMacros.cmake
@@ -159,7 +159,7 @@ function(kpackage_install_bundled_package dir component)
                       COMMAND ${CMAKE_COMMAND} -DINSTALL_DIR=${install_dir} \
-DROOT=${root} -DCOMPONENT=${component} -DDIRECTORY=${DIRECTORY} -D \
OUTPUTFILE=${OUTPUTFILE} -P ${kpackagedir}/qrc.cmake  DEPENDS \
                ${component}-${root}-metadata-json)
     set(GENERATED_RCC_CONTENTS \
                "${CMAKE_CURRENT_BINARY_DIR}/${component}-contents.rcc")
-    # add_custom_target depends on ALL target so qrc is run everytime
+    # add_custom_target depends on ALL target so qrc is run every time
     # it doesn't have OUTPUT property so it's considered out-of-date every build
     add_custom_target(${component}-${root}-contents-rcc ALL
                       COMMENT "Generating ${component}-contents.rcc"
diff --git a/src/kpackage/package.cpp b/src/kpackage/package.cpp
index 6cfe82c..cb2bf8a 100644
--- a/src/kpackage/package.cpp
+++ b/src/kpackage/package.cpp
@@ -367,7 +367,7 @@ QString Package::filePath(const QByteArray &fileType, const \
QString &filename) c  //We are an installed package
         if (d->tempRoot.isEmpty()) {
             prefix = fileType == "metadata" ? d->path : (d->path + contentsPrefix);
-        //We are a compressed package temporarly uncompressed in /tmp
+        //We are a compressed package temporarily uncompressed in /tmp
         } else {
             prefix = fileType == "metadata" ? d->tempRoot : (d->tempRoot + \
contentsPrefix);  }
diff --git a/src/kpackage/package.h b/src/kpackage/package.h
index af30d30..cd89af0 100644
--- a/src/kpackage/package.h
+++ b/src/kpackage/package.h
@@ -91,7 +91,7 @@ public:
         PackageOpenError, /**< Can't open the package file for reading */
         MetadataFileMissingError, /**< The package doesn't have a metadata.desktop \
                file */
         PluginNameMissingError, /**< The metadata.desktop file doesn't specify a \
                plugin name */
-        PluginNameInvalidError, /**< The plugin name contains charaters different \
from letters, digits, dots and underscores */ +        PluginNameInvalidError, /**< \
The plugin name contains characters different from letters, digits, dots and \
                underscores */
         UpdatePackageTypeMismatchError, /**< A package with this plugin name was \
                already installed, but has a different type in the metadata.desktop \
                file */
         OldVersionRemovalError, /**< Failed to remove the old version of the package \
                during an upgrade */
         NewerVersionAlreadyInstalledError, /**< We tried to update, but the same \
                version or a newer one is already installed */
diff --git a/src/kpackage/packageloader.cpp b/src/kpackage/packageloader.cpp
index 33d763b..aa30484 100644
--- a/src/kpackage/packageloader.cpp
+++ b/src/kpackage/packageloader.cpp
@@ -51,7 +51,7 @@ QSet<QString> PackageLoaderPrivate::s_customCategories;
 
 QSet<QString> PackageLoaderPrivate::knownCategories()
 {
-    // this is to trick the tranlsation tools into making the correct
+    // this is to trick the translation tools into making the correct
     // strings for translation
     QSet<QString> categories = s_customCategories;
     categories << QStringLiteral(I18N_NOOP("Accessibility")).toLower()
diff --git a/src/kpackage/private/package_p.h b/src/kpackage/private/package_p.h
index c151cc4..5b4d0a7 100644
--- a/src/kpackage/private/package_p.h
+++ b/src/kpackage/private/package_p.h
@@ -35,11 +35,11 @@ namespace KPackage
 //leaving the PackageJob with a dangling pointer
 //we need some way to invalidate the Package* pointer if it gets deleted
 
-//we can't just take a copy in the packagejob as we need to detatch and update the \
*original* KPackage object +//we can't just take a copy in the packagejob as we need \
to detach and update the *original* KPackage object  //without changing anything else \
which happened to share the same KPackage::d  
 //TODO KF6 - make KPackage::install()'s KJob return a new Package copy rather than \
                modify
-//an existing opbject.
+//an existing object.
 class PackageDeletionNotifier : public QObject
 {
 Q_OBJECT
diff --git a/src/kpackage/private/packagejobthread.cpp \
b/src/kpackage/private/packagejobthread.cpp index a2cc2b1..6ad6c8d 100644
--- a/src/kpackage/private/packagejobthread.cpp
+++ b/src/kpackage/private/packagejobthread.cpp
@@ -347,7 +347,7 @@ bool PackageJobThread::installPackage(const QString &src, const \
                QString &dest, O
             KPluginMetaData oldMeta(targetName + \
QLatin1String("/metadata.desktop"));  
             if (oldMeta.serviceTypes() != meta.serviceTypes()) {
-                d->errorMessage = i18n("The new package has a different type from \
the old version already installed.", meta.version(), meta.pluginId(), \
oldMeta.version()); +                d->errorMessage = i18n("The new package has a \
                different type from the old version already installed.");
                 d->errorCode = Package::JobError::UpdatePackageTypeMismatchError;
             } else if (isVersionNewer(oldMeta.version(), meta.version())) {
                 const bool ok = uninstallPackage(targetName);
diff --git a/src/kpackage/private/packagejobthread_p.h \
b/src/kpackage/private/packagejobthread_p.h index d6010f8..61346a9 100644
--- a/src/kpackage/private/packagejobthread_p.h
+++ b/src/kpackage/private/packagejobthread_p.h
@@ -65,7 +65,7 @@ Q_SIGNALS:
     void installPathChanged(const QString &installPath);
 
 private:
-    //OperationType says wether we want to install, update or any
+    //OperationType says whether we want to install, update or any
     //new similar operation it will be expanded
     bool installDependency(const QUrl &src);
     bool installPackage(const QString &src, const QString &dest, OperationType \
operation);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic