From 22dee320517b79c4e70764ab82cb55ae9debdf21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Kandemir?= Date: Tue, 12 Feb 2008 22:25:24 +0000 Subject: [PATCH] prepend _ to package name, if it starts with digit. set new bus destination after postinstalling comar --- comar-dbus.patch | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/comar-dbus.patch b/comar-dbus.patch index 7594c5e3..36282a0f 100644 --- a/comar-dbus.patch +++ b/comar-dbus.patch @@ -2,7 +2,7 @@ Index: pisi/comariface.py =================================================================== --- pisi/comariface.py (revision 17117) +++ pisi/comariface.py (working copy) -@@ -25,117 +25,146 @@ +@@ -25,117 +25,151 @@ pass try: @@ -28,6 +28,8 @@ Index: pisi/comariface.py + for char in package: + if not is_char_valid(char): + object = object.replace(char, '_') ++ if object[0].isdigit(): ++ object = '_%s' % object + return object + +def get_iface(package="", model=""): @@ -179,6 +181,9 @@ Index: pisi/comariface.py + if not (exception._dbus_error_name.startswith("tr.org.pardus.comar") and + exception._dbus_error_name.split('tr.org.pardus.comar.')[1] == 'python.missing'): + raise Error, _("Script error: %s") % exception ++ ++ if package_name == 'comar': ++ pisi.api.set_comar_destination('tr.org.pardus.comar.new') def pre_remove(package_name, metapath, filepath): """Do package's pre removal operations"""