X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Funlink.cpp;h=2860357475e455d9e650d28d6a163045c995be3b;hb=654de39b62a9a58fd8e1b5a557361d628345788b;hp=4bb9f667a5ded154876364b229c63c53854043ad;hpb=445edbc3c42bbd7880cc414cf153ddfd196bfc1c;p=builder.git diff --git a/source/unlink.cpp b/source/unlink.cpp index 4bb9f66..2860357 100644 --- a/source/unlink.cpp +++ b/source/unlink.cpp @@ -1,14 +1,21 @@ +/* $Id$ + +This file is part of builder +Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #include -#include "package.h" +#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()); }