Feature #16884
closedPatch for ter_update_check into EM
Added by Christian Welzel almost 18 years ago. Updated over 14 years ago.
0%
Description
Attached diff file integrates the ter_update_check extension into the EM of Typo3 4.1.
Please check carefully before integration.
(issue imported from #M4832)
Files
ter.diff (11 KB) ter.diff | Administrator Admin, 2007-01-22 18:18 | ||
ter_2.diff (9.29 KB) ter_2.diff | Administrator Admin, 2007-01-27 17:14 | ||
ter-3.diff (8.89 KB) ter-3.diff | Administrator Admin, 2007-08-29 21:23 | ||
20071026_ter_update_check.patch (8.72 KB) 20071026_ter_update_check.patch | Administrator Admin, 2007-10-28 00:31 | ||
20071028_ter_update_check.patch (8.8 KB) 20071028_ter_update_check.patch | Administrator Admin, 2007-10-28 17:53 | ||
20071030_ter_update_check.patch (8.89 KB) 20071030_ter_update_check.patch | Administrator Admin, 2007-10-30 10:25 |
Updated by Christian Welzel almost 18 years ago
Added new patch with cleaned up code and some changes requested by Dimitri.
Updated by Michael Stucki almost 18 years ago
Hi Christian,
there is a big misunderstanding which has been in this extension for quite some time now: A x.y.2 version is not a development version, it is instead a bugfix version, which means that it is not experimental, but rather highly recommended.
You should change this wording and turn the checkbox on by default (or better: remove it completely!)
- michael
Updated by Christian Welzel almost 18 years ago
hi michael!
the current TER2 upload tool in EM uses the same wording:
(*) New development version (latest x.x.x+1)
( ) latest Override this development version (0.6.0)
( ) new_sub New sub version (latest x.x+1.0)
as i want to stay compatible in this i will wait with renaming
until the text in em is changed.
But feel free to fix that during integration into the core.
Updated by Christian Welzel about 17 years ago
added patch against typo3 4.2svn.
removed the "show development versions" checkbox. this is the default now.
Updated by Benni Mack about 17 years ago
Does this patch reflect the latest TER update check version? I want to review it the next days.
Updated by Christian Welzel about 17 years ago
yes, the patch adds the current ter-version.
only the cli component is missing.
Updated by Benni Mack about 17 years ago
nice. We'll open up a separate patch for including the CLI component. I had a quick look over the patch. I'm gonna do some basic renaming and testing. After that I'm gonna upload it here and send it to the Core list!
Thanks, Christian, for your effort!
Updated by Benni Mack about 17 years ago
Hey christian,
I like your patch extremely!
I made some changes to your patch and uploaded it here.
a) some renaming of variables and function to make them fit in the Croe
b) Fixed one or two bugs (display_files option did not work)
c) Added comments for the functions
I'll send the patch to the core list now.
Updated by Benni Mack about 17 years ago
oh crap, I mixed some patches. I know it's you, Christian Welzel. My bad. I'll fix it.
Updated by Steffen Kamper about 17 years ago
Great that Christians update_check will be part of core, many thanks to Christian and Bennie!
Tested the patch and it works..
Updated by Christian Kuhn about 17 years ago
Testing the latest patch I found a minor issue when the md5 values of a new version are not updated, but the order of the files in the md5 sums change:
Then it outputs "A difference between the originally installed version and the current was detected!" even with identical md5 sums. This is eg. true for kickstarter__mvc local version 0.0.6 and server version 0.0.8.
I added a ksort to the md5-arrays to get rid of the misleading information. I also renamed the variables to $serverMD5Array and $currentMD5Array, I think this is more meaningfull.
Attached a new patch in the hope it is usefull.
Updated by Benni Mack about 17 years ago
Hey Christian Kuhn,
thanks for testing, but: Why is a MD5sum not changed when uploading a new version? I mean, at least one file needs to have changed, shouldn't it?
Anyway, I don't like suppressing error messages with @, I suggest we'd do a if stmt around the @ksort. I hope to send the new patch to the ML this week.
Updated by Christian Kuhn about 17 years ago
I think (please correct me if I am wrong) the md5 sums have to be updated manually and do not get calculated automagically when uploading an ext to ter. So not all devs do this and then the md5 sums stay the same.
The supression with @:
There is a similar one some lines above, so I thought this would be ok. Anyway, a warning will hardly be triggered, only if $EM_CONF[$_EXTKEY]['_md5_values_when_last_written'] is not set at all or is a string or something, A trivial if will be:
if (is_array($currentMD5Array)) ksort($currentMD5Array);
Updated by Steffen Kamper about 17 years ago
+1 for using if (is_array($currentMD5Array)) ksort($currentMD5Array);
Updated by Benni Mack about 17 years ago
Commited the latest patch (20071030) to 4.2 trunk (rev. 2638)