Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When a project contains multiple modules, the release date of the first module is used as the project release date. When projects are installed from CVS, different modules will have different release dates. This is a big hassle for developers. Patch to follow.
Comment | File | Size | Author |
---|---|---|---|
#15 | 499828-D5.patch | 1.22 KB | Dave Reid |
#10 | 499828-10.update-datestamp-with-test-D7.patch | 5.17 KB | dww |
#5 | 499828-update-datestamp-D7.patch | 1.71 KB | Dave Reid |
#5 | 499828-update-datestamp-D6.patch | 1.63 KB | Dave Reid |
#4 | 588308-update-datestamp-D7.patch | 937 bytes | Dave Reid |
Comments
Comment #1
Darren OhPatch based on #2 in issue 227644.
Comment #2
Darren OhComment #4
Dave ReidUpdated patches for D7 and D6. I put a nice long explanation about this problem and the solution in #588308: Always use latest datestamp for project, not just the first one.
Comment #5
Dave ReidRevised patch that won't cause undefined index error if using CVS checkout of Drupal (no datestamp in .info) but not using CVS deploy.
Comment #6
dwwIt'd be nice to add a test for this, which will be easy to do once #253501: Tests for update.module lands. Meanwhile, I've reviewed the patch, and tested it, and it's the right fix for an important bug. I solemnly swear I'll add a test for this case once this and #253501 are in, but it's too painful to try to add tests in both issues.
Comment #7
dwwAssuming my latest patch at #253501-21: Tests for update.module is committed, the test for this becomes quite simple:
and we need to add a 'dev-snapshot.xml' file that looks something like this:
Comment #8
Dries CreditAttribution: Dries commentedI committed #253501: Tests for update.module so maybe we can do a quick re-roll with that test from #7?
Comment #9
Dave ReidYeah I can roll a quick patch with the test in it.
Comment #10
dwwI made the test a bit more robust (also ensures the report thinks we're up-to-date in this case). Patch now includes it. If you add the test but not the hunk for update.compare.inc, you get test failure. Once you patch update.compare.inc, the tests pass. Yay. Leaving this RTBC, even though it's my own patch...
Comment #11
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD.
Comment #12
Dave ReidMarking as RTBC'd for Drupal 6. Patch in #5.
Comment #13
Gábor HojtsyCommitted to Drupal 6 too, thanks.
Comment #14
dwwSweet, thanks. Just have to backport this to update_status D5 contrib and we're done. Not sure if Dave still wants to do that, so I'll unassign for now. I'll assign to myself if I'm going to start working on it.
Comment #15
Dave ReidComment #16
dwwReviewed, tested, and committed #15 to DRUPAL-5--2 of update_status contrib. Thanks, Dave! Moving back to core for posterity...