Attempting to fix a bug in code I stole from python-telepathy in which they deviated...
[theonering] / support / builddeb.py
index 589e9b3..957767e 100755 (executable)
@@ -76,17 +76,24 @@ def build_package(distribution):
        p.author = __author__
        p.mail = __email__
        p.license = "lgpl"
+       p.section = {
+               "debian": "comm",
+               "diablo": "user/network",
+               "fremantle": "user/network",
+               "mer": "user/network",
+       }[distribution]
        p.depends = ", ".join([
                "python (>= 2.5) | python2.5",
                "python-dbus | python2.5-dbus",
                "python-gobject | python2.5-gobject",
                "python-telepathy | python2.5-telepathy",
        ])
-       p.section = {
-               "debian": "comm",
-               "diablo": "user/network",
-               "fremantle": "user/network",
-               "mer": "user/network",
+       p.depends += {
+               "debian": "",
+               "chinook": "",
+               "diablo": ", account-plugin-haze",
+               "fremantle": ", account-plugin-haze",
+               "mer": "",
        }[distribution]
        p.arch = "all"
        p.urgency = "low"
@@ -115,9 +122,7 @@ def build_package(distribution):
                p["/usr/share/osso-rtcom"] = ["theonering.profile.%s|theonering.profile"% distribution]
        p["/usr/lib/telepathy"] = ["telepathy-theonering"]
        p["/usr/share/telepathy/managers"] = ["theonering.manager"]
-       p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-theonering.png|theonering.png"]
-       p["/usr/share/icons/hicolor/64x64/hildon"] = ["64x64-theonering.png|theonering.png"]
-       p["/usr/share/icons/hicolor/scalable/hildon"] = ["scale-theonering.png|theonering.png"]
+       p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-theonering.png|im-theonering.png"]
 
        if distribution == "debian":
                print p