From dd2fbbd6434a0ba209ca82f846840fe81338b17b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Kandemir?= Date: Wed, 16 Jan 2008 13:55:08 +0000 Subject: [PATCH] if from{Release,Version} is None, set them to empty string --- comar-dbus.patch | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/comar-dbus.patch b/comar-dbus.patch index dca4dff4..03ee8be6 100644 --- a/comar-dbus.patch +++ b/comar-dbus.patch @@ -1,8 +1,8 @@ Index: comariface.py =================================================================== ---- comariface.py (revision 16677) +--- comariface.py (revision 16684) +++ comariface.py (working copy) -@@ -25,91 +25,87 @@ +@@ -25,117 +25,126 @@ pass try: @@ -142,10 +142,17 @@ Index: comariface.py + raise Error, _("Script error: %s") % exception if self_post: - args = { -@@ -119,23 +115,37 @@ - "toRelease": toRelease, - } +- args = { +- "fromVersion": fromVersion, +- "fromRelease": fromRelease, +- "toVersion": toVersion, +- "toRelease": toRelease, +- } ++ if not fromVersion: ++ fromVersion = "" ++ if not fromRelease ++ fromRelease = "" ++ ctx.ui.debug(_("Running package's post install script")) - com.call_package("System.Package.postInstall", package_name, args) - wait_for_result(com, package_name)