Hi again.

Trying Thawan's patch for Debian CPack generator, I noticed that the
field "Installed-Size" in the control file of the output deb packages
reports the size in bytes, while Debian consider that size in kilobytes,
so a program of 200KiB looks like 200MiB.

Attached to this email the patch for the source tree of CMake version
2.8.0 download from the website.


Bye
Droscy
--- old/Source/CPack/cmCPackDebGenerator.cxx	2009-11-13 19:32:58.000000000 +0100
+++ new/Source/CPack/cmCPackDebGenerator.cxx	2010-02-15 13:25:36.587444759 +0100
@@ -121,7 +121,7 @@
         totalSize += cmSystemTools::FileLength(fileIt->c_str());
         }
     }
-    out << "Installed-Size: " << totalSize << "\n";
+    out << "Installed-Size: " << totalSize / 1024 << "\n";
     out << "Maintainer: " << maintainer << "\n";
     out << "Description: " << desc << "\n";
     out << std::endl;
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to