]> git.tdb.fi Git - builder.git/blobdiff - source/installedfile.cpp
Recognize PowerPC architecture
[builder.git] / source / installedfile.cpp
index 35742bb0daf8e383f90418f621b438c14eb9e223..723d776415df33e77c8b1fe53287746bf1dbeeab 100644 (file)
@@ -36,6 +36,9 @@ FS::Path InstalledFile::generate_target_path(const FS::Path &prefix, const FileT
 
 void InstalledFile::set_symlink(const FS::Path &l)
 {
+       FS::Path al = FS::dirname(path)/l;
+       if(al==path)
+               throw invalid_argument("InstalledFile::set_symlink");
        link = FS::dirname(path)/l;
        builder.get_vfs().register_path(link, this);
 }