[wpkg-users] wpkg-0.9.8-test2.js undefined: checkval

Paul Griffith paulg at cs.yorku.ca
Wed Apr 19 17:02:31 CEST 2006


Here is the diff to fix undefined: checkval error I encountered while
using the 'versiongreaterorequal' check...

Maybe someone wants to double check before the fix is applied....

Thanks
Paul

-------start---
diff -u wpkg-0.9.8-test2.js wpkg-new.js
--- wpkg-0.9.8-test2.js Mon Apr 17 13:47:37 2006
+++ wpkg-new.js Wed Apr 19 10:56:57 2006
@@ -1099,33 +1099,33 @@
                    case "versionsmallerthan":
                        retval=(versionresult == -1);
                        dinfo("Checking version of '"+checkPath+"' :
						Is "+CheckValFromFileSystem+
-                             " < "+checkVal+" ? "+retval);
+                             " < "+checkValue+" ? "+retval);
                        return retval;
                        break;
                    case "versionlessorequal":
                        retval=(   (versionresult == -1)
                                || (versionresult == 0) );
                        dinfo("Checking version of '"+checkPath+"' :
						Is "+CheckValFromFileSystem+
-                             " <= "+checkVal+" ? "+retval);
+                             " <= "+checkValue+" ? "+retval);
                        return retval;
                        break;
                    case "versionequalto":
                        retval=(versionresult == 0);
                        dinfo("Checking version of '"+checkPath+"' :
						Is "+CheckValFromFileSystem+
-                             " = "+checkVal+" ? "+retval);
+                             " = "+checkValue+" ? "+retval);
                        return retval;
                        break;
                    case "versiongreaterorequal":
                        retval=(   (versionresult == 1)
                                || (versionresult == 0) );
                        dinfo("Checking version of '"+checkPath+"' :
						Is "+CheckValFromFileSystem+
-                             " >= "+checkval+" ? "+retval);
+                             " >= "+checkValue+" ? "+retval);
                        return retval;
                        break;
                    case "versiongreaterthan":
                        retval=(versionresult == 1);
                        dinfo("Checking version of '"+checkPath+"' :
						Is "+CheckValFromFileSystem+
-                             " >= "+checkval+" ? "+retval);
+                             " >= "+checkValue+" ? "+retval);
                        return retval;
                        break;
                    default:
-----------finish-------


______________________________________________
wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users




More information about the wpkg-users mailing list