diff options
Diffstat (limited to 'mixlib/mix_code_file.c')
-rw-r--r-- | mixlib/mix_code_file.c | 13 |
1 files changed, 10 insertions, 3 deletions
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'); |