From 05ffad6584c39694b3aee59626348af20b0f7763 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Sun, 24 Mar 2002 01:22:03 +0000 Subject: version compatibility check disabled --- mixlib/mix_code_file.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'mixlib') diff --git a/mixlib/mix_code_file.c b/mixlib/mix_code_file.c index 126c29d..6c1a1bd 100644 --- a/mixlib/mix_code_file.c +++ b/mixlib/mix_code_file.c @@ -1,7 +1,9 @@ /* -*-c-*- -------------- mix_code_file.c : * Implementation of the functions declared in mix_code_file.h * ------------------------------------------------------------------ - * Copyright (C) 2000 Free Software Foundation, Inc. + * $Id: mix_code_file.c,v 1.3 2002/03/24 01:22:03 jao Exp $ + * ------------------------------------------------------------------ + * Copyright (C) 2000, 2002 Free Software Foundation, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -122,13 +124,18 @@ mix_code_file_new_read (const gchar *name) if ( check ) check = IS_RELEASE_ (result) || IS_DEBUG_ (result); + + /* disable check to avoid breaking old files: 0.x and 1.x use + the same bytecode */ +#if 0 if ( check ) - {/* a code file is compatible if its major version is - is the same as this package's and its minor version is <= */ + { gint major, minor; sscanf (VERSION, "%d.%d", &major, &minor); check = header->mj_ver == major && header->mn_ver <= minor; } +#endif + if ( check ) {/* get source path */ result->source_path = g_strnfill (1 + header->path_len, '\0'); -- cgit v1.2.3