rpms/orsa/devel orsa-file.patch,1.1,1.2

Miloš Jakubíček mjakubicek at fedoraproject.org
Wed Apr 8 00:05:47 UTC 2009


Author: mjakubicek

Update of /cvs/pkgs/rpms/orsa/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv12975

Modified Files:
	orsa-file.patch 
Log Message:
-Fix orsa-file.patch so as not to segfault on missing jpl file.



orsa-file.patch:

Index: orsa-file.patch
===================================================================
RCS file: /cvs/pkgs/rpms/orsa/devel/orsa-file.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- orsa-file.patch	7 Apr 2009 16:08:40 -0000	1.1
+++ orsa-file.patch	8 Apr 2009 00:05:16 -0000	1.2
@@ -82,3 +82,14 @@
        location_file = new LocationFile; 
        location_file->SetFileName(config->paths[OBSCODE]->GetValue().c_str());
        location_file->Open();
+--- src/libxorsa/xorsa_all_objects_popup.cc.orig	2009-04-08 01:49:01.000000000 +0200
++++ src/libxorsa/xorsa_all_objects_popup.cc	2009-04-08 01:49:15.000000000 +0200
+@@ -60,7 +60,7 @@
+     id_import_JPL = import_pm->insertItem("JPL",listview,SLOT(slot_import_JPL()));
+     // enabled only if a JPL file is available from the config file
+     {
+-      if (!(jpl_file->GoodFile())) {
++      if (jpl_file && !(jpl_file->GoodFile())) {
+ 	import_pm->setItemEnabled(id_import_JPL,false);
+       }
+     }




More information about the fedora-extras-commits mailing list