[banshee] [solitary] print sizes, and capture gstreamer plugins



commit 09906cddc8f28cf0140c72838e8d05ecb8057e9a
Author: Aaron Bockover <abockover novell com>
Date:   Tue Dec 29 18:08:22 2009 -0500

    [solitary] print sizes, and capture gstreamer plugins

 build/bundle/mkbundle.osx      |    2 +-
 build/bundle/solitary/Entry.cs |    5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/build/bundle/mkbundle.osx b/build/bundle/mkbundle.osx
index 24d2611..48f9e81 100755
--- a/build/bundle/mkbundle.osx
+++ b/build/bundle/mkbundle.osx
@@ -15,6 +15,6 @@ cd solitary
 make
 mono --debug Solitary.exe \
 	--mono-prefix=$BUILD_PREFIX \
-	$BANSHEE_PATH
+	$BANSHEE_PATH \
 	$BUILD_PREFIX/lib/gstreamer-0.10
 
diff --git a/build/bundle/solitary/Entry.cs b/build/bundle/solitary/Entry.cs
index 2fcf67c..07bc359 100644
--- a/build/bundle/solitary/Entry.cs
+++ b/build/bundle/solitary/Entry.cs
@@ -64,13 +64,16 @@ public static class Entry
         
         solitary.LoadBlacklist (blacklist_file);
         
+        long total_size = 0;
         foreach (var path in paths) {
             foreach (var item in solitary.Walk (path)) {
                 foreach (var collect_item in item.Load ()) {
                     solitary.Items.Add (collect_item);
-                    Console.WriteLine (collect_item.File.FullName);
+                    total_size += collect_item.File.Length;
+                    Console.WriteLine ("{0}\t{1}", collect_item.File.Length, collect_item.File.FullName);
                 }
             }
         }
+        Console.WriteLine (total_size);
     }
 }



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