From 80cf936c934a9d2c98a30f423f7fdc4bbf117358 Mon Sep 17 00:00:00 2001 From: John Arbuckle Date: Thu, 26 Oct 2017 20:53:41 -0400 Subject: [PATCH] Fix bug with adding symbolic links to the wrong object --- src/Dependency.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Dependency.cpp b/src/Dependency.cpp index ec37863..1b33f3a 100644 --- a/src/Dependency.cpp +++ b/src/Dependency.cpp @@ -193,15 +193,16 @@ std::string Dependency::getInnerPath() void Dependency::addSymlink(std::string s){ symlinks.push_back(s); } -// comapres the given Dependency with this one. If both refer to the same file, +// Compares the given Dependency with this one. If both refer to the same file, // it returns true and merges both entries into one. bool Dependency::mergeIfSameAs(Dependency& dep2) { if(dep2.getOriginalFileName().compare(filename) == 0) { - const int samount = dep2.getSymlinkAmount(); - for(int n=0; n