X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Funlink.cpp;h=90ccd4cc334b6fd2b67fe38c0373744010319c01;hb=a2adbd9c0a8d7a7567848c4c6bdbf0de6ba32bb1;hp=4bb9f667a5ded154876364b229c63c53854043ad;hpb=445edbc3c42bbd7880cc414cf153ddfd196bfc1c;p=builder.git diff --git a/source/unlink.cpp b/source/unlink.cpp index 4bb9f66..90ccd4c 100644 --- a/source/unlink.cpp +++ b/source/unlink.cpp @@ -1,14 +1,21 @@ -#include -#include "package.h" +/* $Id$ + +This file is part of builder +Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + +#include +#include "sourcepackage.h" #include "target.h" #include "unlink.h" Unlink::Unlink(Builder &b, const Target &t): Action(b) { - const Package &pkg=*t.get_package(); + const SourcePackage &spkg=*static_cast(t.get_package()); - announce(pkg.get_name(), "RM", relative(t.get_name(), pkg.get_source()).str()); + announce(spkg.get_name(), "RM", relative(t.get_name(), spkg.get_source()).str()); unlink(t.get_name().c_str()); }