2
This program is free software; you can redistribute it and/or modify
3
it under the terms of the GNU General Public License as published by
4
the Free Software Foundation; either version 2 of the License, or
5
(at your option) any later version.
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
GNU General Public License for more details.
12
You should have received a copy of the GNU General Public License along
13
with this program; if not, write to the Free Software Foundation, Inc.,
14
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
29
std::vector<std::string> symlinks;
34
Dependency(std::string path);
38
std::string getOriginalFileName() const{ return filename; }
39
std::string getOriginalPath() const{ return prefix+filename; }
40
std::string getInstallPath();
41
std::string getInnerPath();
43
void addSymlink(std::string s);
44
int getSymlinkAmount() const{ return symlinks.size(); }
46
std::string getSymlink(const int i) const{ return symlinks[i]; }
47
std::string getPrefix() const{ return prefix; }
50
void fixFileThatDependsOnMe(std::string file);
52
// comapres the given Dependency with this one. If both refer to the same file,
53
// it returns true and merges both entries into one.
54
bool mergeIfSameAs(Dependency& dep2);
b'\\ No newline at end of file'