I'm a bit confused about packaging in the attached screenshot.
I accidentally selected 6.14 as the core version. Saw that it wasn't the latest release, and updated to 6.15 in the drupal-org.make file. Now both are listed!?
Any ideas?
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | project_packaging_branch_items_fix.patch | 1.04 KB | hunmonk |
| #4 | Screenshot.png | 64.74 KB | Magnity |
Comments
Comment #1
Anonymous (not verified) commented@Magnify: There is not a screenshot attached to this report.
Comment #2
Magnity commentedOdd, it definitely got uploaded. It is at http://drupal.org/files/Screenshot_0.png
Comment #3
avpaderno@Magnify: The link you reported doesn't take to any files.
When you attach a file to an issue report comment, the URL of the attached file always start with http://drupal.org/files/issues/.
Comment #4
Magnity commentedReattaching.
Comment #5
Magnity commentedIf this queue isn't correct for an answer, where should this query go?
The profile in question is http://drupal.org/project/stormprofile
Comment #6
juliangb commentedI see there is a packaging component of the infrastructure queue so trying this issue there.
I've just taken over this and updated the core version to 6.16 in the drupal-org.make file. However, now THREE core versions are listed on the node release page - http://drupal.org/node/720948.
Please could someone advise whether this is something I can avoid!
Comment #7
hunmonk commentedhttp://drupal.org/node/642116#faq
Comment #8
juliangb commented@hunmonk, thanks for the reply.
But nowhere in the linked page does it explain that the release notes will say that there are multiple versions of Drupal core within a package. That's a bit of a WTF, and isn't true because the download only contains one version of core.
Having looked around a bit, it does seem that each profile that packages code does this on the dev release, so at least I haven't made a mistake in the .make file.
Where is the best place to post this as a bug? (If not already listed?)
Comment #9
hunmonk commentedhuh? there aren't. only one of the produced packages contains drupal core. the 'main' package contains core (and is the one used in the download links on the project page), and the two other packages are built for developers or others with special needs.
it's the project maintainer's responsibility to produce the release notes on a release node.
at this point, i'm confused as to what you're reporting as a problem.
Comment #10
juliangb commentedI get the difference between the 3 packages, and I'm talking about the default package with core.
But - please see http://drupal.org/node/720948
Underneath "In this package", it has the Drupal project listed three times. With versions 6.14, 6.15, 6.16.
I think it should just say 6.16, as that is the code in the package.
Comment #11
hunmonk commentedah, i see now. yes, that's a bug. :)
it's an issue with the way we're handling the insertion of package items into the {project_package_local_release_item} table. the code logic doesn't take into account that package items can change in -dev snapshots -- items are only ever inserted into that table. therefore, if a new release is included in a .make file, both it and the old release will be listed in the package -- not good.
attached patch adds a simple check to see if the built package is a -dev snapshot, and if so, it removes the existing package item list from {project_package_local_release_item} prior to the updated list being inserted.
tested this patch locally, and it works fine in both the tag and branch release node case. once it gets committed and deployed to drupal.org, the display problem on the -dev release nodes will be corrected the next time the packages for the project are built (for -dev snapshots, this is about 6-12 hours after the last commit to the end of the branch in question)
Comment #12
juliangb commentedPhew, glad its not just me being mental!
Thanks to hunmonk for the work on this.
Comment #13
dwwThat patch looks fine to me. I guess it's a performance optimization to do the check for a -dev release to avoid the DELETE query for official releases from tags, although releases happen relatively infrequently so I almost think it makes more sense to just always clear out any existing entries before inserting. I'm happy either way.
However, is there a plan to correct all the existing -dev releases that have this problem? Don't we need some queries to repair the stale data? Wouldn't that be better as a DB update in this patch, than to just do it all manually on the live DB?
Thanks!
-Derek
Comment #14
hunmonk commentedfrom #11:
is it really worth more coding time to write and test a database upgrade given that? i sure don't think so...
Comment #15
dwwOh, sorry I missed that. If it's self-correcting, great. Since you say it's tested and working, ship it! ;) Perhaps a final run on d6.p.d.o for safe measure would be nice before you deploy on d.o itself -- I certainly don't have time right now to do any testing myself...
Thanks!
-Derek
Comment #16
hunmonk commentedcommitted the patch in #11 to HEAD. setting back to active for drupal.org deployment.
Comment #17
juliangb commentedHi hunmonk / dww,
Any idea when this might be deployed on d.o.?
Thanks.
Comment #18
hunmonk commenteddeployed a few days ago, forgot to update this issue.