Just downloaded the drupal wiki install profile and uncompressed it and got a folder named drupal-6.17. I would expect it to be drupal_wiki-1.0-beta1 or something similar.
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | 863938-16.distro-release-top-level-directory.patch | 1.12 KB | dww |
| #8 | drupalorg--distro-folder-name.patch | 1.06 KB | juliangb |
Comments
Comment #1
avpadernoDoes the name of the created directory make any difference?
Comment #2
boris mann commented@kiamlaluno: if you download 3 different install profiles at the same time and are testing them, then yes. And it's definitely not an edge case (adding them as platforms to Aegir, having them all in the same directory and having them overwrite each other, etc.)
Comment #3
juliangb commentedSubscribe.
I've started to manage my deployments via Aegir, and as #2, have found that downloads of installation profiles have overwritten over downloads.
Is this by design? It is not a good user experience!
Comment #4
boris mann commented@juliangb my joke would be that this is by "non design" -- in that no one ever thought about it, so it just ended up being called "drupal"
Comment #5
dwwInstall profile packaging lives in contributions/modules/drupalorg/drupalorg_project/plugins/release_packager/DrupalorgProjectPackageReleaseDistro.class.php
Knock yourselves out. ;)
Comment #6
juliangb commentedOK I'll give this a go.
Can I confirm which branch I should patch from? It sounds like 2.x is currently running, but this will switch to 3.x next week with the git migration - therefore, best to patch 3.x - is that correct?
Comment #7
dww@juliangb: It actually doesn't matter -- I'm pretty sure the file you care about didn't change between the two branches. But sure, if you want to try it with 6.x-3.x that's probably wise. I doubt we're going to deploy this change before the Git launch...
Comment #8
juliangb commentedPatch attached.
Caveat that this is the first time I've looked at the release packager, and also have no way to test it myself!
Comment #9
juliangb commentedDoes anyone have a minute to look at this?
Comment #10
dwwSorry, this completely fell off my radar. However, I remembered it while working on #1455614: Packaging script doesn't allow distributions to patch core or specify a git revision last night. The patch no longer applies, but it is indeed a trivial fix if/when we decide this is a good idea to change this. Should wait for 1455614 to actually land, but then I can easily get this fixed. It'd just be nice to get more feedback on if it's actually the right thing to be doing. ;)
Comment #11
webchickdww: makes sense, I think
dww: that'd match what modules do
Comment #12
sunIf I understand this correctly (the variable names in the patch aren't very intuitive) then:
The proposal is to change the packaging for install profiles, so that contained top-level directory is no longer
but instead:
Comment #13
dwwCorrect, that's the proposal. Yeah, sorry the variable names are wonky.
Comment #14
sunIt's not really clear whether the proposal also foresees to include the release version in the top-level folder name.
I'm not 100% sure whether it would make sense to include the version, as the most common and wanted operation is most likely to overwrite an existing extracted archive; i.e., an older version.
Likewise, when extracting a module, there's also no version suffix.
EDIT: but as long as the Drupal core tarball has a version suffix, it prolly makes sense to do it for install profiles, too...
Comment #15
dwwYes, the idea is that if you unpack a tarball called something like:
openpublic-7.x-1.0-beta5-core.tar.gz
You end up with a directory called
openpublic-7.x-1.0-beta5
The point of this issue is to prevent clobbering things by mistake. Therefore, clobbering should be opt-in. Therefore, the directory should include the version.
Note that both of the "no-core" variants do *not* include the version, since that's for the use-case of "upgrading" your site, etc. That's more like a standard module release. This issue is just about the fully-packaged thing, including core.
Comment #16
dwwRe-rolled. Tested on http://distro-drupal.redesign.devdrupal.org. Working great. Any final objections?
Comment #17
sunThanks!
Nope -- other than perhaps informing drush maintainers about this naming change to make sure that drush dl picks it up properly.
Comment #18
dww#1476994: Handle change in top-level directory name in fully-packaged distribution tarballs
I'll give them a little while to respond before I deploy this.
Thanks,
-Derek
Comment #19
dwwdrush doesn't care. Committed, pushed, and deployed.
Yay!
-Derek