Hello community, here is the log from the commit of package ivman checked in at Thu Nov 16 14:07:04 CET 2006. -------- --- ivman/ivman.changes 2006-11-16 11:09:09.000000000 +0100 +++ /mounts/work_src_done/STABLE/ivman/ivman.changes 2006-11-16 14:04:22.000000000 +0100 @@ -1,0 +2,6 @@ +Thu Nov 16 14:01:37 CET 2006 - lnussel@suse.de + +- fix halmount exit code handling. it was sometimes printed rather + than used as exit code (#221002) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ivman.spec ++++++ --- /var/tmp/diff_new_pack.mRbFns/_old 2006-11-16 14:06:37.000000000 +0100 +++ /var/tmp/diff_new_pack.mRbFns/_new 2006-11-16 14:06:37.000000000 +0100 @@ -16,7 +16,7 @@ Group: System/Daemons URL: http://ivman.sourceforge.net/ Version: 0.6.12 -Release: 31 +Release: 32 Source0: http://puzzle.dl.sourceforge.net/sourceforge/ivman/%name-%version.tar.bz2 Source1: halmount.py Source2: ivman.init @@ -86,6 +86,9 @@ %changelog -n ivman * Thu Nov 16 2006 - lnussel@suse.de +- fix halmount exit code handling. it was sometimes printed rather + than used as exit code (#221002) +* Thu Nov 16 2006 - lnussel@suse.de - don't enable ivman init script by default (#221613) * Wed Nov 15 2006 - lnussel@suse.de - return an exit code on umount/eject (#221002) ++++++ halmount.py ++++++ --- ivman/halmount.py 2006-11-15 09:57:07.000000000 +0100 +++ /mounts/work_src_done/STABLE/ivman/halmount.py 2006-11-16 14:01:36.000000000 +0100 @@ -176,8 +176,8 @@ try: if opt == []: opt = [""] - ret += obj.Mount(d, fs, opt, - dbus_interface="org.freedesktop.Hal.Device.Volume") + if(obj.Mount(d, fs, opt, dbus_interface="org.freedesktop.Hal.Device.Volume")): + ret += 1 except dbus.DBusException, msg: # XXX: looks like we have no way to get # the error name @@ -221,7 +221,8 @@ obj = self.bus.get_object("org.freedesktop.Hal", dev.udi) try: - ret = obj.Unmount([""], dbus_interface="org.freedesktop.Hal.Device.Volume") + if(obj.Unmount([""], dbus_interface="org.freedesktop.Hal.Device.Volume")): + ret += 1 except dbus.DBusException, msg: err(dev.device + ": " + str(msg)) ret += 1; @@ -243,7 +244,8 @@ found = True; obj = self.bus.get_object("org.freedesktop.Hal", dev.udi) try: - ret = obj.Eject([""], dbus_interface="org.freedesktop.Hal.Device.Volume") + if(obj.Eject([""], dbus_interface="org.freedesktop.Hal.Device.Volume")): + ret += 1 except dbus.DBusException, msg: err(dev.device + ": " + str(msg)) ret += 1; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@suse.de