platform_unix.c
branchnwn-expansion-packs
changeset 55 9a0e5eb2024d
parent 45 273952a3dc2a
child 60 ed9059cf0a5d
--- a/platform_unix.c	Sun May 30 19:47:59 2004 +0000
+++ b/platform_unix.c	Wed Jun 02 06:39:14 2004 +0000
@@ -293,9 +293,9 @@
 } /* find_info_plist_version */
 
 
-static int parse_info_dot_plist(const char *ident,
-                                const char *version,
-                                const char *newversion)
+int parse_info_dot_plist(const char *ident,
+                         const char *version,
+                         const char *newversion)
 {
     const char *fname = "Contents/Info.plist";  /* already chdir'd for this. */
     char *mem = NULL;
@@ -337,17 +337,17 @@
             retval = 1;
         else
         {
-            if (strcmp(ptr, newversion) == 0)
-            {
-                _fatal("You seem to be all patched up already!");
+//            if (strcmp(ptr, newversion) == 0)
+//            {
+                _fatal("You seem to have the required %s patch already!", newversion);
                 retval = -1;
-            } /* if */
-            else
-            {
-                _fatal("This patch applies to version '%s', but you have '%s'.",
-                        version, ptr);
-                retval = 0;
-            } /* else */
+//            } /* if */
+//            else
+//            {
+//                _fatal("This patch applies to version '%s', but you have '%s'.",
+//                        version, ptr);
+//                retval = 0;
+//            } /* else */
         } /* else */
     } /* if */
 
@@ -363,6 +363,8 @@
 
 int update_version(const char *ver)
 {
+return 1;
+#if 0
     const char *fname = "Contents/Info.plist";  /* already chdir'd for this. */
     char *mem = NULL;
     char *ptr;
@@ -400,6 +402,7 @@
 
     if (!retval) _fatal("Can't update product's installed version.");
     return(retval);
+#endif
 } /* update_version */