Fix logging
[ussd-widget] / ussd-widget / build_ussd-widget.py
index 7df6871..11af6bf 100644 (file)
@@ -20,37 +20,42 @@ if __name__ == "__main__":
     print
 
     p=py2deb.Py2deb("ussd-widget")
-    p.description="Widget, that executes USSD query and displays response text\nThe main purpose is viewing your balance. In Russia all operators provide balace information via USSD queries andmost part of contracts are prepaid. Ability to see your balance on desktop can be useful in such case.\nAnyway, you can configure widget to any other USSD query."
+    p.description="Widget, that executes USSD query and displays response text\nThe main purpose is viewing your balance. In Russia all operators provide balace information via USSD queries and most part of contracts are prepaid. Ability to see your balance on desktop can be useful in such case.\nAnyway, you can configure widget to any other USSD query."
     p.author="Alexey Guseynov"
     p.mail="kibergus@gmail.com"
-    p.depends = "python2.5, ussd-common, python-hildondesktop (>=0.1.0-1maemo2), hildon-desktop-python-loader (>=0.1.0-1maemo2), python-gtk2, python-gobject, python-hildon, python-cairo"
+    p.depends = "python2.5, ussd4all (>=0.0.0), python-hildondesktop (>=0.1.0-1maemo2), hildon-desktop-python-loader (>=0.1.0-1maemo2), python-gtk2, python-gobject, python-hildon, python-cairo, python-dbus"
     p.section="user/desktop"
     p.icon = "./ussd-widget.png"
     p.arch="all"                #should be all for python, any for all arch
     p.urgency="low"             #not used in maemo onl for deb os
     p.distribution="fremantle"
     p.repository="extras-devel"
-    p.xsbc_bugtracker="http://bugs.maemo.org"
-#    p.postinstall="""#!/bin/sh
-#""" #Set here your post install script
-
-    version = "0.0.3"
+    p.xsbc_bugtracker="https://garage.maemo.org/tracker/?group_id=1219"
+    p.postinstall="""#!/bin/sh
+touch /var/log/ussd-widget.log
+chmod 666 /var/log/ussd-widget.log
+"""
+    p.postrm="""#!/bin/sh
+rm /var/log/ussd-widget.log
+"""
+    version = "0.1.14"
     build = "0" 
-    changeloginformation = "Perl regexp from irmin. Code adoped for threads." 
+    changeloginformation = "Writable log. Create log file on installation." 
    
-    dir_name = "src"     
+    dir_name = "src"   
 
     #Thanks to DareTheHair from talk.maemo.org for this snippet that recursively builds the file list 
     for root, dirs, files in os.walk(dir_name):
         real_dir = root[len(dir_name):]
         fake_file = []
         for f in files:
-            fake_file.append(root + os.sep + f + "|" + f);
+            if f.find(".svn") < 0 and root.find(".svn") < 0:
+                fake_file.append(root + os.sep + f + "|" + f);
         if len(fake_file) > 0:
             p[real_dir] = fake_file
 
     print p
     r = p.generate(version,build,changelog=changeloginformation,tar=True,dsc=True,changes=True,build=False,src=True)
     fake_file.append(root + os.sep + f + "|" + f)
-    if len(fake_file) > 0:
-        p[real_dir] = fake_file
+#    if len(fake_file) > 0:
+#        p[real_dir] = fake_file