Talk:MwExtUpgrader

About this board

what are the requirements for this extension?

2
Kanto501 (talkcontribs)

I think I saw something about the latest version 0.2 requiring php 8.1. Is this correct? or can I use the latest version with php 8.0?

星耀晨曦 (talkcontribs)

This tool requires PHP 7.1.3 or higher, include 8.0 and 8.1

Reply to "what are the requirements for this extension?"

Respect repository timestamps on local filesystem

6
Summary by 星耀晨曦

Resolved in d2fd566

Peculiar Investor (talkcontribs)

Great tool, thanks. I'm exactly your target audience, one of the many people update extensions one by one, such as by using ExtensionDistributor, without using git.

When I update my extensions one by one, I currently use wget from the command line in Linux and I end up with a .tar.gz file on my filesystem, which I extract. The timestamps on the .tar.gz file and all the corresponding extracted extension files match the 'commit' timestamp for the extension. This is useful to me to provide an audit trail of the updated extension back to the source repository.

In my testing of this tool I'm noticing that the timestamps in the extensions directory all match when the tool was run, not the source repository dates, so I don't have the same audit trail.

Could this tool be changed so the updated extensions (and skins BTW) have timestamps that match the source respository. The curl '--remote-time' option might be helpful.

星耀晨曦 (talkcontribs)

What you mean is to ensure that the modification time of the extension file upgraded through mwExtUpgrader is the same as the modification time manually upgraded through wget & tar?

Peculiar Investor (talkcontribs)

I've done some further testing today and the timestamps on the tar.gz files that come from Special:ExtensionDistributor are the timestamp at the time of the download.

However, when the tar file is extracted, the timestamps on the extracted files. For example, for downloading the Cite extension for 1.35, the tarball reveals:

tar -t -v --full-time -f Cite-REL1_35-52f3cf3.tar.gz
drwxr-xr-x extdist/extdist   0 2020-12-31 20:03:18 Cite/
drwxr-xr-x extdist/extdist   0 2020-12-31 20:03:18 Cite/src/
-rw-r--r-- extdist/extdist 2988 2020-12-31 20:03:18 Cite/src/FootnoteMarkFormatter.php
-rw-r--r-- extdist/extdist 3413 2020-12-31 20:03:18 Cite/src/ErrorReporter.php
-rw-r--r-- extdist/extdist 9498 2020-12-31 20:03:18 Cite/src/ReferencesFormatter.php
.
.
.

My "improvement" request is to have this tool leave the updated extension files to match the timestamps contained within the equivalent tar download.

Hopefully that further explains or clarifies what I'm asking about.

星耀晨曦 (talkcontribs)
星耀晨曦 (talkcontribs)

The new version has been released. The version can be resolve you needs.

Peculiar Investor (talkcontribs)

Tested the new version and appreciate the change. Very helpful. Thank you.

Foreclosurepedia (talkcontribs)

Do I simply download this into the Extensions Folder and then call the script within the Extensions Folder? Thanks!

星耀晨曦 (talkcontribs)

MwExtUpgrader can be placed in any location. It does not depend on the current working directory.

Foreclosurepedia (talkcontribs)

Just figured it out but thanks for the answer. For others like me here is what I did: I put the code into the Extensions folder and it requested my absolute path. Then it was cool as it asked what version I wanted to go to and it did include MW 1.35. It did tell me: ExtensionDistributor unsupported Maps, ExtensionDistributor unsupported Purge, ExtensionDistributor unsupported EmbedVideo, ExtensionDistributor unsupported Validator.

It also said: "In UpgradeTask.php line 163:

 file_get_contents(/home/iafstghq/digitalmatrixgroup.com/extensions/Wikibase/extension.json): failed to open stream: No such file or directory"

I presume this is something I have to go find as I am upgrading and have errors anyway.

Foreclosurepedia (talkcontribs)

Got it all resolved. It dealt with I copied the old composer.json over. Great script my friend!!!!

星耀晨曦 (talkcontribs)

Thanks report. This is a bug that not check if extension.json exists before reading it.

星耀晨曦 (talkcontribs)

Thanks report. This is a bug that not check if extension.json exists before reading it.

2003:C2:B721:B900:DCA1:CAB9:FC48:A679 (talkcontribs)

"Many people are updated one by one via ExtensionDistributor, without git. " come on - does anybody ever check what is written?

Clump (talkcontribs)

Not everyone is a native English speaker. Improving it yourself would be nicer and more useful than just complaining.

2001:8F8:1E23:26C7:7489:F29E:1386:5556 (talkcontribs)

@Clump I tried to use it with no luck,

Could not open input file: mwExtUpgrader.phar

2001:8F8:1E23:26C7:7489:F29E:1386:5556 (talkcontribs)

i managed to run,

with a warning message: Note that this release of code is not stable. Do not use for production.


shall I proceed with it?

Clump (talkcontribs)

It is in beta, so that's a standard kind of notice. I know nothing about this code though. @星耀晨曦 is the author and may be able to offer better advice/help, or you can ask on their github issues page.

星耀晨曦 (talkcontribs)

For the stability of your wiki and this project has not been widely used, there may be bugs that affect the stability. So before run, the script will prompt you.

There are no older topics
Return to "MwExtUpgrader" page.