summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorEric NOULARD <eric.noulard@gmail.com>2010-07-28 15:03:14 (GMT)
committerEric NOULARD <eric.noulard@gmail.com>2010-07-28 15:03:14 (GMT)
commit5495a6d9756099d5eddfc99c938ab6ba9bd95113 (patch)
treeaac003a58ce8056d57184978cdd15f2851c1de5d /Source/CPack
parent1d986234435afb113cc07fefe0d5002b198d0534 (diff)
downloadCMake-5495a6d9756099d5eddfc99c938ab6ba9bd95113.zip
CMake-5495a6d9756099d5eddfc99c938ab6ba9bd95113.tar.gz
CMake-5495a6d9756099d5eddfc99c938ab6ba9bd95113.tar.bz2
CPackDEB: merge wrong installed size patch. see bugs 10296 (and 10292)
Diffstat (limited to 'Source/CPack')
-rw-r--r--Source/CPack/cmCPackDebGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx
index cee24ef..5c09d31 100644
--- a/Source/CPack/cmCPackDebGenerator.cxx
+++ b/Source/CPack/cmCPackDebGenerator.cxx
@@ -121,7 +121,7 @@ int cmCPackDebGenerator::CompressFiles(const char* outFileName,
totalSize += cmSystemTools::FileLength(fileIt->c_str());
}
}
- out << "Installed-Size: " << totalSize << "\n";
+ out << "Installed-Size: " << (totalSize + 1023) / 1024 << "\n";
out << "Maintainer: " << maintainer << "\n";
out << "Description: " << desc << "\n";
out << std::endl;