Fix logging
[ussd-widget] / ussd-widget / build_ussd-widget.py
index a0cc864..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.11), 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.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.8"
+    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 = "Now partially can be configured via DBus." 
+    changeloginformation = "Writable log. Create log file on installation." 
    
     dir_name = "src"