[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen staging] mkdeb: use compression level 0



commit 1d069e45f7c2f6b2982797dd32092b300bacafad
Author:     Wei Liu <wei.liu2@xxxxxxxxxx>
AuthorDate: Fri Sep 7 11:41:31 2018 +0100
Commit:     Wei Liu <wei.liu2@xxxxxxxxxx>
CommitDate: Fri Sep 7 15:06:00 2018 +0100

    mkdeb: use compression level 0
    
    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@xxxxxxxxxx>
    Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 tools/misc/mkdeb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/misc/mkdeb b/tools/misc/mkdeb
index 67b91cc1e5..f4befccc42 100644
--- a/tools/misc/mkdeb
+++ b/tools/misc/mkdeb
@@ -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
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.