CPackDeb: Handle dirs for CONTROL_EXTRA correctly when packaging components

Copy the files specified in CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA to the right
directory when packaging components. This fixes #12061.
Signed-off-by: Eric NOULARD <eric.noulard@gmail.com>
This commit is contained in:
Martin Konrad 2011-04-09 09:30:19 +02:00 committed by Eric NOULARD
parent 4e9506ac31
commit b22fcfb0c5

View File

@ -491,7 +491,7 @@ int cmCPackDebGenerator::createDeb()
{ {
std::string filenamename = std::string filenamename =
cmsys::SystemTools::GetFilenameName(i->c_str()); cmsys::SystemTools::GetFilenameName(i->c_str());
std::string localcopy = toplevel; std::string localcopy = this->GetOption("WDIR");
localcopy += "/"; localcopy += "/";
localcopy += filenamename; localcopy += filenamename;
// if we can copy the file, it means it does exist, let's add it: // if we can copy the file, it means it does exist, let's add it: