unity/scripts/live-respin-size-diff.py | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit c6c8b95eadb4cf48445e0eccc59c2000bbdfe334
Author: Jeroen van Meeuwen (Fedora Unity) <kanarip(a)fedoraunity.org>
Date: Sun Mar 8 16:58:52 2009 +0100
Also list the removed packages
diff --git a/unity/scripts/live-respin-size-diff.py
b/unity/scripts/live-respin-size-diff.py
index 9a5e6c0..4128576 100755
--- a/unity/scripts/live-respin-size-diff.py
+++ b/unity/scripts/live-respin-size-diff.py
@@ -26,13 +26,19 @@ for (pkg, size) in newpkgs.items():
if not oldpkgs.has_key(pkg):
print "new package %s: %s" %(pkg, size)
continue
+
oldsize = oldpkgs[pkg]
if oldsize == "0":
continue
+
deltapct = (int(size) - int(oldsize)) / float(oldsize)
if deltapct > THRESH:
print "%s grew by %.2f%% (%s->%s)" %(pkg, deltapct*100, oldsize,
size)
+for (pkg, size) in oldpkgs.items():
+ if not newpkgs.has_key(pkg):
+ print "removed package %s: %s" %(pkg, size)
+
print "Old Live Re-Spin at %s has %d packages" %(old,len(oldpkgs),)
print "New Live Re-Spin at %s has %d packages" %(new,len(newpkgs),)