]> xenbits.xensource.com Git - people/iwj/xen.git/commitdiff
mkdeb: use compression level 0
authorWei Liu <wei.liu2@citrix.com>
Fri, 7 Sep 2018 10:41:31 +0000 (11:41 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 7 Sep 2018 14:06:00 +0000 (15:06 +0100)
This requires calling dpkg-deb directly and pass it -z0.

It reduces the time to run the mkdeb script from 14 seconds to 3
seconds on my workstation with SSD, from 87s to 15s on a machine
with HDD. The deb file grows from 49M to 58M.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/misc/mkdeb

index 67b91cc1e54e0be386c509c6847eacdbacdcdc4e..f4befccc42610ea49f13660be2293783de45508b 100644 (file)
@@ -59,7 +59,7 @@ find deb/etc -type f -printf /etc/%P\\n >deb/DEBIAN/conffiles
 
 # Package it up
 chown -R root:root deb
-dpkg --build deb xen-upstream-$version.deb
+dpkg-deb --build -z0 deb xen-upstream-$version.deb
 
 # Tidy up after ourselves
 rm -rf deb