Skip to content

Commit

Permalink
first try at a fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nephros committed Apr 15, 2023
1 parent 0983d1e commit e2c9525
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bin/patchmanager-daemon/patchmanagerobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1652,9 +1652,12 @@ void PatchManagerObject::doRefreshPatchList()
QString path = toPatch;

for (int i = 0; i < toManglePaths.size(); i++) {
if (path.startsWith(toManglePaths[i])) {
// we deal with either absolute, or "git-style" beginnings:
QString p1path = path.mid(path.indexOf('/', 1));
if (path.startsWith(toManglePaths[i]) || p1path.startsWith(toManglePaths[i]) ) {
qDebug() << Q_FUNC_INFO << "Mangle: Editing path: " << path;
path.replace(toManglePaths[i], mangledPaths[i]);
qDebug() << Q_FUNC_INFO << "Mangle: Edited path: " << path;
} else {
qDebug() << Q_FUNC_INFO << "Mangle: not editing path: " << path;
}
Expand Down

0 comments on commit e2c9525

Please sign in to comment.