ussd4all: New version 0.0.7-1
[ussd-widget] / ussd-widget / build_ussd-widget.py
index 5b6ce3d..11af6bf 100644 (file)
@@ -23,7 +23,7 @@ if __name__ == "__main__":
     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 (>=0.0.8), 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
@@ -31,12 +31,16 @@ if __name__ == "__main__":
     p.distribution="fremantle"
     p.repository="extras-devel"
     p.xsbc_bugtracker="https://garage.maemo.org/tracker/?group_id=1219"
-#    p.postinstall="""#!/bin/sh
-#""" #Set here your post install script
-
-    version = "0.1.6"
+    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 = "SMS listener. Changed parser sintax." 
+    changeloginformation = "Writable log. Create log file on installation." 
    
     dir_name = "src"   
 
@@ -45,12 +49,13 @@ if __name__ == "__main__":
         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