vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Product Install Code Versioning Question (https://vborg.vbsupport.ru/showthread.php?t=102226)

The Geek 12-04-2005 09:06 PM

Product Install Code Versioning Question
 
Hey guys, I've got several product.xml files, all behaving exactly as they should, however one is now starting to give me a problem and it has stumped me as to why. The onyl conclusion: The planets are aligned against me.

Maybe im just doing something wacky here.

Basically, here is a snipped version of the codes node:
PHP Code:

 <codes>
  <
code version="1.0.0 beta 4.0">
   <
installcode><![CDATA[
    
//snip
                
]]></installcode>
   <
uninstallcode></uninstallcode>
  </
code>
  <
code version="1.0.0 beta 3.7">
   <
installcode><![CDATA[
             
//snip
            
]]></installcode>
   <
uninstallcode />
  </
code>
  <
code version="1.0.0 beta 3.6">
   <
installcode><![CDATA[
    
//snip
            
]]></installcode>
  </
code>
 </
codes

Yes, it goes from highest to lowest, however thats becasue that is how vB spit it out. I normally hand write these, however after beating my head against a wall for yonks, I thought if I let vB generate it, it might work - but it doesnt.

What happens is that:
Fresh install - 1.0.0 beta 3.7 doesnt run
Upgrade from 3.7 - Beta 4 step doesnt run.

WTF am I doing wrong?

Lovingly,

Your Geek.

Marco van Herwaarden 12-04-2005 09:22 PM

I might be wrong on this, but i think the code handling version compairing, only looks at 1 digit (or better number) after the Beta.

Ok:
1.0.0 Beta 1
1.0.0 Beta 2
1.0.0 Beta 15
1.0.0 Beta 15992

Wrong:
1.0.0 Beta 1
1.0.0 Beta 1.1
1.0.0 Beta 1.9.8

The Geek 12-04-2005 09:40 PM

ahhhh that would make some sense then I guess.

What about letters then ie Beta 4b

Thanks Marco

Andreas 12-04-2005 09:43 PM

fetch_version_array() in includes/adminfunctions_template.php is the answer :)


All times are GMT. The time now is 11:57 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00992 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete