Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't create a double 3.0 folder #694

Merged
merged 2 commits into from
Oct 27, 2021

Conversation

lmoureaux
Copy link
Contributor

@lmoureaux lmoureaux commented Oct 16, 2021

See #660.

As a side-effect of this PR, the modpack installer will "forget" which modpack versions are installed. Installed modpack will remain usable; installing them again merely overwrites the files.

This reverts commit 2893571, which resulted in
the creation of a double 3.0/3.0 directory.

See longturn#660.
This makes it possible to install, for instance, a ruleset for different
versions of Freeciv21 even though the files are not compatible.

Closes longturn#660.
@lmoureaux lmoureaux changed the title Don't create a double 3 Don't create a double 3.0 folder Oct 16, 2021
@lmoureaux lmoureaux linked an issue Oct 16, 2021 that may be closed by this pull request
@jwrober
Copy link
Collaborator

jwrober commented Oct 17, 2021

For something VERY cosmetic, it seems to be a bad idea to reduce/eliminate a feature of a program to "fix" something that does not really NEED fixing. If we are going to get rid of what "seems" to be a redundant directory then we should "fix" it and keep the modpack installer's ability to know what modpacks have been installed in the process. As written, this PR needs work before it should be merged into master branch.

@lmoureaux
Copy link
Contributor Author

I'd be incited to add migration code it if we had had anything more stable than alpha releases. As it is it will only result in a minor annoyance for the few people who actually downloaded the alphas. I think the tradeoff between new code to maintain and annoyance is acceptable.

If you want to migrate your metadata, it is sufficient to do (on Linux) mv ~/.local/share/freeciv21/3.0/3.0/.control ~/.local/share/freeciv21/3.0/. This can be added to the release notes.

@jwrober
Copy link
Collaborator

jwrober commented Oct 17, 2021

I like the documentation idea as part of the release notes. I also agree about writing migration code if we were in a more stable release cycle. If a person decides to ignore the instructions, will the modpack installer create a new .control file when an item is downloaded?

@lmoureaux
Copy link
Contributor Author

f a person decides to ignore the instructions, will the modpack installer create a new .control file when an item is downloaded?

Yes.

@lmoureaux lmoureaux merged commit 2006732 into longturn:master Oct 27, 2021
@lmoureaux lmoureaux deleted the bugfix/double-3-0-dir branch October 27, 2021 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A 3.0 folder is created inside the 3.0 folder
2 participants