diff options
author | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2021-08-10 14:03:13 +0300 |
---|---|---|
committer | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2021-08-16 12:48:51 +0300 |
commit | 2979370041ce9ba09194e9acce318054b833cf9f (patch) | |
tree | 77446ce9358febea5131ff2a18c73cdc350ef59f /src/libs/ifwtools/repositorygen.cpp | |
parent | 284fb7d87bc1f017c3f04e703749b367b24e505f (diff) |
Repogen: Fix updating of repository from a partial package set directory
When collecting information about the paths to be compressed into
unified metadata, if the package directory used to update repository was
missing replacements for two or more components, it would reveal an
issue with the traversing of the existing repository directory.
Fix by adding the missing "cd up" after entering a component entry
directory. Add new test case.
Task-number: QTIFW-2287
Change-Id: Ica1228968398b6e987bdf89336f74f53fcd35d27
Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'src/libs/ifwtools/repositorygen.cpp')
-rw-r--r-- | src/libs/ifwtools/repositorygen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/ifwtools/repositorygen.cpp b/src/libs/ifwtools/repositorygen.cpp index fbcf7b9f3..cf99580fa 100644 --- a/src/libs/ifwtools/repositorygen.cpp +++ b/src/libs/ifwtools/repositorygen.cpp @@ -764,6 +764,7 @@ QStringList QInstallerTools::unifyMetadata(const QString &repoDir, const QString dir.cd(existingRepoEntry); const QString absPath = dir.absolutePath(); absPaths.append(absPath); + dir.cdUp(); } } } |