From 2979370041ce9ba09194e9acce318054b833cf9f Mon Sep 17 00:00:00 2001 From: Arttu Tarkiainen Date: Tue, 10 Aug 2021 14:03:13 +0300 Subject: 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 --- src/libs/ifwtools/repositorygen.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libs/ifwtools') 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(); } } } -- cgit v1.2.3