X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flib%2Finstalledfile.cpp;h=ef7a7709e6335ba2f2682c5af6b71ed7e4524101;hb=d068c62aac1825a0da5619dc4ca50ce3186bc37a;hp=6e45ad27efc66ac65d8e9643b1763c75a4811a17;hpb=c8e829c219c65ff8e93b6c7b66212ff0876441c5;p=builder.git diff --git a/source/lib/installedfile.cpp b/source/lib/installedfile.cpp index 6e45ad2..ef7a770 100644 --- a/source/lib/installedfile.cpp +++ b/source/lib/installedfile.cpp @@ -42,11 +42,7 @@ FS::Path InstalledFile::generate_target_path(const FS::Path &global_prefix, cons if(mid.empty()) mid = tgt.get_install_location(); - string fn = tgt.get_install_filename(); - if(fn.empty()) - fn = FS::basename(tgt.get_path()); - - return prefix/mid/fn; + return prefix/mid/FS::basename(tgt.get_path()); } void InstalledFile::set_symlink(const FS::Path &l)