Prepping for Mer support
authorepage <eopage@byu.net>
Fri, 12 Jun 2009 00:34:41 +0000 (00:34 +0000)
committerepage <eopage@byu.net>
Fri, 12 Jun 2009 00:34:41 +0000 (00:34 +0000)
git-svn-id: file:///svnroot/gc-dialer/trunk@358 c39d3808-3fe2-4d86-a59f-b7f623ee9f21

src/constants.py
src/gc_views.py
support/builddeb.py

index 9d145db..775ff37 100644 (file)
@@ -1,4 +1,4 @@
 __pretty_app_name__ = "DialCentral"
 __app_name__ = "dialcentral"
-__version__ = "1.0.0"
+__version__ = "1.0.1"
 __app_magic__ = 0xdeadbeef
index 577b3bb..e428c3f 100644 (file)
@@ -367,6 +367,10 @@ class PhoneTypeSelector(object):
 
 class SmsEntryDialog(object):
 
+       """
+       @todo Add multi-SMS messages like GoogleVoice
+       """
+
        MAX_CHAR = 160
 
        def __init__(self, widgetTree):
index aeece00..f373c47 100755 (executable)
@@ -122,7 +122,7 @@ def unflatten_files(files):
        return d
 
 
-if __name__ == "__main__":
+def build_package(distribution):
        try:
                os.chdir(os.path.dirname(sys.argv[0]))
        except:
@@ -133,8 +133,11 @@ if __name__ == "__main__":
        p.author = __author__
        p.mail = __email__
        p.license = "lgpl"
-       p.depends = "python2.5, python2.5-gtk2, python2.5-xml"
-       p.section = "user/communication"
+       p.depends = {
+               "diablo": "python2.5, python2.5-gtk2, python2.5-xml",
+               "mer": "python2.6, python-gtk2, python-xml, python-glade2",
+       }
+       p.section = "user/utilities"
        p.arch = "all"
        p.urgency = "low"
        p.distribution = "chinook diablo fremantle"
@@ -161,3 +164,19 @@ if __name__ == "__main__":
                __version__, __build__, changelog=__changelog__,
                tar=True, dsc=True, changes=True, build=False, src=True
        )
+
+
+if __name__ == "__main__":
+       if len(sys.argv) > 1:
+               try:
+                       import optparse
+               except ImportError:
+                       optparse = None
+
+               if optparse is not None:
+                       parser = optparse.OptionParser()
+                       (commandOptions, commandArgs) = parser.parse_args()
+       else:
+               commandArgs = None
+               commandArgs = ["diablo"]
+       build_package()