Distributed under the LGPL
*/
-#include <iostream>
#include <msp/fs/utils.h>
#include <msp/io/file.h>
#include <msp/io/print.h>
{
const SourcePackage &spkg=*static_cast<const SourcePackage *>(p.get_package());
- announce(spkg.get_name(), "PC", relative(p.get_name(), spkg.get_source()).str());
+ announce(spkg.get_name(), "PC", basename(p.get_path()));
- IO::BufferedFile out(p.get_name(), IO::M_WRITE);
+ IO::BufferedFile out(p.get_path().str(), IO::M_WRITE);
// Prefix is already included in the various paths
//IO::print(out, "prefix=%s\n", pkg.get_prefix());
IO::print(out, "source=%s\n\n", spkg.get_source());