summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2002-03-24 01:22:03 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2002-03-24 01:22:03 +0000
commitdfc718dd84aa12aa1c581b8f2fd502e9de8aab1a (patch)
tree7ed10c770920ee57a869530b59791afc170e31e5
parenteb174175baadc3bc1031ad299b193bade01d6884 (diff)
downloadmdk-dfc718dd84aa12aa1c581b8f2fd502e9de8aab1a.tar.gz
mdk-dfc718dd84aa12aa1c581b8f2fd502e9de8aab1a.tar.bz2
version compatibility check disabled
-rw-r--r--mixlib/mix_code_file.c13
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');