rpms/orca/devel orca-2.17.4-add-stop-switch.patch, NONE, 1.1 orca.spec, 1.16, 1.17

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Dec 20 06:11:53 UTC 2006


Author: mclasen

Update of /cvs/dist/rpms/orca/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv2268

Modified Files:
	orca.spec 
Added Files:
	orca-2.17.4-add-stop-switch.patch 
Log Message:
fix spec


orca-2.17.4-add-stop-switch.patch:
 orca.py |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

--- NEW FILE orca-2.17.4-add-stop-switch.patch ---
--- orca-2.17.4/src/orca/orca.py.add-stop-switch	2006-12-12 20:21:31.000000000 -0500
+++ orca-2.17.4/src/orca/orca.py	2006-12-20 01:12:04.000000000 -0500
@@ -1297,7 +1297,10 @@
              "gui-setup",
              "text-setup",
              "no-setup",
-             "version"])
+             "version",
+	     "stop"])
+
+	do_shutdown = False
         for opt, val in opts:
             if opt in ("-u", "--user-prefs-dir"):
                 userPrefsDir = val.strip();
@@ -1353,6 +1356,9 @@
             if opt in ("-v", "--version"):
                 print "Orca %s" % platform.version
                 os._exit(0)
+	    if opt in ("--stop"):
+	    	do_shutdown = True
+		bypassSetup = True
     except:
         debug.printException(debug.LEVEL_OFF)
         usage()
@@ -1368,7 +1374,7 @@
     import commands
     a11yEnabled = commands.getoutput(\
         "gconftool-2 --get /desktop/gnome/interface/accessibility")
-    if (not bypassSetup) and (a11yEnabled != "true"):
+    if (not bypassSetup) and (a11yEnabled != "true" and not do_shutdown):
         _showPreferencesConsole()
         abort()
 
@@ -1388,6 +1394,9 @@
     registry = atspi.Registry()
     init(registry)
 
+    if do_shutdown:
+        shutdown()
+
     # Check to see if the user wants the configuration GUI. It's
     # done here so that the user's existing preferences can be used
     # to set the initial GUI state.  We'll also force the set to


Index: orca.spec
===================================================================
RCS file: /cvs/dist/rpms/orca/devel/orca.spec,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- orca.spec	20 Dec 2006 05:56:04 -0000	1.16
+++ orca.spec	20 Dec 2006 06:11:49 -0000	1.17
@@ -23,7 +23,7 @@
 License:	LGPL
 URL:		http://www.gnome.org/projects/orca/
 Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/orca/1.0/orca-%{version}.tar.bz2
-Patch0:		orca-1.0.0-add-stop-switch.patch
+Patch0:		orca-2.17.4-add-stop-switch.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	python-devel >= %{python_version}




More information about the fedora-cvs-commits mailing list