summaryrefslogtreecommitdiffhomepage
path: root/mixlib
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
commit05ffad6584c39694b3aee59626348af20b0f7763 (patch)
treecd3b04127b7a2a6773acfde39894fbba0347834d /mixlib
parent49e90a3bde782e564118d5673f3a86de7489a62b (diff)
downloadmdk-05ffad6584c39694b3aee59626348af20b0f7763.tar.gz
mdk-05ffad6584c39694b3aee59626348af20b0f7763.tar.bz2
version compatibility check disabled
Diffstat (limited to 'mixlib')
-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');